1 |
|
---|
2 | #ifdef HAVE_XORG_CONFIG_H
|
---|
3 | #include <xorg-config.h>
|
---|
4 | #endif
|
---|
5 |
|
---|
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));
|
---|
11 |
|
---|
12 | /* new pciconfig_iobase syscall added in 2.2.15 and 2.3.99 */
|
---|
13 | # include <linux/unistd.h>
|
---|
14 | # include <asm/pci.h>
|
---|
15 | extern long (*_iobase)(unsigned, int, int, int);
|
---|
16 |
|
---|
17 | /*
|
---|
18 | * _iobase deals with the case the __NR_pciconfig_iobase is either undefined
|
---|
19 | * or unsupported by the kernel, but we need to make sure that the `which'
|
---|
20 | * argument symbols are defined.
|
---|
21 | */
|
---|
22 | # ifndef IOBASE_HOSE
|
---|
23 | # define IOBASE_HOSE 0
|
---|
24 | # endif
|
---|
25 | # ifndef IOBASE_SPARSE_MEM
|
---|
26 | # define IOBASE_SPARSE_MEM 1
|
---|
27 | # endif
|
---|
28 | # ifndef IOBASE_DENSE_MEM
|
---|
29 | # define IOBASE_DENSE_MEM 2
|
---|
30 | # endif
|
---|
31 | # ifndef IOBASE_SPARSE_IO
|
---|
32 | # define IOBASE_SPARSE_IO 3
|
---|
33 | # endif
|
---|
34 | # ifndef IOBASE_DENSE_IO
|
---|
35 | # define IOBASE_DENSE_IO 4
|
---|
36 | # endif
|
---|
37 | # ifndef IOBASE_ROOT_BUS
|
---|
38 | # define IOBASE_ROOT_BUS 5
|
---|
39 | # endif
|
---|
40 | # ifndef IOBASE_FROM_HOSE
|
---|
41 | # define IOBASE_FROM_HOSE 0x10000
|
---|
42 | # endif
|
---|
43 | # endif /* __alpha__ */
|
---|
44 |
|
---|
45 | # if defined(DO_OS_FONTRESTORE)
|
---|
46 | Bool lnx_savefont(void);
|
---|
47 | Bool lnx_restorefont(void);
|
---|
48 | Bool lnx_switchaway(void);
|
---|
49 | void lnx_freefontdata(void);
|
---|
50 | # endif
|
---|
51 |
|
---|
52 | #define LNX_H_
|
---|
53 |
|
---|
54 | #endif
|
---|