mirror of https://github.com/garritfra/ditto-os
garritfra
5 years ago
3 changed files with 29 additions and 4 deletions
@ -0,0 +1,20 @@ |
|||||||
|
#ifndef INCLUDE_IO |
||||||
|
#define INCLUDE_IO |
||||||
|
|
||||||
|
|
||||||
|
/** outb
|
||||||
|
* Write bytes to an I/O port. |
||||||
|
*
|
||||||
|
* @param port The address of the I/O port |
||||||
|
*/ |
||||||
|
extern 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 |
Loading…
Reference in new issue