Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 1 | /* |
| 2 | * i8259 interrupt controller driver. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version |
| 7 | * 2 of the License, or (at your option) any later version. |
| 8 | */ |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 9 | #undef DEBUG |
| 10 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #include <linux/ioport.h> |
| 12 | #include <linux/interrupt.h> |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 13 | #include <linux/kernel.h> |
| 14 | #include <linux/delay.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #include <asm/io.h> |
| 16 | #include <asm/i8259.h> |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 17 | #include <asm/prom.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 19 | static volatile void __iomem *pci_intack; /* RO, gives us the irq vector */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 21 | static unsigned char cached_8259[2] = { 0xff, 0xff }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #define cached_A1 (cached_8259[0]) |
| 23 | #define cached_21 (cached_8259[1]) |
| 24 | |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 25 | static DEFINE_RAW_SPINLOCK(i8259_lock); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | |
Grant Likely | bae1d8f | 2012-02-14 14:06:50 -0700 | [diff] [blame] | 27 | static struct irq_domain *i8259_host; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
| 29 | /* |
| 30 | * Acknowledge the IRQ using either the PCI host bridge's interrupt |
| 31 | * acknowledge feature or poll. How i8259_init() is called determines |
| 32 | * which is called. It should be noted that polling is broken on some |
| 33 | * IBM and Motorola PReP boxes so we must use the int-ack feature on them. |
| 34 | */ |
Olaf Hering | 35a84c2 | 2006-10-07 22:08:26 +1000 | [diff] [blame] | 35 | unsigned int i8259_irq(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | { |
| 37 | int irq; |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 38 | int lock = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
| 40 | /* Either int-ack or poll for the IRQ */ |
| 41 | if (pci_intack) |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 42 | irq = readb(pci_intack); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | else { |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 44 | raw_spin_lock(&i8259_lock); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 45 | lock = 1; |
| 46 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | /* Perform an interrupt acknowledge cycle on controller 1. */ |
| 48 | outb(0x0C, 0x20); /* prepare for poll */ |
| 49 | irq = inb(0x20) & 7; |
| 50 | if (irq == 2 ) { |
| 51 | /* |
| 52 | * Interrupt is cascaded so perform interrupt |
| 53 | * acknowledge on controller 2. |
| 54 | */ |
| 55 | outb(0x0C, 0xA0); /* prepare for poll */ |
| 56 | irq = (inb(0xA0) & 7) + 8; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | if (irq == 7) { |
| 61 | /* |
| 62 | * This may be a spurious interrupt. |
| 63 | * |
| 64 | * Read the interrupt status register (ISR). If the most |
| 65 | * significant bit is not set then there is no valid |
| 66 | * interrupt. |
| 67 | */ |
| 68 | if (!pci_intack) |
| 69 | outb(0x0B, 0x20); /* ISR register */ |
| 70 | if(~inb(0x20) & 0x80) |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 71 | irq = NO_IRQ; |
| 72 | } else if (irq == 0xff) |
| 73 | irq = NO_IRQ; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 75 | if (lock) |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 76 | raw_spin_unlock(&i8259_lock); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 77 | return irq; |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 78 | } |
| 79 | |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 80 | static void i8259_mask_and_ack_irq(struct irq_data *d) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 81 | { |
| 82 | unsigned long flags; |
| 83 | |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 84 | raw_spin_lock_irqsave(&i8259_lock, flags); |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 85 | if (d->irq > 7) { |
| 86 | cached_A1 |= 1 << (d->irq-8); |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 87 | inb(0xA1); /* DUMMY */ |
| 88 | outb(cached_A1, 0xA1); |
| 89 | outb(0x20, 0xA0); /* Non-specific EOI */ |
| 90 | outb(0x20, 0x20); /* Non-specific EOI to cascade */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 91 | } else { |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 92 | cached_21 |= 1 << d->irq; |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 93 | inb(0x21); /* DUMMY */ |
| 94 | outb(cached_21, 0x21); |
| 95 | outb(0x20, 0x20); /* Non-specific EOI */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 96 | } |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 97 | raw_spin_unlock_irqrestore(&i8259_lock, flags); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | static void i8259_set_irq_mask(int irq_nr) |
| 101 | { |
| 102 | outb(cached_A1,0xA1); |
| 103 | outb(cached_21,0x21); |
| 104 | } |
| 105 | |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 106 | static void i8259_mask_irq(struct irq_data *d) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 107 | { |
| 108 | unsigned long flags; |
| 109 | |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 110 | pr_debug("i8259_mask_irq(%d)\n", d->irq); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 111 | |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 112 | raw_spin_lock_irqsave(&i8259_lock, flags); |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 113 | if (d->irq < 8) |
| 114 | cached_21 |= 1 << d->irq; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 115 | else |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 116 | cached_A1 |= 1 << (d->irq-8); |
| 117 | i8259_set_irq_mask(d->irq); |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 118 | raw_spin_unlock_irqrestore(&i8259_lock, flags); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 119 | } |
| 120 | |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 121 | static void i8259_unmask_irq(struct irq_data *d) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | { |
| 123 | unsigned long flags; |
| 124 | |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 125 | pr_debug("i8259_unmask_irq(%d)\n", d->irq); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 126 | |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 127 | raw_spin_lock_irqsave(&i8259_lock, flags); |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 128 | if (d->irq < 8) |
| 129 | cached_21 &= ~(1 << d->irq); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 130 | else |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 131 | cached_A1 &= ~(1 << (d->irq-8)); |
| 132 | i8259_set_irq_mask(d->irq); |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 133 | raw_spin_unlock_irqrestore(&i8259_lock, flags); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 134 | } |
| 135 | |
Benjamin Herrenschmidt | b9e5b4e | 2006-07-03 19:32:51 +1000 | [diff] [blame] | 136 | static struct irq_chip i8259_pic = { |
Anton Blanchard | fc380c0 | 2010-01-31 20:33:41 +0000 | [diff] [blame] | 137 | .name = "i8259", |
Lennert Buytenhek | d420118 | 2011-03-07 13:59:56 +0000 | [diff] [blame] | 138 | .irq_mask = i8259_mask_irq, |
| 139 | .irq_disable = i8259_mask_irq, |
| 140 | .irq_unmask = i8259_unmask_irq, |
| 141 | .irq_mask_ack = i8259_mask_and_ack_irq, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 142 | }; |
| 143 | |
| 144 | static struct resource pic1_iores = { |
| 145 | .name = "8259 (master)", |
| 146 | .start = 0x20, |
| 147 | .end = 0x21, |
| 148 | .flags = IORESOURCE_BUSY, |
| 149 | }; |
| 150 | |
| 151 | static struct resource pic2_iores = { |
| 152 | .name = "8259 (slave)", |
| 153 | .start = 0xa0, |
| 154 | .end = 0xa1, |
| 155 | .flags = IORESOURCE_BUSY, |
| 156 | }; |
| 157 | |
| 158 | static struct resource pic_edgectrl_iores = { |
| 159 | .name = "8259 edge control", |
| 160 | .start = 0x4d0, |
| 161 | .end = 0x4d1, |
| 162 | .flags = IORESOURCE_BUSY, |
| 163 | }; |
| 164 | |
Marc Zyngier | ad3aedf | 2015-07-28 14:46:08 +0100 | [diff] [blame] | 165 | static int i8259_host_match(struct irq_domain *h, struct device_node *node, |
| 166 | enum irq_domain_bus_token bus_token) |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 167 | { |
Marc Zyngier | 5d4c9bc | 2015-10-13 12:51:29 +0100 | [diff] [blame] | 168 | struct device_node *of_node = irq_domain_get_of_node(h); |
| 169 | return of_node == NULL || of_node == node; |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 170 | } |
| 171 | |
Grant Likely | bae1d8f | 2012-02-14 14:06:50 -0700 | [diff] [blame] | 172 | static int i8259_host_map(struct irq_domain *h, unsigned int virq, |
Benjamin Herrenschmidt | 6e99e45 | 2006-07-10 04:44:42 -0700 | [diff] [blame] | 173 | irq_hw_number_t hw) |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 174 | { |
| 175 | pr_debug("i8259_host_map(%d, 0x%lx)\n", virq, hw); |
| 176 | |
| 177 | /* We block the internal cascade */ |
| 178 | if (hw == 2) |
Thomas Gleixner | 98488db | 2011-03-25 15:43:57 +0100 | [diff] [blame] | 179 | irq_set_status_flags(virq, IRQ_NOREQUEST); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 180 | |
Benjamin Herrenschmidt | 6e99e45 | 2006-07-10 04:44:42 -0700 | [diff] [blame] | 181 | /* We use the level handler only for now, we might want to |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 182 | * be more cautious here but that works for now |
| 183 | */ |
Thomas Gleixner | 98488db | 2011-03-25 15:43:57 +0100 | [diff] [blame] | 184 | irq_set_status_flags(virq, IRQ_LEVEL); |
Thomas Gleixner | ec775d0 | 2011-03-25 16:45:20 +0100 | [diff] [blame] | 185 | irq_set_chip_and_handler(virq, &i8259_pic, handle_level_irq); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 186 | return 0; |
| 187 | } |
| 188 | |
Grant Likely | bae1d8f | 2012-02-14 14:06:50 -0700 | [diff] [blame] | 189 | static int i8259_host_xlate(struct irq_domain *h, struct device_node *ct, |
Roman Fietze | 40d50cf | 2009-12-08 02:39:50 +0000 | [diff] [blame] | 190 | const u32 *intspec, unsigned int intsize, |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 191 | irq_hw_number_t *out_hwirq, unsigned int *out_flags) |
| 192 | { |
| 193 | static unsigned char map_isa_senses[4] = { |
| 194 | IRQ_TYPE_LEVEL_LOW, |
| 195 | IRQ_TYPE_LEVEL_HIGH, |
| 196 | IRQ_TYPE_EDGE_FALLING, |
| 197 | IRQ_TYPE_EDGE_RISING, |
| 198 | }; |
| 199 | |
| 200 | *out_hwirq = intspec[0]; |
| 201 | if (intsize > 1 && intspec[1] < 4) |
| 202 | *out_flags = map_isa_senses[intspec[1]]; |
| 203 | else |
| 204 | *out_flags = IRQ_TYPE_NONE; |
| 205 | |
| 206 | return 0; |
| 207 | } |
| 208 | |
Krzysztof Kozlowski | 202648a | 2015-04-27 21:48:47 +0900 | [diff] [blame] | 209 | static const struct irq_domain_ops i8259_host_ops = { |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 210 | .match = i8259_host_match, |
| 211 | .map = i8259_host_map, |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 212 | .xlate = i8259_host_xlate, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 213 | }; |
| 214 | |
Grant Likely | bae1d8f | 2012-02-14 14:06:50 -0700 | [diff] [blame] | 215 | struct irq_domain *i8259_get_host(void) |
Benjamin Herrenschmidt | f4d4c35 | 2006-10-25 13:22:27 +1000 | [diff] [blame] | 216 | { |
| 217 | return i8259_host; |
| 218 | } |
| 219 | |
Michael Ellerman | 40681b9 | 2006-08-02 11:13:50 +1000 | [diff] [blame] | 220 | /** |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 221 | * i8259_init - Initialize the legacy controller |
| 222 | * @node: device node of the legacy PIC (can be NULL, but then, it will match |
| 223 | * all interrupts, so beware) |
| 224 | * @intack_addr: PCI interrupt acknowledge (real) address which will return |
| 225 | * the active irq from the 8259 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 226 | */ |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 227 | void i8259_init(struct device_node *node, unsigned long intack_addr) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 228 | { |
| 229 | unsigned long flags; |
| 230 | |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 231 | /* initialize the controller */ |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 232 | raw_spin_lock_irqsave(&i8259_lock, flags); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 233 | |
| 234 | /* Mask all first */ |
| 235 | outb(0xff, 0xA1); |
| 236 | outb(0xff, 0x21); |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 237 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 238 | /* init master interrupt controller */ |
| 239 | outb(0x11, 0x20); /* Start init sequence */ |
| 240 | outb(0x00, 0x21); /* Vector base */ |
| 241 | outb(0x04, 0x21); /* edge tiggered, Cascade (slave) on IRQ2 */ |
| 242 | outb(0x01, 0x21); /* Select 8086 mode */ |
| 243 | |
| 244 | /* init slave interrupt controller */ |
| 245 | outb(0x11, 0xA0); /* Start init sequence */ |
| 246 | outb(0x08, 0xA1); /* Vector base */ |
| 247 | outb(0x02, 0xA1); /* edge triggered, Cascade (slave) on IRQ2 */ |
| 248 | outb(0x01, 0xA1); /* Select 8086 mode */ |
| 249 | |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 250 | /* That thing is slow */ |
| 251 | udelay(100); |
| 252 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 253 | /* always read ISR */ |
| 254 | outb(0x0B, 0x20); |
| 255 | outb(0x0B, 0xA0); |
| 256 | |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 257 | /* Unmask the internal cascade */ |
| 258 | cached_21 &= ~(1 << 2); |
| 259 | |
| 260 | /* Set interrupt masks */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 261 | outb(cached_A1, 0xA1); |
| 262 | outb(cached_21, 0x21); |
| 263 | |
Thomas Gleixner | 47e3c90 | 2010-02-18 02:23:11 +0000 | [diff] [blame] | 264 | raw_spin_unlock_irqrestore(&i8259_lock, flags); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 265 | |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 266 | /* create a legacy host */ |
Grant Likely | 1bc04f2 | 2012-02-14 14:06:55 -0700 | [diff] [blame] | 267 | i8259_host = irq_domain_add_legacy_isa(node, &i8259_host_ops, NULL); |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 268 | if (i8259_host == NULL) { |
| 269 | printk(KERN_ERR "i8259: failed to allocate irq host !\n"); |
| 270 | return; |
Benjamin Herrenschmidt | b9e5b4e | 2006-07-03 19:32:51 +1000 | [diff] [blame] | 271 | } |
David Woodhouse | 9d2ba6f | 2005-11-05 17:54:22 +0000 | [diff] [blame] | 272 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 273 | /* reserve our resources */ |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 274 | /* XXX should we continue doing that ? it seems to cause problems |
| 275 | * with further requesting of PCI IO resources for that range... |
| 276 | * need to look into it. |
| 277 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 278 | request_resource(&ioport_resource, &pic1_iores); |
| 279 | request_resource(&ioport_resource, &pic2_iores); |
| 280 | request_resource(&ioport_resource, &pic_edgectrl_iores); |
| 281 | |
| 282 | if (intack_addr != 0) |
| 283 | pci_intack = ioremap(intack_addr, 1); |
Paul Mackerras | f9bd170 | 2005-10-26 16:47:42 +1000 | [diff] [blame] | 284 | |
Benjamin Herrenschmidt | 0ebfff1 | 2006-07-03 21:36:01 +1000 | [diff] [blame] | 285 | printk(KERN_INFO "i8259 legacy interrupt controller initialized\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 286 | } |