aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2009-10-28 01:10:00 -0400
committerEric Anholt <eric@anholt.net>2009-11-05 17:49:13 -0500
commit01c66889c14aa163c49355b3be2ccfb214500599 (patch)
tree278e3e9a1fb0001d61d531804e8db6ea83bc712c /drivers/gpu/drm/i915/i915_drv.h
parent1dc7546d1a73664e5d117715b214bea9cae5951c (diff)
drm/i915: Add ACPI OpRegion support for Ironlake
Add the support of ACPI opregion on Ironlake so that the backlight brightness can be adjusted by using ACPI interface >/sys/class/backlight/acpi_video0/brightness Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Tested-by: Zhao Yakui <yakui.zhao@intel.com> [zhenyuw: cleanups, fix typo for checking GSE irq and convert to current irq handling logic.] Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index f9f339aafdee..210d0f690dbb 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -733,6 +733,8 @@ i915_enable_pipestat(drm_i915_private_t *dev_priv, int pipe, u32 mask);
733void 733void
734i915_disable_pipestat(drm_i915_private_t *dev_priv, int pipe, u32 mask); 734i915_disable_pipestat(drm_i915_private_t *dev_priv, int pipe, u32 mask);
735 735
736void intel_enable_asle (struct drm_device *dev);
737
736 738
737/* i915_mem.c */ 739/* i915_mem.c */
738extern int i915_mem_alloc(struct drm_device *dev, void *data, 740extern int i915_mem_alloc(struct drm_device *dev, void *data,
@@ -861,11 +863,13 @@ extern int i915_restore_state(struct drm_device *dev);
861extern int intel_opregion_init(struct drm_device *dev, int resume); 863extern int intel_opregion_init(struct drm_device *dev, int resume);
862extern void intel_opregion_free(struct drm_device *dev, int suspend); 864extern void intel_opregion_free(struct drm_device *dev, int suspend);
863extern void opregion_asle_intr(struct drm_device *dev); 865extern void opregion_asle_intr(struct drm_device *dev);
866extern void ironlake_opregion_gse_intr(struct drm_device *dev);
864extern void opregion_enable_asle(struct drm_device *dev); 867extern void opregion_enable_asle(struct drm_device *dev);
865#else 868#else
866static inline int intel_opregion_init(struct drm_device *dev, int resume) { return 0; } 869static inline int intel_opregion_init(struct drm_device *dev, int resume) { return 0; }
867static inline void intel_opregion_free(struct drm_device *dev, int suspend) { return; } 870static inline void intel_opregion_free(struct drm_device *dev, int suspend) { return; }
868static inline void opregion_asle_intr(struct drm_device *dev) { return; } 871static inline void opregion_asle_intr(struct drm_device *dev) { return; }
872static inline void ironlake_opregion_gse_intr(struct drm_device *dev) { return; }
869static inline void opregion_enable_asle(struct drm_device *dev) { return; } 873static inline void opregion_enable_asle(struct drm_device *dev) { return; }
870#endif 874#endif
871 875