From 45f1db8db9d1280dff51cdfb680bff2754195483 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Sat, 28 May 2005 00:00:08 +0000 Subject: Re-implement the power management. There's two choices when fb is or isn't loaded as we treat ourselves as a PCI driver in the latter case. If we are a PCI driver, then register the suspend/resume functions directly. If not, then we register as a sysdev and pick up the suspend/resume actions and pump them down into a generic *power function. It'll be nice when this little mess is sorted out with regard to being a real PCI driver ;-/ --- shared-core/i915_drv.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shared-core/i915_drv.h') diff --git a/shared-core/i915_drv.h b/shared-core/i915_drv.h index 75480c16..8024d829 100644 --- a/shared-core/i915_drv.h +++ b/shared-core/i915_drv.h @@ -91,6 +91,11 @@ extern void i915_driver_irq_preinstall(drm_device_t * dev); extern void i915_driver_irq_postinstall(drm_device_t * dev); extern void i915_driver_irq_uninstall(drm_device_t * dev); +/* i915_pm.c */ +extern int i915_suspend(struct pci_dev *pdev, u32 state); +extern int i915_resume(struct pci_dev *pdev); +extern int i915_power(drm_device_t *dev, unsigned int state); + /* i915_mem.c */ extern int i915_mem_alloc(DRM_IOCTL_ARGS); extern int i915_mem_free(DRM_IOCTL_ARGS); -- cgit v1.2.3