1 2#ifndef _I830_DRI_H 3#define _I830_DRI_H 4 5#include "xf86drm.h" 6#include "i830_common.h" 7 8#define I830_MAX_DRAWABLES 256 9 10#define I830_MAJOR_VERSION 1 11#define I830_MINOR_VERSION 9 12#define I830_PATCHLEVEL 0 13 14#define I830_REG_SIZE 0x80000 15 16typedef struct _I830DRIRec { 17 drm_handle_t regs; 18 drmSize regsSize; 19 20 drmSize unused1; /* backbufferSize */ 21 drm_handle_t unused2; /* backbuffer */ 22 23 drmSize unused3; /* depthbufferSize */ 24 drm_handle_t unused4; /* depthbuffer */ 25 26 drmSize unused5; /* rotatedSize /*/ 27 drm_handle_t unused6; /* rotatedbuffer */ 28 29 drm_handle_t unused7; /* textures */ 30 int unused8; /* textureSize */ 31 32 drm_handle_t unused9; /* agp_buffers */ 33 drmSize unused10; /* agp_buf_size */ 34 35 int deviceID; 36 int width; 37 int height; 38 int mem; 39 int cpp; 40 int bitsPerPixel; 41 42 int unused11[8]; /* was front/back/depth/rotated offset/pitch */ 43 44 int unused12; /* logTextureGranularity */ 45 int unused13; /* textureOffset */ 46 47 int irq; 48 int sarea_priv_offset; 49} I830DRIRec, *I830DRIPtr; 50 51typedef struct { 52 /* Nothing here yet */ 53 int dummy; 54} I830ConfigPrivRec, *I830ConfigPrivPtr; 55 56typedef struct { 57 /* Nothing here yet */ 58 int dummy; 59} I830DRIContextRec, *I830DRIContextPtr; 60 61#endif 62