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