summaryrefslogtreecommitdiff
path: root/src/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/port.h')
-rw-r--r--src/port.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/port.h b/src/port.h
index 32679ee..ec96d09 100644
--- a/src/port.h
+++ b/src/port.h
@@ -11,4 +11,13 @@ 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 //
+typedef struct {
+ uint16_t number; // port number, e.g. 0x3d4 VGA index register
+} port32_t;
+
+void port32_init( port32_t *port, uint16_t number );
+void port32_write( port32_t *port, uint32_t data );
+uint32_t port32_read( port32_t *port );
+
+#endif // PORT_H
+