diff options
Diffstat (limited to 'src/port.h')
-rw-r--r-- | src/port.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,14 @@ #ifndef PORT_H #define PORT_H +#include <stdint.h> + +typedef struct port8_t { + uint16_t number; // port number, e.g. 0x3d4 VGA index register +} port8_t; + +void port8_init( port8_t *port, uint16_t number ); +void port8_write( port8_t *port, uint8_t data ); +uint8_t port8_read( port8_t *port ); #endif /* PORT_H */ |