aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-06-03 03:26:58 -0400
committerEric Anholt <eric@anholt.net>2009-06-04 07:43:11 -0400
commit1fd1c624362819ecc36db2458c6a972c48ae92d6 (patch)
tree9547e1a861be1a95b854945a46df8010f6d71c8f /drivers/gpu/drm/i915/i915_drv.h
parent0e7ddf7eeeef5aea85412120539ab5369577faeb (diff)
drm/i915: Save/restore cursor state on suspend/resume.
This may fix cursor corruption in X on resume, which would persist until the cursor was hidden and then shown again. V2: Also include the cursor control regs. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index c431fa54bbb5..fcaa5444daa0 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -285,6 +285,13 @@ typedef struct drm_i915_private {
285 u8 saveDACMASK; 285 u8 saveDACMASK;
286 u8 saveCR[37]; 286 u8 saveCR[37];
287 uint64_t saveFENCE[16]; 287 uint64_t saveFENCE[16];
288 u32 saveCURACNTR;
289 u32 saveCURAPOS;
290 u32 saveCURABASE;
291 u32 saveCURBCNTR;
292 u32 saveCURBPOS;
293 u32 saveCURBBASE;
294 u32 saveCURSIZE;
288 295
289 struct { 296 struct {
290 struct drm_mm gtt_space; 297 struct drm_mm gtt_space;
@@ -642,6 +649,7 @@ void i915_gem_detach_phys_object(struct drm_device *dev,
642void i915_gem_free_all_phys_object(struct drm_device *dev); 649void i915_gem_free_all_phys_object(struct drm_device *dev);
643int i915_gem_object_get_pages(struct drm_gem_object *obj); 650int i915_gem_object_get_pages(struct drm_gem_object *obj);
644void i915_gem_object_put_pages(struct drm_gem_object *obj); 651void i915_gem_object_put_pages(struct drm_gem_object *obj);
652void i915_gem_release(struct drm_device * dev, struct drm_file *file_priv);
645 653
646/* i915_gem_tiling.c */ 654/* i915_gem_tiling.c */
647void i915_gem_detect_bit_6_swizzle(struct drm_device *dev); 655void i915_gem_detect_bit_6_swizzle(struct drm_device *dev);