21#ifndef KERNEL_ARCH_I686_DEVICES_PIC_H
22#define KERNEL_ARCH_I686_DEVICES_PIC_H
31#define PIC_MASTER_VECTOR 0x20
32#define PIC_SLAVE_VECTOR 0x28
58#define PIC_IRQ_COUNT (IRQ_ATA_SECONDARY + 1)
void pic_reset()
Reset the PIC.
Definition: pic.c:34
void pic_eoi(pic_irq)
Send an End Of Interrupt command to the PIC.
Definition: pic.c:64
void pic_enable_irq(pic_irq)
Enable the given IRQ.
Definition: pic.c:73
pic_irq
All available PIC irqs, by vector index.
Definition: pic.h:38
void pic_disable_irq(pic_irq)
Disable the given IRQ.
Definition: pic.c:82
@ IRQ_KEYBOARD
Raised by the keyboard.
Definition: pic.h:40
@ IRQ_COM2
Raised by the serial port.
Definition: pic.h:42
@ IRQ_CASCADE
Used to access the second controller.
Definition: pic.h:41
@ IRQ_TIMER
Raised by the PIT.
Definition: pic.h:39
@ IRQ_COM1
Raised by the serial port.
Definition: pic.h:43