summaryrefslogtreecommitdiff
path: root/include/i8042.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/i8042.h')
-rw-r--r--include/i8042.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/i8042.h b/include/i8042.h
index 61c9da2..f77239f 100644
--- a/include/i8042.h
+++ b/include/i8042.h
@@ -26,6 +26,13 @@
#ifndef _I8042_H_
#define _I8042_H_
+#ifdef __I386__
+#include <common.h>
+#include <asm/io.h>
+#define in8(p) inb(p)
+#define out8(p,v) outb(v,p)
+#endif
+
/* defines */
#define I8042_DATA_REG (CFG_ISA_IO + 0x0060) /* keyboard i/o buffer */