summaryrefslogtreecommitdiffstats
path: root/hwaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'hwaccess.h')
-rw-r--r--hwaccess.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/hwaccess.h b/hwaccess.h
index 06817ab..7a76925 100644
--- a/hwaccess.h
+++ b/hwaccess.h
@@ -68,12 +68,30 @@
#define INW inw
#define INL inl
#else
+
+#ifdef __DJGPP__
+
+#include <pc.h>
+
+ #define OUTB(x,y) outportb(y, x)
+ #define OUTW(x,y) outportw(y, x)
+ #define OUTL(x,y) outportl(y, x)
+
+ #define INB inportb
+ #define INW inportw
+ #define INL inportl
+
+#else
+
#define OUTB outb
#define OUTW outw
#define OUTL outl
#define INB inb
#define INW inw
#define INL inl
+
+#endif
+
#endif
#endif
OpenPOWER on IntegriCloud