Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-base/xorg-server/files: xorg-server-1.17-ia64-fix_inx_outx.patch
Date: Sun, 08 Feb 2015 17:40:29
Message-Id: 20150208174024.20F531155F@oystercatcher.gentoo.org
1 chithanh 15/02/08 17:40:24
2
3 Added: xorg-server-1.17-ia64-fix_inx_outx.patch
4 Log:
5 Version bump, bug #539168.
6
7 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x2324E7B566DF2611!)
8
9 Revision Changes Path
10 1.1 x11-base/xorg-server/files/xorg-server-1.17-ia64-fix_inx_outx.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/files/xorg-server-1.17-ia64-fix_inx_outx.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/files/xorg-server-1.17-ia64-fix_inx_outx.patch?rev=1.1&content-type=text/plain
14
15 Index: xorg-server-1.17-ia64-fix_inx_outx.patch
16 ===================================================================
17 diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
18 index 1653574..fe881ee 100644
19 --- a/hw/xfree86/common/compiler.h
20 +++ b/hw/xfree86/common/compiler.h
21 @@ -286,6 +286,54 @@ extern _X_EXPORT unsigned int inl(unsigned int port);
22 #include <machine/pio.h>
23 #endif /* __NetBSD__ */
24
25 +#elif defined(linux) && defined(__ia64__)
26 +/* for Linux on ia64, we use the LIBC _inx/_outx routines */
27 +/* note that the appropriate setup via "ioperm" needs to be done */
28 +/* *before* any inx/outx is done. */
29 +
30 +extern _X_EXPORT void _outb(unsigned char val, unsigned long port);
31 +extern _X_EXPORT void _outw(unsigned short val, unsigned long port);
32 +extern _X_EXPORT void _outl(unsigned int val, unsigned long port);
33 +extern _X_EXPORT unsigned int _inb(unsigned long port);
34 +extern _X_EXPORT unsigned int _inw(unsigned long port);
35 +extern _X_EXPORT unsigned int _inl(unsigned long port);
36 +
37 +static __inline__ void
38 +outb(unsigned long port, unsigned char val)
39 +{
40 + _outb(val, port);
41 +}
42 +
43 +static __inline__ void
44 +outw(unsigned long port, unsigned short val)
45 +{
46 + _outw(val, port);
47 +}
48 +
49 +static __inline__ void
50 +outl(unsigned long port, unsigned int val)
51 +{
52 + _outl(val, port);
53 +}
54 +
55 +static __inline__ unsigned int
56 +inb(unsigned long port)
57 +{
58 + return _inb(port);
59 +}
60 +
61 +static __inline__ unsigned int
62 +inw(unsigned long port)
63 +{
64 + return _inw(port);
65 +}
66 +
67 +static __inline__ unsigned int
68 +inl(unsigned long port)
69 +{
70 + return _inl(port);
71 +}
72 +
73 #elif defined(__amd64__)
74
75 #include <inttypes.h>