mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
31 lines
974 B
Plaintext
31 lines
974 B
Plaintext
|
diff -ur /usr/ports/x11/XFree86/work/xc/programs/Xserver/hw/xfree86/SuperProbe/AsmMacros.h programs/Xserver/hw/xfree86/SuperProbe/AsmMacros.h
|
||
|
--- /usr/ports/x11/XFree86/work/xc/programs/Xserver/hw/xfree86/SuperProbe/AsmMacros.h Mon Dec 23 06:31:04 1996
|
||
|
+++ programs/Xserver/hw/xfree86/SuperProbe/AsmMacros.h Tue Dec 8 10:05:55 1998
|
||
|
@@ -37,6 +37,18 @@
|
||
|
#define outw(p,v) _outw((v),(p))
|
||
|
#define outl(p,v) _outl((v),(p))
|
||
|
#else
|
||
|
+#if defined(__FreeBSD__) && defined(__alpha__)
|
||
|
+
|
||
|
+#include <sys/types.h>
|
||
|
+
|
||
|
+extern void outb(u_int32_t port, u_int8_t val);
|
||
|
+extern void outw(u_int32_t port, u_int16_t val);
|
||
|
+extern void outl(u_int32_t port, u_int32_t val);
|
||
|
+extern u_int8_t inb(u_int32_t port);
|
||
|
+extern u_int16_t inw(u_int32_t port);
|
||
|
+extern u_int32_t inl(u_int32_t port);
|
||
|
+
|
||
|
+#else
|
||
|
#ifdef GCCUSESGAS
|
||
|
static __inline__ void
|
||
|
outb(port, val)
|
||
|
@@ -156,6 +168,7 @@
|
||
|
|
||
|
#endif /* GCCUSESGAS */
|
||
|
#endif /* linux && __alpha__ */
|
||
|
+#endif /* __FreeBSD__ && __alpha__ */
|
||
|
|
||
|
#ifdef linux
|
||
|
|