summaryrefslogtreecommitdiffstats
path: root/x11-servers/XttXF86srv-common/files/patch-02
blob: 036e849db7fea51cbdac4de050452d113a8edd60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
 
OpenPOWER on IntegriCloud