summaryrefslogtreecommitdiff
path: root/shared-core/i915_drm.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-02-05 13:27:16 -0500
committerKristian Høgsberg <krh@sasori.boston.redhat.com>2008-02-13 13:34:02 -0500
commit373dbcf8b25750967e9ba24433cff872df41cb74 (patch)
treee063d32f1825fc96e71c76bd4ed808f4b534276b /shared-core/i915_drm.h
parentdb3f03ae3538bea3d29ef66ac24d9a1f54cff418 (diff)
i915: Add a dri2 init path that gets the lock from the dri2 sarea.
Diffstat (limited to 'shared-core/i915_drm.h')
-rw-r--r--shared-core/i915_drm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/shared-core/i915_drm.h b/shared-core/i915_drm.h
index ad0797c2..b889a303 100644
--- a/shared-core/i915_drm.h
+++ b/shared-core/i915_drm.h
@@ -43,7 +43,12 @@ typedef struct _drm_i915_init {
enum {
I915_INIT_DMA = 0x01,
I915_CLEANUP_DMA = 0x02,
- I915_RESUME_DMA = 0x03
+ I915_RESUME_DMA = 0x03,
+
+ /* Since this struct isn't versioned, just used a new
+ * 'func' code to indicate the presence of dri2 sarea
+ * info. */
+ I915_INIT_DMA2 = 0x04
} func;
unsigned int mmio_offset;
int sarea_priv_offset;
@@ -61,6 +66,7 @@ typedef struct _drm_i915_init {
unsigned int depth_pitch;
unsigned int cpp;
unsigned int chipset;
+ unsigned int sarea_handle;
} drm_i915_init_t;
typedef struct _drm_i915_sarea {