reimplmenets the previous iteration with a brand new custom build system
This commit is contained in:
24
kernel/arch/io.h
Normal file
24
kernel/arch/io.h
Normal file
@ -0,0 +1,24 @@
|
||||
#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
|
||||
|
||||
|
Reference in New Issue
Block a user