Rev 1754 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1754 | Rev 1780 | ||
---|---|---|---|
Line 87... | Line 87... | ||
87 | 87 | ||
88 | pic_disable_irqs(0xffff); /* disable all irq's */ |
88 | pic_disable_irqs(0xffff); /* disable all irq's */ |
89 | pic_enable_irqs(1<<IRQ_PIC1); /* but enable pic1 */ |
89 | pic_enable_irqs(1<<IRQ_PIC1); /* but enable pic1 */ |
90 | } |
90 | } |
91 | 91 | ||
92 | void pic_enable_irqs(__u16 irqmask) |
92 | void pic_enable_irqs(uint16_t irqmask) |
93 | { |
93 | { |
94 | __u8 x; |
94 | uint8_t x; |
95 | 95 | ||
96 | if (irqmask & 0xff) { |
96 | if (irqmask & 0xff) { |
97 | x = inb(PIC_PIC0PORT2); |
97 | x = inb(PIC_PIC0PORT2); |
98 | outb(PIC_PIC0PORT2, x & (~(irqmask & 0xff))); |
98 | outb(PIC_PIC0PORT2, x & (~(irqmask & 0xff))); |
99 | } |
99 | } |
Line 101... | Line 101... | ||
101 | x = inb(PIC_PIC1PORT2); |
101 | x = inb(PIC_PIC1PORT2); |
102 | outb(PIC_PIC1PORT2, x & (~(irqmask >> 8))); |
102 | outb(PIC_PIC1PORT2, x & (~(irqmask >> 8))); |
103 | } |
103 | } |
104 | } |
104 | } |
105 | 105 | ||
106 | void pic_disable_irqs(__u16 irqmask) |
106 | void pic_disable_irqs(uint16_t irqmask) |
107 | { |
107 | { |
108 | __u8 x; |
108 | uint8_t x; |
109 | 109 | ||
110 | if (irqmask & 0xff) { |
110 | if (irqmask & 0xff) { |
111 | x = inb(PIC_PIC0PORT2); |
111 | x = inb(PIC_PIC0PORT2); |
112 | outb(PIC_PIC0PORT2, x | (irqmask & 0xff)); |
112 | outb(PIC_PIC0PORT2, x | (irqmask & 0xff)); |
113 | } |
113 | } |