1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/x11/XFree86/files/patch-02
Jean-Marc Zucconi cd7d36b7f3 Upgrade to version 3.3.6
patch-4 has been split into several parts (patch-0?); one patch per
modified file
2000-01-12 03:49:50 +00:00

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