aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-09-05 15:05:55 -0600
committerBjorn Helgaas <bhelgaas@google.com>2013-09-23 17:40:45 -0600
commitc8678473609b0271ffa0963af82e575312e882cb (patch)
treefccb2b94fd5225e34820e085e917132da830e574 /include/linux/acpi.h
parentACPI: Rename OSC_QUERY_TYPE to OSC_QUERY_DWORD (diff)
downloadlinux-dev-c8678473609b0271ffa0963af82e575312e882cb.tar.xz
linux-dev-c8678473609b0271ffa0963af82e575312e882cb.zip
ACPI: Tidy acpi_run_osc() declarations
Move the acpi_run_osc() prototype next to the related structure and update comments. No functional change. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index d220d1465d9b..a2f501c0a4f4 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -294,12 +294,14 @@ void __init acpi_nvs_nosave_s3(void);
#endif /* CONFIG_PM_SLEEP */
struct acpi_osc_context {
- char *uuid_str; /* uuid string */
+ char *uuid_str; /* UUID string */
int rev;
- struct acpi_buffer cap; /* arg2/arg3 */
- struct acpi_buffer ret; /* free by caller if success */
+ struct acpi_buffer cap; /* list of DWORD capabilities */
+ struct acpi_buffer ret; /* free by caller if success */
};
+acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
+
/* Indexes into _OSC Capabilities Buffer (DWORDs 2 & 3 are device-specific) */
#define OSC_QUERY_DWORD 0 /* DWORD 1 */
#define OSC_SUPPORT_DWORD 1 /* DWORD 2 */
@@ -312,8 +314,6 @@ struct acpi_osc_context {
#define OSC_INVALID_REVISION_ERROR 0x00000008 /* return */
#define OSC_CAPABILITIES_MASK_ERROR 0x00000010 /* return */
-acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
-
/* Platform-Wide Capabilities _OSC: Capabilities DWORD 2: Support Field */
#define OSC_SB_PAD_SUPPORT 0x00000001
#define OSC_SB_PPC_OST_SUPPORT 0x00000002