cfq-iosched: add hlist for browsing parallel to the radix tree
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-x86 / i8259.h
blob67c319e0efc79f4975e1983e8a9f75e31465e434
1 #ifndef __ASM_I8259_H__
2 #define __ASM_I8259_H__
4 extern unsigned int cached_irq_mask;
6 #define __byte(x,y) (((unsigned char *) &(y))[x])
7 #define cached_master_mask (__byte(0, cached_irq_mask))
8 #define cached_slave_mask (__byte(1, cached_irq_mask))
10 /* i8259A PIC registers */
11 #define PIC_MASTER_CMD 0x20
12 #define PIC_MASTER_IMR 0x21
13 #define PIC_MASTER_ISR PIC_MASTER_CMD
14 #define PIC_MASTER_POLL PIC_MASTER_ISR
15 #define PIC_MASTER_OCW3 PIC_MASTER_ISR
16 #define PIC_SLAVE_CMD 0xa0
17 #define PIC_SLAVE_IMR 0xa1
19 /* i8259A PIC related value */
20 #define PIC_CASCADE_IR 2
21 #define MASTER_ICW4_DEFAULT 0x01
22 #define SLAVE_ICW4_DEFAULT 0x01
23 #define PIC_ICW4_AEOI 2
25 extern spinlock_t i8259A_lock;
27 extern void init_8259A(int auto_eoi);
28 extern void enable_8259A_irq(unsigned int irq);
29 extern void disable_8259A_irq(unsigned int irq);
30 extern unsigned int startup_8259A_irq(unsigned int irq);
32 #define inb_pic inb_p
33 #define outb_pic outb_p
35 #endif /* __ASM_I8259_H__ */