diff options
author | Shaohua Li <shaohua.li@intel.com> | 2009-10-28 23:04:28 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-16 14:03:30 -0500 |
commit | 70023de88c58a81a730ab4d13c51a30e537ec76e (patch) | |
tree | f97ac33d7b1a22ebe08bcdb1bd810b1167b16755 /include/linux/acpi.h | |
parent | 22763c5cf3690a681551162c15d34d935308c8d7 (diff) |
ACPI: Add a generic API for _OSC -v2
v2->v1:
.improve debug info as suggedted by Bjorn,Kenji
.API is using uuid string as suggested by Alexey
Add an API to execute _OSC. A lot of devices can have this method, so add a
generic API.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index dfcd920c3e54..3247e09db20d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -253,6 +253,13 @@ void __init acpi_old_suspend_ordering(void); | |||
253 | void __init acpi_s4_no_nvs(void); | 253 | void __init acpi_s4_no_nvs(void); |
254 | #endif /* CONFIG_PM_SLEEP */ | 254 | #endif /* CONFIG_PM_SLEEP */ |
255 | 255 | ||
256 | struct acpi_osc_context { | ||
257 | char *uuid_str; /* uuid string */ | ||
258 | int rev; | ||
259 | struct acpi_buffer cap; /* arg2/arg3 */ | ||
260 | struct acpi_buffer ret; /* free by caller if success */ | ||
261 | }; | ||
262 | |||
256 | #define OSC_QUERY_TYPE 0 | 263 | #define OSC_QUERY_TYPE 0 |
257 | #define OSC_SUPPORT_TYPE 1 | 264 | #define OSC_SUPPORT_TYPE 1 |
258 | #define OSC_CONTROL_TYPE 2 | 265 | #define OSC_CONTROL_TYPE 2 |
@@ -265,6 +272,8 @@ void __init acpi_s4_no_nvs(void); | |||
265 | #define OSC_INVALID_REVISION_ERROR 8 | 272 | #define OSC_INVALID_REVISION_ERROR 8 |
266 | #define OSC_CAPABILITIES_MASK_ERROR 16 | 273 | #define OSC_CAPABILITIES_MASK_ERROR 16 |
267 | 274 | ||
275 | acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); | ||
276 | |||
268 | /* _OSC DW1 Definition (OS Support Fields) */ | 277 | /* _OSC DW1 Definition (OS Support Fields) */ |
269 | #define OSC_EXT_PCI_CONFIG_SUPPORT 1 | 278 | #define OSC_EXT_PCI_CONFIG_SUPPORT 1 |
270 | #define OSC_ACTIVE_STATE_PWR_SUPPORT 2 | 279 | #define OSC_ACTIVE_STATE_PWR_SUPPORT 2 |