First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / os-support / linux / lnx.h
blob085c94265024db051c3a8c2c50b22115d19a40e4
2 #ifdef HAVE_XORG_CONFIG_H
3 #include <xorg-config.h>
4 #endif
6 #ifndef LNX_H_
7 # ifdef __alpha__
8 extern unsigned long _bus_base __P ((void)) __attribute__ ((const));
9 extern unsigned long _bus_base_sparse __P ((void)) __attribute__ ((const));
10 extern int iopl __P ((int __level));
12 /* new pciconfig_iobase syscall added in 2.2.15 and 2.3.99 */
13 # include <linux/unistd.h>
14 extern long (*_iobase)(unsigned, int, int, int);
17 * _iobase deals with the case the __NR_pciconfig_iobase is either undefined
18 * or unsupported by the kernel, but we need to make sure that the `which'
19 * argument symbols are defined.
21 # ifndef IOBASE_HOSE
22 # define IOBASE_HOSE 0
23 # endif
24 # ifndef IOBASE_SPARSE_MEM
25 # define IOBASE_SPARSE_MEM 1
26 # endif
27 # ifndef IOBASE_DENSE_MEM
28 # define IOBASE_DENSE_MEM 2
29 # endif
30 # ifndef IOBASE_SPARSE_IO
31 # define IOBASE_SPARSE_IO 3
32 # endif
33 # ifndef IOBASE_DENSE_IO
34 # define IOBASE_DENSE_IO 4
35 # endif
36 # ifndef IOBASE_ROOT_BUS
37 # define IOBASE_ROOT_BUS 5
38 # endif
39 # ifndef IOBASE_FROM_HOSE
40 # define IOBASE_FROM_HOSE 0x10000
41 # endif
42 # endif /* __alpha__ */
44 # if defined(DO_OS_FONTRESTORE)
45 Bool lnx_savefont(void);
46 Bool lnx_restorefont(void);
47 Bool lnx_switchaway(void);
48 void lnx_freefontdata(void);
49 # endif
51 #define LNX_H_
53 #endif