1706f2543Smrg/* 2706f2543Smrg * Copyright (c) 1999-2000 by The XFree86 Project, Inc. 3706f2543Smrg * 4706f2543Smrg * Permission is hereby granted, free of charge, to any person obtaining a 5706f2543Smrg * copy of this software and associated documentation files (the "Software"), 6706f2543Smrg * to deal in the Software without restriction, including without limitation 7706f2543Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8706f2543Smrg * and/or sell copies of the Software, and to permit persons to whom the 9706f2543Smrg * Software is furnished to do so, subject to the following conditions: 10706f2543Smrg * 11706f2543Smrg * The above copyright notice and this permission notice shall be included in 12706f2543Smrg * all copies or substantial portions of the Software. 13706f2543Smrg * 14706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15706f2543Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16706f2543Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17706f2543Smrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18706f2543Smrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19706f2543Smrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20706f2543Smrg * OTHER DEALINGS IN THE SOFTWARE. 21706f2543Smrg * 22706f2543Smrg * Except as contained in this notice, the name of the copyright holder(s) 23706f2543Smrg * and author(s) shall not be used in advertising or otherwise to promote 24706f2543Smrg * the sale, use or other dealings in this Software without prior written 25706f2543Smrg * authorization from the copyright holder(s) and author(s). 26706f2543Smrg */ 27706f2543Smrg 28706f2543Smrg#ifdef HAVE_XORG_CONFIG_H 29706f2543Smrg#include <xorg-config.h> 30706f2543Smrg#endif 31706f2543Smrg 32706f2543Smrg#ifndef _XF86OSPRIV_H 33706f2543Smrg#define _XF86OSPRIV_H 34706f2543Smrg 35706f2543Smrgtypedef pointer (*MapMemProcPtr)(int, unsigned long, unsigned long, int); 36706f2543Smrgtypedef void (*UnmapMemProcPtr)(int, pointer, unsigned long); 37706f2543Smrgtypedef pointer (*SetWCProcPtr)(int, unsigned long, unsigned long, Bool, 38706f2543Smrg MessageType); 39706f2543Smrgtypedef void (*ProtectMemProcPtr)(int, pointer, unsigned long, Bool); 40706f2543Smrgtypedef void (*UndoWCProcPtr)(int, pointer); 41706f2543Smrgtypedef void (*ReadSideEffectsProcPtr)(int, pointer, unsigned long); 42706f2543Smrg 43706f2543Smrgtypedef struct { 44706f2543Smrg Bool initialised; 45706f2543Smrg MapMemProcPtr mapMem; 46706f2543Smrg UnmapMemProcPtr unmapMem; 47706f2543Smrg ProtectMemProcPtr protectMem; 48706f2543Smrg SetWCProcPtr setWC; 49706f2543Smrg UndoWCProcPtr undoWC; 50706f2543Smrg ReadSideEffectsProcPtr readSideEffects; 51706f2543Smrg Bool linearSupported; 52706f2543Smrg} VidMemInfo, *VidMemInfoPtr; 53706f2543Smrg 54706f2543Smrgvoid xf86OSInitVidMem(VidMemInfoPtr); 55706f2543Smrg 56706f2543Smrg#endif /* _XF86OSPRIV_H */ 57