aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/sis_drm.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/sis_drm.h')
-rw-r--r--drivers/char/drm/sis_drm.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/char/drm/sis_drm.h b/drivers/char/drm/sis_drm.h
new file mode 100644
index 000000000000..e99c3a43abbc
--- /dev/null
+++ b/drivers/char/drm/sis_drm.h
@@ -0,0 +1,42 @@
1
2#ifndef __SIS_DRM_H__
3#define __SIS_DRM_H__
4
5/* SiS specific ioctls */
6#define NOT_USED_0_3
7#define DRM_SIS_FB_ALLOC 0x04
8#define DRM_SIS_FB_FREE 0x05
9#define NOT_USED_6_12
10#define DRM_SIS_AGP_INIT 0x13
11#define DRM_SIS_AGP_ALLOC 0x14
12#define DRM_SIS_AGP_FREE 0x15
13#define DRM_SIS_FB_INIT 0x16
14
15#define DRM_IOCTL_SIS_FB_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_FB_ALLOC, drm_sis_mem_t)
16#define DRM_IOCTL_SIS_FB_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_FREE, drm_sis_mem_t)
17#define DRM_IOCTL_SIS_AGP_INIT DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_INIT, drm_sis_agp_t)
18#define DRM_IOCTL_SIS_AGP_ALLOC DRM_IOWR(DRM_COMMAND_BASE + DRM_SIS_AGP_ALLOC, drm_sis_mem_t)
19#define DRM_IOCTL_SIS_AGP_FREE DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_AGP_FREE, drm_sis_mem_t)
20#define DRM_IOCTL_SIS_FB_INIT DRM_IOW( DRM_COMMAND_BASE + DRM_SIS_FB_INIT, drm_sis_fb_t)
21/*
22#define DRM_IOCTL_SIS_FLIP DRM_IOW( 0x48, drm_sis_flip_t)
23#define DRM_IOCTL_SIS_FLIP_INIT DRM_IO( 0x49)
24#define DRM_IOCTL_SIS_FLIP_FINAL DRM_IO( 0x50)
25*/
26
27typedef struct {
28 int context;
29 unsigned int offset;
30 unsigned int size;
31 unsigned long free;
32} drm_sis_mem_t;
33
34typedef struct {
35 unsigned int offset, size;
36} drm_sis_agp_t;
37
38typedef struct {
39 unsigned int offset, size;
40} drm_sis_fb_t;
41
42#endif /* __SIS_DRM_H__ */