b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* xf86drmCompat.h -- OS-independent header for old device specific DRM user-level
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * library interface
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Copyright 2000 VA Linux Systems, Inc., Fremont, California.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * All Rights Reserved.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * copy of this software and associated documentation files (the "Software"),
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * to deal in the Software without restriction, including without limitation
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * and/or sell copies of the Software, and to permit persons to whom the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Software is furnished to do so, subject to the following conditions:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * The above copyright notice and this permission notice (including the next
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * paragraph) shall be included in all copies or substantial portions of the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Software.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * DEALINGS IN THE SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Gareth Hughes <gareth@valinux.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Kevin E. Martin <martin@valinux.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Keith Whitwell <keith@tungstengraphics.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Backwards compatability modules broken out by:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Jens Owen <jens@tungstengraphics.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * $XFree86: xc/programs/Xserver/hw/xfree86/os-support/xf86drmCompat.h,v 1.1 2002/10/30 12:52:23 alanh Exp $
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* WARNING: Do not change, or add, anything to this file. It is only provided
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * for binary backwards compatability with the old driver specific DRM
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * extensions used before XFree86 4.3.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int w;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int h;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool drmI810InitDma(int driSubFD, drmCompatI810Init *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAInitDMA( int fd, drmCompatMGAInit *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAFlushDMA( int fd, drmLockFlags flags );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int clear_color, unsigned int clear_depth,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int color_mask, unsigned int depth_mask );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAFlushVertexBuffer( int fd, int indx, int used, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAAgpBlit( int fd, unsigned int planemask,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128InitCCE( int fd, drmCompatR128Init *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128Clear( int fd, unsigned int flags,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int clear_color, unsigned int clear_depth,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int color_mask, unsigned int depth_mask );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128FlushVertexBuffer( int fd, int prim, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128FlushIndices( int fd, int prim, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128WriteDepthSpan( int fd, int n, int x, int y,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const unsigned int depth[],
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const unsigned char mask[] );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const int x[], const int y[],
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const unsigned int depth[],
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const unsigned char mask[] );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128ReadDepthSpan( int fd, int n, int x, int y );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const int x[], const int y[] );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128PolygonStipple( int fd, unsigned int *mask );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128FlushIndirectBuffer( int fd, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Radeon */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int x;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int y;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonInitCP( int fd, drmCompatRadeonInit *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonFullScreen( int fd, int enable );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonClear( int fd, unsigned int flags,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int clear_color, unsigned int clear_depth,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonFlushVertexBuffer( int fd, int prim, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonFlushIndices( int fd, int prim, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonLoadTexture( int fd, int offset, int pitch, int format,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonPolygonStipple( int fd, unsigned int *mask );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonFlushIndirectBuffer( int fd, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool drmSiSAgpInit(int driSubFD, int offset, int size);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int w;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int h;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool drmI830InitDma(int driSubFD, drmCompatI830Init *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* WARNING: Do not change, or add, anything to this file. It is only provided
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * for binary backwards compatability with the old driver specific DRM
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * extensions used before XFree86 4.3.