This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pic.h" // Replace with an actual header | |
#define PIC_PRIMARY_CMD_PORT 0x20 | |
#define PIC_SECONDARY_CMD_PORT 0x20 | |
#define PIC_PRIMARY_DATA_PORT 0x21 | |
#define PIC_SECONDARY_DATA_PORT 0xA1 | |
static void pic_iowait() { __asm__ volatile("outb %%al, $0x80" : : "a"(0)); } | |
struct pic_config current_pic_config; |