diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-10-28 01:10:00 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-11-05 17:49:13 -0500 |
commit | 01c66889c14aa163c49355b3be2ccfb214500599 (patch) | |
tree | 278e3e9a1fb0001d61d531804e8db6ea83bc712c /drivers/gpu/drm/i915/i915_drv.h | |
parent | 1dc7546d1a73664e5d117715b214bea9cae5951c (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.h | 4 |
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); | |||
733 | void | 733 | void |
734 | i915_disable_pipestat(drm_i915_private_t *dev_priv, int pipe, u32 mask); | 734 | i915_disable_pipestat(drm_i915_private_t *dev_priv, int pipe, u32 mask); |
735 | 735 | ||
736 | void intel_enable_asle (struct drm_device *dev); | ||
737 | |||
736 | 738 | ||
737 | /* i915_mem.c */ | 739 | /* i915_mem.c */ |
738 | extern int i915_mem_alloc(struct drm_device *dev, void *data, | 740 | extern int i915_mem_alloc(struct drm_device *dev, void *data, |
@@ -861,11 +863,13 @@ extern int i915_restore_state(struct drm_device *dev); | |||
861 | extern int intel_opregion_init(struct drm_device *dev, int resume); | 863 | extern int intel_opregion_init(struct drm_device *dev, int resume); |
862 | extern void intel_opregion_free(struct drm_device *dev, int suspend); | 864 | extern void intel_opregion_free(struct drm_device *dev, int suspend); |
863 | extern void opregion_asle_intr(struct drm_device *dev); | 865 | extern void opregion_asle_intr(struct drm_device *dev); |
866 | extern void ironlake_opregion_gse_intr(struct drm_device *dev); | ||
864 | extern void opregion_enable_asle(struct drm_device *dev); | 867 | extern void opregion_enable_asle(struct drm_device *dev); |
865 | #else | 868 | #else |
866 | static inline int intel_opregion_init(struct drm_device *dev, int resume) { return 0; } | 869 | static inline int intel_opregion_init(struct drm_device *dev, int resume) { return 0; } |
867 | static inline void intel_opregion_free(struct drm_device *dev, int suspend) { return; } | 870 | static inline void intel_opregion_free(struct drm_device *dev, int suspend) { return; } |
868 | static inline void opregion_asle_intr(struct drm_device *dev) { return; } | 871 | static inline void opregion_asle_intr(struct drm_device *dev) { return; } |
872 | static inline void ironlake_opregion_gse_intr(struct drm_device *dev) { return; } | ||
869 | static inline void opregion_enable_asle(struct drm_device *dev) { return; } | 873 | static inline void opregion_enable_asle(struct drm_device *dev) { return; } |
870 | #endif | 874 | #endif |
871 | 875 | ||