diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-09-05 17:05:53 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-09-23 19:40:45 -0400 |
commit | dedf1e4dfd5477b4315ad451b4be0ff8d9f7e85f (patch) | |
tree | 24ec5d2af1d16b28f07a5efdf6f5e7e5ac77788c | |
parent | 4a10c2ac2f368583138b774ca41fac4207911983 (diff) |
ACPI: Write _OSC bit field definitions in hex
Update _OSC definition comments to correspond to the 1-based spec wording
(DWORD 1, etc.) Write _OSC field #defines as hex to make clear that they
are bits in a 32-bit DWORD, not arbitrary values. No functional change.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | include/linux/acpi.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index a5db4aeefa36..164ba10ddcb3 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -304,39 +304,39 @@ struct acpi_osc_context { | |||
304 | #define OSC_SUPPORT_TYPE 1 | 304 | #define OSC_SUPPORT_TYPE 1 |
305 | #define OSC_CONTROL_TYPE 2 | 305 | #define OSC_CONTROL_TYPE 2 |
306 | 306 | ||
307 | /* _OSC DW0 Definition */ | 307 | /* _OSC Capabilities DWORD 1: Query/Control and Error Returns (generic) */ |
308 | #define OSC_QUERY_ENABLE 1 | 308 | #define OSC_QUERY_ENABLE 0x00000001 /* input */ |
309 | #define OSC_REQUEST_ERROR 2 | 309 | #define OSC_REQUEST_ERROR 0x00000002 /* return */ |
310 | #define OSC_INVALID_UUID_ERROR 4 | 310 | #define OSC_INVALID_UUID_ERROR 0x00000004 /* return */ |
311 | #define OSC_INVALID_REVISION_ERROR 8 | 311 | #define OSC_INVALID_REVISION_ERROR 0x00000008 /* return */ |
312 | #define OSC_CAPABILITIES_MASK_ERROR 16 | 312 | #define OSC_CAPABILITIES_MASK_ERROR 0x00000010 /* return */ |
313 | 313 | ||
314 | acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); | 314 | acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); |
315 | 315 | ||
316 | /* platform-wide _OSC bits */ | 316 | /* Platform-Wide Capabilities _OSC: Capabilities DWORD 2: Support Field */ |
317 | #define OSC_SB_PAD_SUPPORT 1 | 317 | #define OSC_SB_PAD_SUPPORT 0x00000001 |
318 | #define OSC_SB_PPC_OST_SUPPORT 2 | 318 | #define OSC_SB_PPC_OST_SUPPORT 0x00000002 |
319 | #define OSC_SB_PR3_SUPPORT 4 | 319 | #define OSC_SB_PR3_SUPPORT 0x00000004 |
320 | #define OSC_SB_HOTPLUG_OST_SUPPORT 8 | 320 | #define OSC_SB_HOTPLUG_OST_SUPPORT 0x00000008 |
321 | #define OSC_SB_APEI_SUPPORT 16 | 321 | #define OSC_SB_APEI_SUPPORT 0x00000010 |
322 | #define OSC_SB_CPC_SUPPORT 0x00000020 | ||
322 | 323 | ||
323 | extern bool osc_sb_apei_support_acked; | 324 | extern bool osc_sb_apei_support_acked; |
324 | 325 | ||
325 | /* PCI defined _OSC bits */ | 326 | /* PCI Host Bridge _OSC: Capabilities DWORD 2: Support Field */ |
326 | /* _OSC DW1 Definition (OS Support Fields) */ | 327 | #define OSC_EXT_PCI_CONFIG_SUPPORT 0x00000001 |
327 | #define OSC_EXT_PCI_CONFIG_SUPPORT 1 | 328 | #define OSC_ACTIVE_STATE_PWR_SUPPORT 0x00000002 |
328 | #define OSC_ACTIVE_STATE_PWR_SUPPORT 2 | 329 | #define OSC_CLOCK_PWR_CAPABILITY_SUPPORT 0x00000004 |
329 | #define OSC_CLOCK_PWR_CAPABILITY_SUPPORT 4 | 330 | #define OSC_PCI_SEGMENT_GROUPS_SUPPORT 0x00000008 |
330 | #define OSC_PCI_SEGMENT_GROUPS_SUPPORT 8 | 331 | #define OSC_MSI_SUPPORT 0x00000010 |
331 | #define OSC_MSI_SUPPORT 16 | 332 | #define OSC_PCI_SUPPORT_MASKS 0x0000001f |
332 | #define OSC_PCI_SUPPORT_MASKS 0x1f | 333 | |
333 | 334 | /* PCI Host Bridge _OSC: Capabilities DWORD 3: Control Field */ | |
334 | /* _OSC DW1 Definition (OS Control Fields) */ | 335 | #define OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 0x00000001 |
335 | #define OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 1 | 336 | #define OSC_SHPC_NATIVE_HP_CONTROL 0x00000002 |
336 | #define OSC_SHPC_NATIVE_HP_CONTROL 2 | 337 | #define OSC_PCI_EXPRESS_PME_CONTROL 0x00000004 |
337 | #define OSC_PCI_EXPRESS_PME_CONTROL 4 | 338 | #define OSC_PCI_EXPRESS_AER_CONTROL 0x00000008 |
338 | #define OSC_PCI_EXPRESS_AER_CONTROL 8 | 339 | #define OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 0x00000010 |
339 | #define OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 16 | ||
340 | 340 | ||
341 | #define OSC_PCI_CONTROL_MASKS (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \ | 341 | #define OSC_PCI_CONTROL_MASKS (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \ |
342 | OSC_SHPC_NATIVE_HP_CONTROL | \ | 342 | OSC_SHPC_NATIVE_HP_CONTROL | \ |