45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1990, 1991 by Thomas Roell, Dinkelscherben, Germany
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1992 by David Dawes <dawes@XFree86.org>
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1992 by Jim Tsillas <jtsilla@damon.ccs.northeastern.edu>
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1992 by Rich Murphey <Rich@Rice.edu>
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1992 by Robert Baron <Robert.Baron@ernst.mach.cs.cmu.edu>
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1992 by Orest Zborowski <obz@eskimo.com>
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1993 by Vrije Universiteit, The Netherlands
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1993 by David Wexelblat <dwex@XFree86.org>
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1994, 1996 by Holger Veit <Holger.Veit@gmd.de>
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1994-2003 by The XFree86 Project, Inc
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission to use, copy, modify, distribute, and sell this software and its
45e9809aff7304721fddb95654901b32195c9c7avboxsync * documentation for any purpose is hereby granted without fee, provided that
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the above copyright notice appear in all copies and that both that
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copyright notice and this permission notice appear in supporting
45e9809aff7304721fddb95654901b32195c9c7avboxsync * documentation, and that the names of the above listed copyright holders
45e9809aff7304721fddb95654901b32195c9c7avboxsync * not be used in advertising or publicity pertaining to distribution of
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the software without specific, written prior permission. The above listed
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copyright holders make no representations about the suitability of this
45e9809aff7304721fddb95654901b32195c9c7avboxsync * software for any purpose. It is provided "as is" without express or
45e9809aff7304721fddb95654901b32195c9c7avboxsync * implied warranty.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE ABOVE LISTED COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD
45e9809aff7304721fddb95654901b32195c9c7avboxsync * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
45e9809aff7304721fddb95654901b32195c9c7avboxsync * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDERS BE
45e9809aff7304721fddb95654901b32195c9c7avboxsync * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
45e9809aff7304721fddb95654901b32195c9c7avboxsync * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The ARM32 code here carries the following copyright:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright 1997
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Digital Equipment Corporation. All rights reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This software is furnished under license and may be used and copied only in
45e9809aff7304721fddb95654901b32195c9c7avboxsync * accordance with the following terms and conditions. Subject to these
45e9809aff7304721fddb95654901b32195c9c7avboxsync * conditions, you may download, copy, install, use, modify and distribute
45e9809aff7304721fddb95654901b32195c9c7avboxsync * this software in source and/or binary form. No title or ownership is
45e9809aff7304721fddb95654901b32195c9c7avboxsync * transferred hereby.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * 1) Any source code used, modified or distributed must reproduce and retain
45e9809aff7304721fddb95654901b32195c9c7avboxsync * this copyright notice and list of conditions as they appear in the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * source file.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * 2) No right is granted to use any trade name, trademark, or logo of Digital
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Equipment Corporation. Neither the "Digital Equipment Corporation"
45e9809aff7304721fddb95654901b32195c9c7avboxsync * name nor any trademark or logo of Digital Equipment Corporation may be
45e9809aff7304721fddb95654901b32195c9c7avboxsync * used to endorse or promote products derived from this software without
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the prior written permission of Digital Equipment Corporation.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * 3) This software is provided "AS-IS" and any express or implied warranties,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * including but not limited to, any implied warranties of merchantability,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * fitness for a particular purpose, or non-infringement are disclaimed.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * In no event shall DIGITAL be liable for any damages whatsoever, and in
45e9809aff7304721fddb95654901b32195c9c7avboxsync * particular, DIGITAL shall not be liable for special, indirect,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * consequential, or incidental damages or damages for lost profits, loss
45e9809aff7304721fddb95654901b32195c9c7avboxsync * of revenue or loss of use, whether such damages arise in contract,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * negligence, tort, under statute, in equity, at law or otherwise, even
45e9809aff7304721fddb95654901b32195c9c7avboxsync * if advised of the possibility of such damage.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _XF86_OSPROC_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _XF86_OSPROC_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef XF86_OS_PRIVS
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "xf86Pci.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The actual prototypes have been pulled into this seperate file so
45e9809aff7304721fddb95654901b32195c9c7avboxsync * that they can can be used without pulling in all of the OS specific
45e9809aff7304721fddb95654901b32195c9c7avboxsync * stuff like sys/stat.h, etc. This casues problem for loadable modules.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Flags for xf86MapVidMem(). Multiple flags can be or'd together. The
45e9809aff7304721fddb95654901b32195c9c7avboxsync * flags may be used as hints. For example it would be permissible to
45e9809aff7304721fddb95654901b32195c9c7avboxsync * enable write combining for memory marked only for framebuffer use.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VIDMEM_FRAMEBUFFER 0x01 /* memory for framebuffer use */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VIDMEM_MMIO 0x02 /* memory for I/O use */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VIDMEM_MMIO_32BIT 0x04 /* memory accesses >= 32bit */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VIDMEM_READSIDEEFFECT 0x08 /* reads can have side-effects */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VIDMEM_SPARSE 0x10 /* sparse mapping required
45e9809aff7304721fddb95654901b32195c9c7avboxsync * assumed when VIDMEM_MMIO is
45e9809aff7304721fddb95654901b32195c9c7avboxsync * set. May be used with
45e9809aff7304721fddb95654901b32195c9c7avboxsync * VIDMEM_FRAMEBUFFER) */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define VIDMEM_READONLY 0x20 /* read-only mapping
45e9809aff7304721fddb95654901b32195c9c7avboxsync * used when reading BIOS images
45e9809aff7304721fddb95654901b32195c9c7avboxsync * through xf86MapVidMem() */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OS-independent modem state flags for xf86SetSerialModemState() and
45e9809aff7304721fddb95654901b32195c9c7avboxsync * xf86GetSerialModemState().
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_LE 0x001 /* line enable */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_DTR 0x002 /* data terminal ready */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_RTS 0x004 /* request to send */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_ST 0x008 /* secondary transmit */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_SR 0x010 /* secondary receive */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_CTS 0x020 /* clear to send */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_CAR 0x040 /* carrier detect */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_RNG 0x080 /* ring */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define XF86_M_DSR 0x100 /* data set ready */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef XF86_OS_PRIVS
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86WrapperInit(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef NO_OSLIB_PROTOTYPES
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * This is to prevent re-entrancy to FatalError() when aborting.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Anything that can be called as a result of AbortDDX() should use this
45e9809aff7304721fddb95654901b32195c9c7avboxsync * instead of FatalError().
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define xf86FatalError(a, b) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync if (dispatchException & DE_TERMINATE) { \
45e9809aff7304721fddb95654901b32195c9c7avboxsync ErrorF(a, b); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync ErrorF("\n"); \
45e9809aff7304721fddb95654901b32195c9c7avboxsync return; \
45e9809aff7304721fddb95654901b32195c9c7avboxsync } else FatalError(a, b)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/***************************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Prototypes */
45e9809aff7304721fddb95654901b32195c9c7avboxsync/***************************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <X11/Xfuncproto.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "opaque.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync_XFUNCPROTOBEGIN
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* public functions */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86LinearVidMem(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86CheckMTRR(int);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern pointer xf86MapVidMem(int, int, unsigned long, unsigned long);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86UnMapVidMem(int, pointer, unsigned long);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86MapReadSideEffects(int, int, pointer, unsigned long);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86ReadBIOS(unsigned long, unsigned long, unsigned char *, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86EnableIO(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86DisableIO(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86DisableInterrupts(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86EnableInterrupts(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86SetTVOut(int);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86SetRGBOut(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86OSRingBell(int, int, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#if defined(QNX4)
45e9809aff7304721fddb95654901b32195c9c7avboxsync#pragma aux xf86BusToMem modify [eax ebx ecx edx esi edi];
45e9809aff7304721fddb95654901b32195c9c7avboxsync#pragma aux xf86MemToBus modify [eax ebx ecx edx esi edi];
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86BusToMem(unsigned char *, unsigned char *, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86MemToBus(unsigned char *, unsigned char *, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86IODelay(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86UDelay(long usec);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86SetReallySlowBcopy(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86SlowBcopy(unsigned char *, unsigned char *, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86OpenSerial(pointer options);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86SetSerial(int fd, pointer options);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86SetSerialSpeed(int fd, int speed);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86ReadSerial(int fd, void *buf, int count);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86WriteSerial(int fd, const void *buf, int count);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86CloseSerial(int fd);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86FlushInput(int fd);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86WaitForInput(int fd, int timeout);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86SerialSendBreak(int fd, int duration);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86SetSerialModemState(int fd, int state);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86GetSerialModemState(int fd);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86SerialModemSetBits(int fd, int bits);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86SerialModemClearBits(int fd, int bits);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86LoadKernelModule(const char *pathname);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86RingBell(int volume, int pitch, int duration);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* AGP GART interface */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct _AgpInfo {
45e9809aff7304721fddb95654901b32195c9c7avboxsync CARD32 bridgeId;
45e9809aff7304721fddb95654901b32195c9c7avboxsync CARD32 agpMode;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long base;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long size;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long totalPages;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long systemPages;
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long usedPages;
45e9809aff7304721fddb95654901b32195c9c7avboxsync} AgpInfo, *AgpInfoPtr;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86AgpGARTSupported(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern AgpInfoPtr xf86GetAGPInfo(int screenNum);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86AcquireGART(int screenNum);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86ReleaseGART(int screenNum);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86AllocateGARTMemory(int screenNum, unsigned long size, int type,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned long *physical);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86DeallocateGARTMemory(int screenNum, int key);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86BindGARTMemory(int screenNum, int key, unsigned long offset);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86UnbindGARTMemory(int screenNum, int key);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86EnableAGP(int screenNum, CARD32 mode);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86GARTCloseScreen(int screenNum);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* These routines are in shared/sigio.c and are not loaded as part of the
45e9809aff7304721fddb95654901b32195c9c7avboxsync module. These routines are small, and the code if very POSIX-signal (or
45e9809aff7304721fddb95654901b32195c9c7avboxsync OS-signal) specific, so it seemed better to provide more complex
45e9809aff7304721fddb95654901b32195c9c7avboxsync wrappers than to wrap each individual function called. */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86InstallSIGIOHandler(int fd, void (*f)(int, void *), void *);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86RemoveSIGIOHandler(int fd);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86BlockSIGIO (void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86UnblockSIGIO (int);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86AssertBlockedSIGIO (char *);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86SIGIOSupported (void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef XF86_OS_PRIVS
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*PMClose)(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86OpenConsole(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86CloseConsole(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86VTSwitchPending(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86VTSwitchAway(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86VTSwitchTo(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86VTRequest(int sig);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int xf86ProcessArgument(int, char **, int);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86UseMsg(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86ReloadInputDevs(int sig);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern PMClose xf86OSPMOpen(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef NEED_OS_RAC_PROTOS
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* RAC-related privs */
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* internal to os-support layer */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncresPtr xf86StdBusAccWindowsFromOS(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncresPtr xf86StdPciAccWindowsFromOS(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncresPtr xf86StdIsaAccWindowsFromOS(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncresPtr xf86StdAccResFromOS(resPtr ret);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* available to the common layer */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncresPtr xf86BusAccWindowsFromOS(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncresPtr xf86PciBusAccWindowsFromOS(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef INCLUDE_UNUSED
45e9809aff7304721fddb95654901b32195c9c7avboxsyncresPtr xf86IsaBusAccWindowsFromOS(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsyncresPtr xf86AccResFromOS(resPtr ret);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* NEED_OS_RAC_PROTOS */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86GetPciSizeFromOS(PCITAG tag, int indx, int* bits);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern Bool xf86GetPciOffsetFromOS(PCITAG tag, int indx, unsigned long* bases);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern unsigned long xf86GetOSOffsetFromPCI(PCITAG tag, int space, unsigned long base);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86MakeNewMapping(int, int, unsigned long, unsigned long, pointer);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void xf86InitVidMem(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* XF86_OS_PRIVS */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync_XFUNCPROTOEND
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* NO_OSLIB_PROTOTYPES */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* _XF86_OSPROC_H */