aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xfree86/os-support/linux/lnx.h
blob: 085c94265024db051c3a8c2c50b22115d19a40e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif

#ifndef LNX_H_
# ifdef __alpha__
extern unsigned long _bus_base __P ((void)) __attribute__ ((const));
extern unsigned long _bus_base_sparse __P ((void)) __attribute__ ((const));
extern int iopl __P ((int __level));

/* new pciconfig_iobase syscall added in 2.2.15 and 2.3.99 */
#  include <linux/unistd.h>
extern long (*_iobase)(unsigned, int, int, int);

/*
 * _iobase deals with the case the __NR_pciconfig_iobase is either undefined
 * or unsupported by the kernel, but we need to make sure that the `which'
 * argument symbols are defined.
 */
#  ifndef IOBASE_HOSE
#   define IOBASE_HOSE 		0
#  endif
#  ifndef IOBASE_SPARSE_MEM
#   define IOBASE_SPARSE_MEM	1
#  endif
#  ifndef IOBASE_DENSE_MEM
#   define IOBASE_DENSE_MEM	2
#  endif
#  ifndef IOBASE_SPARSE_IO
#   define IOBASE_SPARSE_IO	3
#  endif
#  ifndef IOBASE_DENSE_IO
#   define IOBASE_DENSE_IO	4
#  endif
#  ifndef IOBASE_ROOT_BUS
#   define IOBASE_ROOT_BUS	5
#  endif
#  ifndef IOBASE_FROM_HOSE
#   define IOBASE_FROM_HOSE	0x10000
#  endif
# endif /* __alpha__ */

# if defined(DO_OS_FONTRESTORE)
Bool lnx_savefont(void);
Bool lnx_restorefont(void);
Bool lnx_switchaway(void);
void lnx_freefontdata(void);
# endif

#define LNX_H_

#endif