25 lines
433 B
C
25 lines
433 B
C
#ifndef ARCH_IO_H
|
|
#define ARCH_IO_H
|
|
|
|
/**
|
|
* outb:
|
|
* Sends the given data to the I/O port. Defined in io.s
|
|
*
|
|
* @param port The I/O port to send the data to
|
|
* @param data TThe data to send to the I/O port
|
|
*/
|
|
void outb(unsigned short port, unsigned char data);
|
|
|
|
/**
|
|
* inb:
|
|
* Read a byte from an I/O port
|
|
*
|
|
* @param port The address of the I/O port
|
|
* @return The read byte
|
|
*/
|
|
unsigned char inb(unsigned short port);
|
|
|
|
#endif
|
|
|
|
|