45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef HAVE_XORG_CONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <xorg-config.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef LNX_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifdef __alpha__
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long _bus_base __P ((void)) __attribute__ ((const));
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long _bus_base_sparse __P ((void)) __attribute__ ((const));
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int iopl __P ((int __level));
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* new pciconfig_iobase syscall added in 2.2.15 and 2.3.99 */
45e9809aff7304721fddb95654901b32195c9c7avboxsync# include <linux/unistd.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern long (*_iobase)(unsigned, int, int, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * _iobase deals with the case the __NR_pciconfig_iobase is either undefined
45e9809aff7304721fddb95654901b32195c9c7avboxsync * or unsupported by the kernel, but we need to make sure that the `which'
45e9809aff7304721fddb95654901b32195c9c7avboxsync * argument symbols are defined.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifndef IOBASE_HOSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define IOBASE_HOSE 0
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifndef IOBASE_SPARSE_MEM
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define IOBASE_SPARSE_MEM 1
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifndef IOBASE_DENSE_MEM
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define IOBASE_DENSE_MEM 2
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifndef IOBASE_SPARSE_IO
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define IOBASE_SPARSE_IO 3
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifndef IOBASE_DENSE_IO
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define IOBASE_DENSE_IO 4
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifndef IOBASE_ROOT_BUS
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define IOBASE_ROOT_BUS 5
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ifndef IOBASE_FROM_HOSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define IOBASE_FROM_HOSE 0x10000
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif /* __alpha__ */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# if defined(DO_OS_FONTRESTORE)
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool lnx_savefont(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool lnx_restorefont(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool lnx_switchaway(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid lnx_freefontdata(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync# endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define LNX_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif