b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* xf86drmCompat.h -- OS-independent header for old device specific DRM user-level
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * library interface
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Copyright 2000 VA Linux Systems, Inc., Fremont, California.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * All Rights Reserved.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
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 *
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 *
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 *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Authors:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Gareth Hughes <gareth@valinux.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Kevin E. Martin <martin@valinux.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Keith Whitwell <keith@tungstengraphics.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Backwards compatability modules broken out by:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Jens Owen <jens@tungstengraphics.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * $XFree86: xc/programs/Xserver/hw/xfree86/os-support/xf86drmCompat.h,v 1.1 2002/10/30 12:52:23 alanh Exp $
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifndef _XF86DRI_COMPAT_H_
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define _XF86DRI_COMPAT_H_
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
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.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifndef __user
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define __user
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* I810 */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int start;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int end;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int size;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int mmio_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int buffers_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int sarea_off;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int front_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int back_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int depth_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int overlay_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int overlay_physical;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int w;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int h;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int pitch_bits;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} drmCompatI810Init;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool drmI810CleanupDma(int driSubFD);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool drmI810InitDma(int driSubFD, drmCompatI810Init *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Mga */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long sarea_priv_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int chipset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int sgram;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int maccess;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int fb_cpp;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int front_offset, front_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int back_offset, back_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int depth_cpp;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int depth_offset, depth_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int texture_offset[2];
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int texture_size[2];
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long fb_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long mmio_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long status_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long warp_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long primary_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long buffers_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} drmCompatMGAInit;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAInitDMA( int fd, drmCompatMGAInit *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGACleanupDMA( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAFlushDMA( int fd, drmLockFlags flags );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAEngineReset( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAFullScreen( int fd, int enable );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGASwapBuffers( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAClear( 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 drmMGAFlushVertexBuffer( int fd, int indx, int used, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAFlushIndices( int fd, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int start, int end, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGATextureLoad( int fd, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int dstorg, unsigned int length );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmMGAAgpBlit( int fd, unsigned int planemask,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int src, int src_pitch,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int dst, int dst_pitch,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int delta_sx, int delta_sy,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int delta_dx, int delta_dy,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int height, int ydir );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* R128 */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long sarea_priv_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int is_pci;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int cce_mode;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int cce_secure;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int ring_size;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int usec_timeout;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int fb_bpp;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int front_offset, front_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int back_offset, back_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int depth_bpp;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int depth_offset, depth_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int span_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long fb_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long mmio_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long ring_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long ring_rptr_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long buffers_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long agp_textures_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} drmCompatR128Init;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128InitCCE( int fd, drmCompatR128Init *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128CleanupCCE( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128StartCCE( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128StopCCE( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128ResetCCE( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128WaitForIdleCCE( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128EngineReset( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128FullScreen( int fd, int enable );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128SwapBuffers( int fd );
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,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int count, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128FlushIndices( int fd, int prim, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int start, int end, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128TextureBlit( int fd, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int offset, int pitch, int format,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int x, int y, int width, int height );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128WriteDepthSpan( int fd, int n, int x, int y,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const unsigned int depth[],
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const unsigned char mask[] );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128WriteDepthPixels( int fd, int n,
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 );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128ReadDepthPixels( int fd, int n,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const int x[], const int y[] );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128PolygonStipple( int fd, unsigned int *mask );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmR128FlushIndirectBuffer( int fd, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int start, int end, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Radeon */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long sarea_priv_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int is_pci;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int cp_mode;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int agp_size;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int ring_size;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int usec_timeout;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int fb_bpp;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int front_offset, front_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int back_offset, back_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int depth_bpp;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int depth_offset, depth_pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long fb_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long mmio_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long ring_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long ring_rptr_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long buffers_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long agp_textures_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} drmCompatRadeonInit;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int x;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int y;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int width;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int height;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync void *data;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} drmCompatRadeonTexImage;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonInitCP( int fd, drmCompatRadeonInit *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonCleanupCP( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonStartCP( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonStopCP( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonResetCP( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonWaitForIdleCP( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonEngineReset( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonFullScreen( int fd, int enable );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonSwapBuffers( int fd );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonClear( int fd, unsigned int flags,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int clear_color, unsigned int clear_depth,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int color_mask, unsigned int stencil,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync void *boxes, int nbox );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonFlushVertexBuffer( int fd, int prim, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int count, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonFlushIndices( int fd, int prim, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int start, int end, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonLoadTexture( int fd, int offset, int pitch, int format,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int width, int height,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync drmCompatRadeonTexImage *image );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonPolygonStipple( int fd, unsigned int *mask );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int drmRadeonFlushIndirectBuffer( int fd, int indx,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int start, int end, int discard );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* SiS */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool drmSiSAgpInit(int driSubFD, int offset, int size);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* I830 */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int start;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int end;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int size;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int mmio_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int buffers_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int sarea_off;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int front_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int back_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int depth_offset;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int w;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int h;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int pitch;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int pitch_bits;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int cpp;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} drmCompatI830Init;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool drmI830CleanupDma(int driSubFD);
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern Bool drmI830InitDma(int driSubFD, drmCompatI830Init *info );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
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.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */