aboutsummaryrefslogtreecommitdiff
path: root/shared/mga_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/mga_drm.h
parent344c7f6b412c19c963c33709f0d4a3a7205e1d79 (diff)
Kernel support for vblank syncing on Rage 128 and Matrox.
Diffstat (limited to 'shared/mga_drm.h')
-rw-r--r--shared/mga_drm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/shared/mga_drm.h b/shared/mga_drm.h
index c259814d..b19bc011 100644
--- a/shared/mga_drm.h
+++ b/shared/mga_drm.h
@@ -239,6 +239,7 @@ typedef struct _drm_mga_sarea {
#define DRM_IOCTL_MGA_INDICES DRM_IOW( 0x46, drm_mga_indices_t)
#define DRM_IOCTL_MGA_ILOAD DRM_IOW( 0x47, drm_mga_iload_t)
#define DRM_IOCTL_MGA_BLIT DRM_IOW( 0x48, drm_mga_blit_t)
+#define DRM_IOCTL_MGA_GETPARAM DRM_IOWR(0x49, drm_mga_getparam_t)
typedef struct _drm_mga_warp_index {
int installed;
@@ -322,4 +323,14 @@ typedef struct _drm_mga_blit {
int source_pitch, dest_pitch;
} drm_mga_blit_t;
+/* 3.1: An ioctl to get parameters that aren't available to the 3d
+ * client any other way.
+ */
+#define MGA_PARAM_IRQ_NR 1
+
+typedef struct drm_mga_getparam {
+ int param;
+ int *value;
+} drm_mga_getparam_t;
+
#endif