aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/sis_drm.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/char/drm/sis_drm.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
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__ */