2 #ifdef HAVE_XORG_CONFIG_H
3 #include <xorg-config.h>
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.
22 # define IOBASE_HOSE 0
24 # ifndef IOBASE_SPARSE_MEM
25 # define IOBASE_SPARSE_MEM 1
27 # ifndef IOBASE_DENSE_MEM
28 # define IOBASE_DENSE_MEM 2
30 # ifndef IOBASE_SPARSE_IO
31 # define IOBASE_SPARSE_IO 3
33 # ifndef IOBASE_DENSE_IO
34 # define IOBASE_DENSE_IO 4
36 # ifndef IOBASE_ROOT_BUS
37 # define IOBASE_ROOT_BUS 5
39 # ifndef IOBASE_FROM_HOSE
40 # define IOBASE_FROM_HOSE 0x10000
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);