summaryrefslogtreecommitdiff
path: root/kernel/portio.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-01-11 06:28:28 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-01-11 06:28:28 +0100
commitc9961af38885b92a86e61e54286c2e60b1585359 (patch)
tree4bd58de6b3dbfb8b7ebc2f3de3b3b88dff3402d3 /kernel/portio.h
parent93af394f5d55445b22fa50e99d8f8376cb34e8e1 (diff)
Move port IO macros to a separate file.
Diffstat (limited to 'kernel/portio.h')
-rw-r--r--kernel/portio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/portio.h b/kernel/portio.h
new file mode 100644
index 0000000..06e0802
--- /dev/null
+++ b/kernel/portio.h
@@ -0,0 +1,6 @@
+#ifndef PORTIO_H
+#define PORTIO_H
+
+#define outb(port, value) asm volatile("out %b0,%w1" : : "a" (value), "d" (port));
+
+#endif