diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 04:30:13 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:18:30 -0500 |
commit | dc2caf6c691c30867fb9a725ab15f60f392c429a (patch) | |
tree | 198244b60a0ae4ff0dc97fe2ff5a34bebb144320 /arch/arm | |
parent | c0afc916029c02a8650e533392893b3da6326d1e (diff) |
ARM: footbridge: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-footbridge/common.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-footbridge/isa-irq.c | 36 |
2 files changed, 25 insertions, 25 deletions
diff --git a/arch/arm/mach-footbridge/common.c b/arch/arm/mach-footbridge/common.c index 88b3dd89be89..84c5f258f2d8 100644 --- a/arch/arm/mach-footbridge/common.c +++ b/arch/arm/mach-footbridge/common.c | |||
@@ -75,20 +75,20 @@ static const int fb_irq_mask[] = { | |||
75 | IRQ_MASK_PCI_PERR, /* 19 */ | 75 | IRQ_MASK_PCI_PERR, /* 19 */ |
76 | }; | 76 | }; |
77 | 77 | ||
78 | static void fb_mask_irq(unsigned int irq) | 78 | static void fb_mask_irq(struct irq_data *d) |
79 | { | 79 | { |
80 | *CSR_IRQ_DISABLE = fb_irq_mask[_DC21285_INR(irq)]; | 80 | *CSR_IRQ_DISABLE = fb_irq_mask[_DC21285_INR(d->irq)]; |
81 | } | 81 | } |
82 | 82 | ||
83 | static void fb_unmask_irq(unsigned int irq) | 83 | static void fb_unmask_irq(struct irq_data *d) |
84 | { | 84 | { |
85 | *CSR_IRQ_ENABLE = fb_irq_mask[_DC21285_INR(irq)]; | 85 | *CSR_IRQ_ENABLE = fb_irq_mask[_DC21285_INR(d->irq)]; |
86 | } | 86 | } |
87 | 87 | ||
88 | static struct irq_chip fb_chip = { | 88 | static struct irq_chip fb_chip = { |
89 | .ack = fb_mask_irq, | 89 | .irq_ack = fb_mask_irq, |
90 | .mask = fb_mask_irq, | 90 | .irq_mask = fb_mask_irq, |
91 | .unmask = fb_unmask_irq, | 91 | .irq_unmask = fb_unmask_irq, |
92 | }; | 92 | }; |
93 | 93 | ||
94 | static void __init __fb_init_irq(void) | 94 | static void __init __fb_init_irq(void) |
diff --git a/arch/arm/mach-footbridge/isa-irq.c b/arch/arm/mach-footbridge/isa-irq.c index 8bfd06aeb64d..de7a5cb5dbe1 100644 --- a/arch/arm/mach-footbridge/isa-irq.c +++ b/arch/arm/mach-footbridge/isa-irq.c | |||
@@ -30,61 +30,61 @@ | |||
30 | 30 | ||
31 | #include "common.h" | 31 | #include "common.h" |
32 | 32 | ||
33 | static void isa_mask_pic_lo_irq(unsigned int irq) | 33 | static void isa_mask_pic_lo_irq(struct irq_data *d) |
34 | { | 34 | { |
35 | unsigned int mask = 1 << (irq & 7); | 35 | unsigned int mask = 1 << (d->irq & 7); |
36 | 36 | ||
37 | outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO); | 37 | outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO); |
38 | } | 38 | } |
39 | 39 | ||
40 | static void isa_ack_pic_lo_irq(unsigned int irq) | 40 | static void isa_ack_pic_lo_irq(struct irq_data *d) |
41 | { | 41 | { |
42 | unsigned int mask = 1 << (irq & 7); | 42 | unsigned int mask = 1 << (d->irq & 7); |
43 | 43 | ||
44 | outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO); | 44 | outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO); |
45 | outb(0x20, PIC_LO); | 45 | outb(0x20, PIC_LO); |
46 | } | 46 | } |
47 | 47 | ||
48 | static void isa_unmask_pic_lo_irq(unsigned int irq) | 48 | static void isa_unmask_pic_lo_irq(struct irq_data *d) |
49 | { | 49 | { |
50 | unsigned int mask = 1 << (irq & 7); | 50 | unsigned int mask = 1 << (d->irq & 7); |
51 | 51 | ||
52 | outb(inb(PIC_MASK_LO) & ~mask, PIC_MASK_LO); | 52 | outb(inb(PIC_MASK_LO) & ~mask, PIC_MASK_LO); |
53 | } | 53 | } |
54 | 54 | ||
55 | static struct irq_chip isa_lo_chip = { | 55 | static struct irq_chip isa_lo_chip = { |
56 | .ack = isa_ack_pic_lo_irq, | 56 | .irq_ack = isa_ack_pic_lo_irq, |
57 | .mask = isa_mask_pic_lo_irq, | 57 | .irq_mask = isa_mask_pic_lo_irq, |
58 | .unmask = isa_unmask_pic_lo_irq, | 58 | .irq_unmask = isa_unmask_pic_lo_irq, |
59 | }; | 59 | }; |
60 | 60 | ||
61 | static void isa_mask_pic_hi_irq(unsigned int irq) | 61 | static void isa_mask_pic_hi_irq(struct irq_data *d) |
62 | { | 62 | { |
63 | unsigned int mask = 1 << (irq & 7); | 63 | unsigned int mask = 1 << (d->irq & 7); |
64 | 64 | ||
65 | outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI); | 65 | outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI); |
66 | } | 66 | } |
67 | 67 | ||
68 | static void isa_ack_pic_hi_irq(unsigned int irq) | 68 | static void isa_ack_pic_hi_irq(struct irq_data *d) |
69 | { | 69 | { |
70 | unsigned int mask = 1 << (irq & 7); | 70 | unsigned int mask = 1 << (d->irq & 7); |
71 | 71 | ||
72 | outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI); | 72 | outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI); |
73 | outb(0x62, PIC_LO); | 73 | outb(0x62, PIC_LO); |
74 | outb(0x20, PIC_HI); | 74 | outb(0x20, PIC_HI); |
75 | } | 75 | } |
76 | 76 | ||
77 | static void isa_unmask_pic_hi_irq(unsigned int irq) | 77 | static void isa_unmask_pic_hi_irq(struct irq_data *d) |
78 | { | 78 | { |
79 | unsigned int mask = 1 << (irq & 7); | 79 | unsigned int mask = 1 << (d->irq & 7); |
80 | 80 | ||
81 | outb(inb(PIC_MASK_HI) & ~mask, PIC_MASK_HI); | 81 | outb(inb(PIC_MASK_HI) & ~mask, PIC_MASK_HI); |
82 | } | 82 | } |
83 | 83 | ||
84 | static struct irq_chip isa_hi_chip = { | 84 | static struct irq_chip isa_hi_chip = { |
85 | .ack = isa_ack_pic_hi_irq, | 85 | .irq_ack = isa_ack_pic_hi_irq, |
86 | .mask = isa_mask_pic_hi_irq, | 86 | .irq_mask = isa_mask_pic_hi_irq, |
87 | .unmask = isa_unmask_pic_hi_irq, | 87 | .irq_unmask = isa_unmask_pic_hi_irq, |
88 | }; | 88 | }; |
89 | 89 | ||
90 | static void | 90 | static void |