summaryrefslogtreecommitdiff
path: root/src/port.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/port.h')
-rw-r--r--src/port.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/port.h b/src/port.h
new file mode 100644
index 0000000..c7ed457
--- /dev/null
+++ b/src/port.h
@@ -0,0 +1,19 @@
+
+#ifndef __PORT_H
+#define __PORT_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+struct port
+{
+ uint16_t port_number;
+ enum { port8bit, port8bit_slow,
+ port16bit, port32bit} bandwidth;
+};
+
+void port_write(struct port p, uint32_t data);
+uint32_t port_read(struct port p);
+
+
+#endif