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