summaryrefslogtreecommitdiff
path: root/shared/r128_drm.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2002-10-30 06:10:34 +0000
committerEric Anholt <anholt@freebsd.org>2002-10-30 06:10:34 +0000
commite656655a361acf73c5652fcef8cf6ba61dfe7a50 (patch)
tree96775fd22bd84a7030a114b108235ca07e12934c /shared/r128_drm.h
parent344c7f6b412c19c963c33709f0d4a3a7205e1d79 (diff)
Kernel support for vblank syncing on Rage 128 and Matrox.
Diffstat (limited to 'shared/r128_drm.h')
-rw-r--r--shared/r128_drm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/shared/r128_drm.h b/shared/r128_drm.h
index a8d23008..bbb1a93b 100644
--- a/shared/r128_drm.h
+++ b/shared/r128_drm.h
@@ -190,6 +190,7 @@ typedef struct drm_r128_sarea {
#define DRM_IOCTL_R128_INDIRECT DRM_IOWR(0x4f, drm_r128_indirect_t)
#define DRM_IOCTL_R128_FULLSCREEN DRM_IOW( 0x50, drm_r128_fullscreen_t)
#define DRM_IOCTL_R128_CLEAR2 DRM_IOW( 0x51, drm_r128_clear2_t)
+#define DRM_IOCTL_R128_GETPARAM DRM_IOW( 0x52, drm_r128_getparam_t)
typedef struct drm_r128_init {
enum {
@@ -305,4 +306,14 @@ typedef struct drm_r128_fullscreen {
} func;
} drm_r128_fullscreen_t;
+/* 2.3: An ioctl to get parameters that aren't available to the 3d
+ * client any other way.
+ */
+#define R128_PARAM_IRQ_NR 1
+
+typedef struct drm_r128_getparam {
+ int param;
+ int *value;
+} drm_r128_getparam_t;
+
#endif