summaryrefslogtreecommitdiff
path: root/shared/mga_drm.h
diff options
context:
space:
mode:
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