drm/linux/sis_drm.h

47 lines
1.3 KiB
C
Raw Normal View History

2000-11-30 10:32:23 -07:00
#ifndef _sis_drm_public_h_
#define _sis_drm_public_h_
2000-08-16 11:23:02 -06:00
2002-04-09 15:54:56 -06:00
/* SiS specific ioctls */
#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)
2001-01-05 15:57:55 -07:00
typedef struct {
2000-08-16 11:23:02 -06:00
int context;
unsigned int offset;
unsigned int size;
2000-11-30 10:32:23 -07:00
unsigned int free;
2001-01-05 15:57:55 -07:00
} drm_sis_mem_t;
2000-08-16 11:23:02 -06:00
2001-01-05 15:57:55 -07:00
typedef struct {
2000-08-16 11:23:02 -06:00
unsigned int offset, size;
2001-01-05 15:57:55 -07:00
} drm_sis_agp_t;
2000-08-16 11:23:02 -06:00
2001-01-05 15:57:55 -07:00
typedef struct {
2000-08-16 11:23:02 -06:00
unsigned int left, right;
2001-01-05 15:57:55 -07:00
} drm_sis_flip_t;
2000-11-30 10:32:23 -07:00
2001-06-14 16:23:44 -06:00
#ifdef __KERNEL__
int sis_fb_alloc(struct inode *inode, struct file *filp, unsigned int cmd,
unsigned long arg);
int sis_fb_free(struct inode *inode, struct file *filp, unsigned int cmd,
unsigned long arg);
int sisp_agp_init(struct inode *inode, struct file *filp, unsigned int cmd,
unsigned long arg);
int sisp_agp_alloc(struct inode *inode, struct file *filp, unsigned int cmd,
unsigned long arg);
int sisp_agp_free(struct inode *inode, struct file *filp, unsigned int cmd,
unsigned long arg);
2000-08-16 11:23:02 -06:00
#endif
2001-06-14 16:23:44 -06:00
#endif