1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 06:43:45 +02:00

urjtag : replace inb/outb with some simple define

This commit is contained in:
Xiangfu 2012-06-18 21:57:00 +08:00
parent 67ac56b15b
commit 927287f6c9

View File

@ -1,5 +1,5 @@
diff --git a/urjtag/src/tap/parport/direct.c b/urjtag/src/tap/parport/direct.c
index 10bea4d..2be15b8 100644
index 10bea4d..bc3bada 100644
--- a/urjtag/src/tap/parport/direct.c
+++ b/urjtag/src/tap/parport/direct.c
@@ -37,6 +37,20 @@
@ -13,8 +13,8 @@ index 10bea4d..2be15b8 100644
+
+#define NO_SYSIO
+
+#define inb(foo) 0
+#define outb(foo,bar) 0
+#define inb(addr) (*(volatile unsigned char *)(addr))
+#define outb(b,addr) (*(volatile unsigned char *)(addr)) = (b)
+
+#endif /* architechtures */
+#endif /* __linux__ */