diff options
author | Luca Tettamanti <kronos.it@gmail.com> | 2012-07-30 15:20:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2012-09-20 13:10:36 -0400 |
commit | fda4b25c55a59ba12378e4b9e4553f6ea57d802d (patch) | |
tree | 931f98eee8fb7f2ebb90e2bd689c7ff34b0b2a4a /drivers/gpu/drm/radeon/radeon_acpi.h | |
parent | ce3cf821a31f9824eda788cbd3e710d8047e82df (diff) |
drm/radeon: implement handler for ACPI event
Set up an handler for ACPI events and respond to brightness change
requests from the system BIOS.
v2: fix notification when using device-specific command codes
(tested by Pali Rohár <pali.rohar@gmail.com>); cache the encoder
controlling the backlight during the initialization to avoid searching
it every time (suggested by Alex Deucher).
v3: whitespace fixes (Alex Deucher).
Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_acpi.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_acpi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_acpi.h b/drivers/gpu/drm/radeon/radeon_acpi.h index 642aa4719454..be4af76f213d 100644 --- a/drivers/gpu/drm/radeon/radeon_acpi.h +++ b/drivers/gpu/drm/radeon/radeon_acpi.h | |||
@@ -24,6 +24,12 @@ | |||
24 | #ifndef RADEON_ACPI_H | 24 | #ifndef RADEON_ACPI_H |
25 | #define RADEON_ACPI_H | 25 | #define RADEON_ACPI_H |
26 | 26 | ||
27 | struct radeon_device; | ||
28 | struct acpi_bus_event; | ||
29 | |||
30 | int radeon_atif_handler(struct radeon_device *rdev, | ||
31 | struct acpi_bus_event *event); | ||
32 | |||
27 | /* AMD hw uses four ACPI control methods: | 33 | /* AMD hw uses four ACPI control methods: |
28 | * 1. ATIF | 34 | * 1. ATIF |
29 | * ARG0: (ACPI_INTEGER) function code | 35 | * ARG0: (ACPI_INTEGER) function code |