Lines Matching +full:0 +full:x21

17 static unsigned char cached_8259[2] = { 0xff, 0xff };
18 #define cached_A1 (cached_8259[0])
34 int lock = 0; in i8259_irq()
44 outb(0x0C, 0x20); /* prepare for poll */ in i8259_irq()
45 irq = inb(0x20) & 7; in i8259_irq()
51 outb(0x0C, 0xA0); /* prepare for poll */ in i8259_irq()
52 irq = (inb(0xA0) & 7) + 8; in i8259_irq()
65 outb(0x0B, 0x20); /* ISR register */ in i8259_irq()
66 if(~inb(0x20) & 0x80) in i8259_irq()
67 irq = 0; in i8259_irq()
68 } else if (irq == 0xff) in i8259_irq()
69 irq = 0; in i8259_irq()
83 inb(0xA1); /* DUMMY */ in i8259_mask_and_ack_irq()
84 outb(cached_A1, 0xA1); in i8259_mask_and_ack_irq()
85 outb(0x20, 0xA0); /* Non-specific EOI */ in i8259_mask_and_ack_irq()
86 outb(0x20, 0x20); /* Non-specific EOI to cascade */ in i8259_mask_and_ack_irq()
89 inb(0x21); /* DUMMY */ in i8259_mask_and_ack_irq()
90 outb(cached_21, 0x21); in i8259_mask_and_ack_irq()
91 outb(0x20, 0x20); /* Non-specific EOI */ in i8259_mask_and_ack_irq()
98 outb(cached_A1,0xA1); in i8259_set_irq_mask()
99 outb(cached_21,0x21); in i8259_set_irq_mask()
142 .start = 0x20,
143 .end = 0x21,
149 .start = 0xa0,
150 .end = 0xa1,
156 .start = 0x4d0,
157 .end = 0x4d1,
171 pr_debug("i8259_host_map(%d, 0x%lx)\n", virq, hw); in i8259_host_map()
182 return 0; in i8259_host_map()
196 *out_hwirq = intspec[0]; in i8259_host_xlate()
202 return 0; in i8259_host_xlate()
231 outb(0xff, 0xA1); in i8259_init()
232 outb(0xff, 0x21); in i8259_init()
235 outb(0x11, 0x20); /* Start init sequence */ in i8259_init()
236 outb(0x00, 0x21); /* Vector base */ in i8259_init()
237 outb(0x04, 0x21); /* edge triggered, Cascade (slave) on IRQ2 */ in i8259_init()
238 outb(0x01, 0x21); /* Select 8086 mode */ in i8259_init()
241 outb(0x11, 0xA0); /* Start init sequence */ in i8259_init()
242 outb(0x08, 0xA1); /* Vector base */ in i8259_init()
243 outb(0x02, 0xA1); /* edge triggered, Cascade (slave) on IRQ2 */ in i8259_init()
244 outb(0x01, 0xA1); /* Select 8086 mode */ in i8259_init()
250 outb(0x0B, 0x20); in i8259_init()
251 outb(0x0B, 0xA0); in i8259_init()
257 outb(cached_A1, 0xA1); in i8259_init()
258 outb(cached_21, 0x21); in i8259_init()
263 i8259_host = irq_domain_add_legacy(node, NR_IRQS_LEGACY, 0, 0, in i8259_init()
279 if (intack_addr != 0) in i8259_init()