00314ca59bb0358d05053ee753174724d82adff4vboxsync/*
36411046d85fccaa66061120a064225fd1b5ae01vboxsync * Copyright (c) 1999-2000 by The XFree86 Project, Inc.
00314ca59bb0358d05053ee753174724d82adff4vboxsync *
00314ca59bb0358d05053ee753174724d82adff4vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
00314ca59bb0358d05053ee753174724d82adff4vboxsync * copy of this software and associated documentation files (the "Software"),
36411046d85fccaa66061120a064225fd1b5ae01vboxsync * to deal in the Software without restriction, including without limitation
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync * and/or sell copies of the Software, and to permit persons to whom the
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync * Software is furnished to do so, subject to the following conditions:
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * The above copyright notice and this permission notice shall be included in
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * all copies or substantial portions of the Software.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * OTHER DEALINGS IN THE SOFTWARE.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Except as contained in this notice, the name of the copyright holder(s)
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * and author(s) shall not be used in advertising or otherwise to promote
00314ca59bb0358d05053ee753174724d82adff4vboxsync * the sale, use or other dealings in this Software without prior written
00314ca59bb0358d05053ee753174724d82adff4vboxsync * authorization from the copyright holder(s) and author(s).
00314ca59bb0358d05053ee753174724d82adff4vboxsync */
00314ca59bb0358d05053ee753174724d82adff4vboxsync
00314ca59bb0358d05053ee753174724d82adff4vboxsync#ifdef HAVE_XORG_CONFIG_H
00314ca59bb0358d05053ee753174724d82adff4vboxsync#include <xorg-config.h>
00314ca59bb0358d05053ee753174724d82adff4vboxsync#endif
00314ca59bb0358d05053ee753174724d82adff4vboxsync
00314ca59bb0358d05053ee753174724d82adff4vboxsync#ifndef _XF86OSPRIV_H
00314ca59bb0358d05053ee753174724d82adff4vboxsync#define _XF86OSPRIV_H
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync
00314ca59bb0358d05053ee753174724d82adff4vboxsynctypedef pointer (*MapMemProcPtr)(int, unsigned long, unsigned long, int);
36411046d85fccaa66061120a064225fd1b5ae01vboxsynctypedef void (*UnmapMemProcPtr)(int, pointer, unsigned long);
00314ca59bb0358d05053ee753174724d82adff4vboxsynctypedef pointer (*SetWCProcPtr)(int, unsigned long, unsigned long, Bool,
00314ca59bb0358d05053ee753174724d82adff4vboxsync MessageType);
00314ca59bb0358d05053ee753174724d82adff4vboxsynctypedef void (*ProtectMemProcPtr)(int, pointer, unsigned long, Bool);
00314ca59bb0358d05053ee753174724d82adff4vboxsynctypedef void (*UndoWCProcPtr)(int, pointer);
36411046d85fccaa66061120a064225fd1b5ae01vboxsynctypedef void (*ReadSideEffectsProcPtr)(int, pointer, unsigned long);
36411046d85fccaa66061120a064225fd1b5ae01vboxsync
36411046d85fccaa66061120a064225fd1b5ae01vboxsynctypedef struct {
36411046d85fccaa66061120a064225fd1b5ae01vboxsync Bool initialised;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync MapMemProcPtr mapMem;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync UnmapMemProcPtr unmapMem;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync ProtectMemProcPtr protectMem;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync SetWCProcPtr setWC;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync UndoWCProcPtr undoWC;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync ReadSideEffectsProcPtr readSideEffects;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync Bool linearSupported;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync} VidMemInfo, *VidMemInfoPtr;
36411046d85fccaa66061120a064225fd1b5ae01vboxsync
36411046d85fccaa66061120a064225fd1b5ae01vboxsyncvoid xf86OSInitVidMem(VidMemInfoPtr);
36411046d85fccaa66061120a064225fd1b5ae01vboxsync
00314ca59bb0358d05053ee753174724d82adff4vboxsync#endif /* _XF86OSPRIV_H */
00314ca59bb0358d05053ee753174724d82adff4vboxsync