|
LumaOS
v0.1.116
An experimental x86-64 OS
|
Handles the legacy PIC for IRQ interrupts. More...
Go to the source code of this file.
Macros | |
| #define | PIC_MASTER_COMMAND_PORT 0x20 |
| #define | PIC_MASTER_DATA_PORT 0x21 |
| #define | PIC_SLAVE_COMMAND_PORT 0xA0 |
| #define | PIC_SLAVE_DATA_PORT 0xA1 |
Functions | |
| void | pic_remap (uint8_t master_offset, uint8_t slave_offset) |
| Initializes the PIC using ICWs and mask all lines. | |
| void | pic_set_mask (uint8_t irq) |
| Masks (Disables) a line. | |
| void | pic_clear_mask (uint8_t irq) |
| Unmasks (Enables) a line. | |
| void | pic_send_eoi (uint8_t irq) |
| Sends an EOI to tell the PIC that the interrupt is over. | |
| uint8_t | pic_read_irr (void) |
| uint8_t | pic_read_isr (void) |
Handles the legacy PIC for IRQ interrupts.
Definition in file pic.h.
| void pic_clear_mask | ( | uint8_t | irq | ) |
| void pic_remap | ( | uint8_t | master_offset, |
| uint8_t | slave_offset ) |
| void pic_send_eoi | ( | uint8_t | irq | ) |