Rev 2071 | Rev 2439 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2107 | ||
---|---|---|---|
Line 84... | Line 84... | ||
84 | enable_irqs_function = pic_enable_irqs; |
84 | enable_irqs_function = pic_enable_irqs; |
85 | disable_irqs_function = pic_disable_irqs; |
85 | disable_irqs_function = pic_disable_irqs; |
86 | eoi_function = pic_eoi; |
86 | eoi_function = pic_eoi; |
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(uint16_t irqmask) |
92 | void pic_enable_irqs(uint16_t irqmask) |
93 | { |
93 | { |
94 | uint8_t x; |
94 | uint8_t x; |
Line 117... | Line 117... | ||
117 | } |
117 | } |
118 | } |
118 | } |
119 | 119 | ||
120 | void pic_eoi(void) |
120 | void pic_eoi(void) |
121 | { |
121 | { |
122 | outb(0x20,0x20); |
122 | outb(0x20, 0x20); |
123 | outb(0xa0,0x20); |
123 | outb(0xa0, 0x20); |
124 | } |
124 | } |
125 | 125 | ||
126 | void pic_spurious(int n, istate_t *istate) |
126 | void pic_spurious(int n, istate_t *istate) |
127 | { |
127 | { |
128 | #ifdef CONFIG_DEBUG |
128 | #ifdef CONFIG_DEBUG |