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/mach-footbridge/isa-irq.c | |
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/mach-footbridge/isa-irq.c')
-rw-r--r-- | arch/arm/mach-footbridge/isa-irq.c | 36 |
1 files changed, 18 insertions, 18 deletions
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 |