15#define pic1_command 0x20
17#define pic2_command 0xA0
34void outb(int16 port, int8 value);
54void outw(int16 portNumber, int16 data);
64int16
inw(int16 portNumber);
74int32
inl(int16 portNumber);
84void outl(int16 portNumber, int32 data);
This is a basic header files with FrostWing specific short forms and basically a good for life header...
void outb(int16 port, int8 value)
Output a byte to the specified I/O port.
int16 inw(int16 portNumber)
Read a 16-bit value from the specified I/O port.
void init_hardware_abstraction_layer()
Initializes HAL by remapping the PIC interrupts to avoid conflicts.
void io_wait()
Perform an I/O wait operation.
int32 inl(int16 portNumber)
Read a 32-bit value from the specified I/O port.
int8 inb(int16 port)
Read a byte from the specified I/O port.
void outl(int16 portNumber, int32 data)
Output a 32-bit value to the specified I/O port.
void outw(int16 portNumber, int16 data)
Output a 16-bit value to the specified I/O port.