diff options
Diffstat (limited to 'arch/ppc/syslib')
| -rw-r--r-- | arch/ppc/syslib/cpc700_pic.c | 12 | ||||
| -rw-r--r-- | arch/ppc/syslib/i8259.c | 13 | ||||
| -rw-r--r-- | arch/ppc/syslib/ibm440gx_common.c | 7 | ||||
| -rw-r--r-- | arch/ppc/syslib/mv64x60.c | 2 | ||||
| -rw-r--r-- | arch/ppc/syslib/open_pic2.c | 12 | ||||
| -rw-r--r-- | arch/ppc/syslib/ppc403_pic.c | 11 | ||||
| -rw-r--r-- | arch/ppc/syslib/qspan_pci.c | 2 | ||||
| -rw-r--r-- | arch/ppc/syslib/xilinx_pic.c | 13 |
8 files changed, 29 insertions, 43 deletions
diff --git a/arch/ppc/syslib/cpc700_pic.c b/arch/ppc/syslib/cpc700_pic.c index 774709807538..75fe8eb10693 100644 --- a/arch/ppc/syslib/cpc700_pic.c +++ b/arch/ppc/syslib/cpc700_pic.c | |||
| @@ -90,14 +90,10 @@ cpc700_mask_and_ack_irq(unsigned int irq) | |||
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | static struct hw_interrupt_type cpc700_pic = { | 92 | static struct hw_interrupt_type cpc700_pic = { |
| 93 | "CPC700 PIC", | 93 | .typename = "CPC700 PIC", |
| 94 | NULL, | 94 | .enable = cpc700_unmask_irq, |
| 95 | NULL, | 95 | .disable = cpc700_mask_irq, |
| 96 | cpc700_unmask_irq, | 96 | .ack = cpc700_mask_and_ack_irq, |
| 97 | cpc700_mask_irq, | ||
| 98 | cpc700_mask_and_ack_irq, | ||
| 99 | NULL, | ||
| 100 | NULL | ||
| 101 | }; | 97 | }; |
| 102 | 98 | ||
| 103 | __init static void | 99 | __init static void |
diff --git a/arch/ppc/syslib/i8259.c b/arch/ppc/syslib/i8259.c index b9391e650141..5c7908c20e43 100644 --- a/arch/ppc/syslib/i8259.c +++ b/arch/ppc/syslib/i8259.c | |||
| @@ -129,14 +129,11 @@ static void i8259_end_irq(unsigned int irq) | |||
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | struct hw_interrupt_type i8259_pic = { | 131 | struct hw_interrupt_type i8259_pic = { |
| 132 | " i8259 ", | 132 | .typename = " i8259 ", |
| 133 | NULL, | 133 | .enable = i8259_unmask_irq, |
| 134 | NULL, | 134 | .disable = i8259_mask_irq, |
| 135 | i8259_unmask_irq, | 135 | .ack = i8259_mask_and_ack_irq, |
| 136 | i8259_mask_irq, | 136 | .end = i8259_end_irq, |
| 137 | i8259_mask_and_ack_irq, | ||
| 138 | i8259_end_irq, | ||
| 139 | NULL | ||
| 140 | }; | 137 | }; |
| 141 | 138 | ||
| 142 | static struct resource pic1_iores = { | 139 | static struct resource pic1_iores = { |
diff --git a/arch/ppc/syslib/ibm440gx_common.c b/arch/ppc/syslib/ibm440gx_common.c index d4776af6a3ca..0bb919859b8b 100644 --- a/arch/ppc/syslib/ibm440gx_common.c +++ b/arch/ppc/syslib/ibm440gx_common.c | |||
| @@ -236,9 +236,10 @@ void __init ibm440gx_l2c_setup(struct ibm44x_clocks* p) | |||
| 236 | /* Disable L2C on rev.A, rev.B and 800MHz version of rev.C, | 236 | /* Disable L2C on rev.A, rev.B and 800MHz version of rev.C, |
| 237 | enable it on all other revisions | 237 | enable it on all other revisions |
| 238 | */ | 238 | */ |
| 239 | u32 pvr = mfspr(SPRN_PVR); | 239 | if (strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. A") == 0 || |
| 240 | if (pvr == PVR_440GX_RA || pvr == PVR_440GX_RB || | 240 | strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. B") == 0 |
| 241 | (pvr == PVR_440GX_RC && p->cpu > 667000000)) | 241 | || (strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. C") |
| 242 | == 0 && p->cpu > 667000000)) | ||
| 242 | ibm440gx_l2c_disable(); | 243 | ibm440gx_l2c_disable(); |
| 243 | else | 244 | else |
| 244 | ibm440gx_l2c_enable(); | 245 | ibm440gx_l2c_enable(); |
diff --git a/arch/ppc/syslib/mv64x60.c b/arch/ppc/syslib/mv64x60.c index 6262b11f366f..839f8872826f 100644 --- a/arch/ppc/syslib/mv64x60.c +++ b/arch/ppc/syslib/mv64x60.c | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | 31 | ||
| 32 | 32 | ||
| 33 | u8 mv64x60_pci_exclude_bridge = 1; | 33 | u8 mv64x60_pci_exclude_bridge = 1; |
| 34 | spinlock_t mv64x60_lock = SPIN_LOCK_UNLOCKED; | 34 | DEFINE_SPINLOCK(mv64x60_lock); |
| 35 | 35 | ||
| 36 | static phys_addr_t mv64x60_bridge_pbase; | 36 | static phys_addr_t mv64x60_bridge_pbase; |
| 37 | static void *mv64x60_bridge_vbase; | 37 | static void *mv64x60_bridge_vbase; |
diff --git a/arch/ppc/syslib/open_pic2.c b/arch/ppc/syslib/open_pic2.c index 7e272c51a497..2e0ea92144f6 100644 --- a/arch/ppc/syslib/open_pic2.c +++ b/arch/ppc/syslib/open_pic2.c | |||
| @@ -82,13 +82,11 @@ static void openpic2_end_irq(unsigned int irq_nr); | |||
| 82 | static void openpic2_ack_irq(unsigned int irq_nr); | 82 | static void openpic2_ack_irq(unsigned int irq_nr); |
| 83 | 83 | ||
| 84 | struct hw_interrupt_type open_pic2 = { | 84 | struct hw_interrupt_type open_pic2 = { |
| 85 | " OpenPIC2 ", | 85 | .typename = " OpenPIC2 ", |
| 86 | NULL, | 86 | .enable = openpic2_enable_irq, |
| 87 | NULL, | 87 | .disable = openpic2_disable_irq, |
| 88 | openpic2_enable_irq, | 88 | .ack = openpic2_ack_irq, |
| 89 | openpic2_disable_irq, | 89 | .end = openpic2_end_irq, |
| 90 | openpic2_ack_irq, | ||
| 91 | openpic2_end_irq, | ||
| 92 | }; | 90 | }; |
| 93 | 91 | ||
| 94 | /* | 92 | /* |
diff --git a/arch/ppc/syslib/ppc403_pic.c b/arch/ppc/syslib/ppc403_pic.c index 06cb0af2a58d..ce4d1deb86e9 100644 --- a/arch/ppc/syslib/ppc403_pic.c +++ b/arch/ppc/syslib/ppc403_pic.c | |||
| @@ -34,13 +34,10 @@ static void ppc403_aic_disable(unsigned int irq); | |||
| 34 | static void ppc403_aic_disable_and_ack(unsigned int irq); | 34 | static void ppc403_aic_disable_and_ack(unsigned int irq); |
| 35 | 35 | ||
| 36 | static struct hw_interrupt_type ppc403_aic = { | 36 | static struct hw_interrupt_type ppc403_aic = { |
| 37 | "403GC AIC", | 37 | .typename = "403GC AIC", |
| 38 | NULL, | 38 | .enable = ppc403_aic_enable, |
| 39 | NULL, | 39 | .disable = ppc403_aic_disable, |
| 40 | ppc403_aic_enable, | 40 | .ack = ppc403_aic_disable_and_ack, |
| 41 | ppc403_aic_disable, | ||
| 42 | ppc403_aic_disable_and_ack, | ||
| 43 | 0 | ||
| 44 | }; | 41 | }; |
| 45 | 42 | ||
| 46 | int | 43 | int |
diff --git a/arch/ppc/syslib/qspan_pci.c b/arch/ppc/syslib/qspan_pci.c index 57f4ed5e5ae1..0970b5d30391 100644 --- a/arch/ppc/syslib/qspan_pci.c +++ b/arch/ppc/syslib/qspan_pci.c | |||
| @@ -94,7 +94,7 @@ | |||
| 94 | #define mk_config_type1(bus, dev, offset) \ | 94 | #define mk_config_type1(bus, dev, offset) \ |
| 95 | mk_config_addr(bus, dev, offset) | 1; | 95 | mk_config_addr(bus, dev, offset) | 1; |
| 96 | 96 | ||
| 97 | static spinlock_t pcibios_lock = SPIN_LOCK_UNLOCKED; | 97 | static DEFINE_SPINLOCK(pcibios_lock); |
| 98 | 98 | ||
| 99 | int qspan_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn, | 99 | int qspan_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn, |
| 100 | unsigned char offset, unsigned char *val) | 100 | unsigned char offset, unsigned char *val) |
diff --git a/arch/ppc/syslib/xilinx_pic.c b/arch/ppc/syslib/xilinx_pic.c index e0bd66f0847a..2cbcad278cef 100644 --- a/arch/ppc/syslib/xilinx_pic.c +++ b/arch/ppc/syslib/xilinx_pic.c | |||
| @@ -79,14 +79,11 @@ xilinx_intc_end(unsigned int irq) | |||
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | static struct hw_interrupt_type xilinx_intc = { | 81 | static struct hw_interrupt_type xilinx_intc = { |
| 82 | "Xilinx Interrupt Controller", | 82 | .typename = "Xilinx Interrupt Controller", |
| 83 | NULL, | 83 | .enable = xilinx_intc_enable, |
| 84 | NULL, | 84 | .disable = xilinx_intc_disable, |
| 85 | xilinx_intc_enable, | 85 | .ack = xilinx_intc_disable_and_ack, |
| 86 | xilinx_intc_disable, | 86 | .end = xilinx_intc_end, |
| 87 | xilinx_intc_disable_and_ack, | ||
| 88 | xilinx_intc_end, | ||
| 89 | 0 | ||
| 90 | }; | 87 | }; |
| 91 | 88 | ||
| 92 | int | 89 | int |
