summaryrefslogtreecommitdiff
path: root/src/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/port.h')
-rw-r--r--src/port.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/port.h b/src/port.h
index a4621de..98f63fc 100644
--- a/src/port.h
+++ b/src/port.h
@@ -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 */