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