diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2009-02-09 02:00:04 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@hobbes.lan> | 2009-03-19 22:29:33 -0400 |
commit | 9f5404d8ea90bfa4d58a3936e5a3d0d28cecf60f (patch) | |
tree | 59327fd70858e5038b99cebd767d4bae6a7d4594 /include/linux/acpi.h | |
parent | 63f10f0f6df4e4e860b790d64bebfde85b540b0a (diff) |
PCI/ACPI: rename pci_osc_control_set()
- Rename pci_osc_control_set() to acpi_pci_osc_control_set() according
to the other API names in drivers/acpi/pci_root.c.
- Move _OSC related definitions to include/linux/acpi.h because _OSC
related API is implemented in drivers/acpi/pci_root.c now.
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Reviewed-by: Andrew Patterson <andrew.patterson@hp.com>
Tested-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 6fce2fc2d124..2a3b189e3e26 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -256,6 +256,40 @@ void __init acpi_no_s4_hw_signature(void); | |||
256 | void __init acpi_old_suspend_ordering(void); | 256 | void __init acpi_old_suspend_ordering(void); |
257 | void __init acpi_s4_no_nvs(void); | 257 | void __init acpi_s4_no_nvs(void); |
258 | #endif /* CONFIG_PM_SLEEP */ | 258 | #endif /* CONFIG_PM_SLEEP */ |
259 | |||
260 | #define OSC_QUERY_TYPE 0 | ||
261 | #define OSC_SUPPORT_TYPE 1 | ||
262 | #define OSC_CONTROL_TYPE 2 | ||
263 | #define OSC_SUPPORT_MASKS 0x1f | ||
264 | |||
265 | /* _OSC DW0 Definition */ | ||
266 | #define OSC_QUERY_ENABLE 1 | ||
267 | #define OSC_REQUEST_ERROR 2 | ||
268 | #define OSC_INVALID_UUID_ERROR 4 | ||
269 | #define OSC_INVALID_REVISION_ERROR 8 | ||
270 | #define OSC_CAPABILITIES_MASK_ERROR 16 | ||
271 | |||
272 | /* _OSC DW1 Definition (OS Support Fields) */ | ||
273 | #define OSC_EXT_PCI_CONFIG_SUPPORT 1 | ||
274 | #define OSC_ACTIVE_STATE_PWR_SUPPORT 2 | ||
275 | #define OSC_CLOCK_PWR_CAPABILITY_SUPPORT 4 | ||
276 | #define OSC_PCI_SEGMENT_GROUPS_SUPPORT 8 | ||
277 | #define OSC_MSI_SUPPORT 16 | ||
278 | |||
279 | /* _OSC DW1 Definition (OS Control Fields) */ | ||
280 | #define OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 1 | ||
281 | #define OSC_SHPC_NATIVE_HP_CONTROL 2 | ||
282 | #define OSC_PCI_EXPRESS_PME_CONTROL 4 | ||
283 | #define OSC_PCI_EXPRESS_AER_CONTROL 8 | ||
284 | #define OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 16 | ||
285 | |||
286 | #define OSC_CONTROL_MASKS (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \ | ||
287 | OSC_SHPC_NATIVE_HP_CONTROL | \ | ||
288 | OSC_PCI_EXPRESS_PME_CONTROL | \ | ||
289 | OSC_PCI_EXPRESS_AER_CONTROL | \ | ||
290 | OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL) | ||
291 | |||
292 | extern acpi_status acpi_pci_osc_control_set(acpi_handle handle, u32 flags); | ||
259 | #else /* CONFIG_ACPI */ | 293 | #else /* CONFIG_ACPI */ |
260 | 294 | ||
261 | static inline int early_acpi_boot_init(void) | 295 | static inline int early_acpi_boot_init(void) |