mesa-drm/linux/sis_drm.h
Kevin E Martin 1aa2f345c7 This check-in contains three large chunks of code:
1. Radeon DRI support
- Add Radeon server-side DRI support
- Add Radeon kernel module support
2. Latest Rage 128 code
- Merge ati-4-1-1-branch code (for Rage 128)
- Bring Radeon server-side code up to date with the Rage 128 code
3. Misc bug fixes
- Fix initial DRI lock problem
- Fix static server build problem
Notes:
1. No Radeon 3D code has been checked in. It is still under development and
    is not yet ready for testing.
2. The X server locks up when doing lots of screen-to-screen copies (e.g.,
    during "x11perf -copywinwin500"), so it is recommended that
    non-developers continue to use the trunk code until this bug is
    resolved.
2000-11-13 23:35:02 +00:00

31 lines
775 B
C

#ifndef _sis_drm_public_h_
#define _sis_drm_public_h_
typedef struct {
int context;
unsigned int offset;
unsigned int size;
unsigned int free;
} drm_sis_mem_t;
typedef struct {
unsigned int offset, size;
} drm_sis_agp_t;
typedef struct {
unsigned int left, right;
} drm_sis_flip_t;
#define SIS_IOCTL_FB_ALLOC DRM_IOWR( 0x44, drm_sis_mem_t)
#define SIS_IOCTL_FB_FREE DRM_IOW( 0x45, drm_sis_mem_t)
#define SIS_IOCTL_AGP_INIT DRM_IOWR( 0x53, drm_sis_agp_t)
#define SIS_IOCTL_AGP_ALLOC DRM_IOWR( 0x54, drm_sis_mem_t)
#define SIS_IOCTL_AGP_FREE DRM_IOW( 0x55, drm_sis_mem_t)
#define SIS_IOCTL_FLIP DRM_IOW( 0x48, drm_sis_flip_t)
#define SIS_IOCTL_FLIP_INIT DRM_IO( 0x49)
#define SIS_IOCTL_FLIP_FINAL DRM_IO( 0x50)
#endif