summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2009-09-14 17:48:42 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-17 14:34:27 -0700
commit1341d655ddea37f307736af7030a3ef7c5648c31 (patch)
treef02820220000990ce0a798757c2651902871c50c /drivers/gpu/drm/i915/i915_drv.h
parentffed1d0920d180962469feb5e14bab7af2e29137 (diff)
downloadlwn-1341d655ddea37f307736af7030a3ef7c5648c31.tar.gz
lwn-1341d655ddea37f307736af7030a3ef7c5648c31.zip
drm/i915: Refactor save/restore code
We move the display-specific code into it's own functions, called from the general GPU state save/restore functions. This will be needed later by the GPU reset code. Signed-off-by: Ben Gamari <bgamari.foss@gmail.com> Signed-off-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 0344afd841c4..01b292003af4 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -597,6 +597,8 @@ extern int i915_max_ioctl;
extern unsigned int i915_fbpercrtc;
extern unsigned int i915_powersave;
+extern void i915_save_display(struct drm_device *dev);
+extern void i915_restore_display(struct drm_device *dev);
extern int i915_master_create(struct drm_device *dev, struct drm_master *master);
extern void i915_master_destroy(struct drm_device *dev, struct drm_master *master);