diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 15:33:19 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 15:33:19 -0500 |
| commit | 288f02bbb6e9609cbaf1eb7a9cb97ae45ce090b2 (patch) | |
| tree | 4f5e5c9fe6638bdbd246379f64b3541de68f329a /include | |
| parent | 8aedf8a6ae98d5d4df3254b6afb7e4432d9d8600 (diff) | |
| parent | aa96ce0af8385415a3450bc13e6254a4d6b4a888 (diff) | |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (117 commits)
ACPI processor: Fix section mismatch for processor_add()
ACPI: Add platform-wide _OSC support.
ACPI: cleanup pci_root _OSC code.
ACPI: Add a generic API for _OSC -v2
msi-wmi: depend on backlight and fix corner-cases problems
msi-wmi: switch to using input sparse keymap library
msi-wmi: replace one-condition switch-case with if statement
msi-wmi: remove unused field 'instance' in key_entry structure
msi-wmi: remove custom runtime debug implementation
msi-wmi: rework init
msi-wmi: remove useless includes
X86 drivers: Introduce msi-wmi driver
Toshiba Bluetooth Enabling driver (RFKill handler v3)
ACPI: fix for lapic_timer_propagate_broadcast()
acpi_pad: squish warning
ACPI: dock: minor whitespace and style cleanups
ACPI: dock: add struct dock_station * directly to platform device data
ACPI: dock: dock_add - hoist up platform_device_register_simple()
ACPI: dock: remove global 'dock_device_name'
ACPI: dock: combine add|alloc_dock_dependent_device (v2)
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/acpi/acoutput.h | 8 | ||||
| -rw-r--r-- | include/acpi/acpixf.h | 2 | ||||
| -rw-r--r-- | include/acpi/processor.h | 5 | ||||
| -rw-r--r-- | include/linux/acpi.h | 23 | ||||
| -rw-r--r-- | include/linux/pnp.h | 13 |
5 files changed, 42 insertions, 9 deletions
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h index 5c823d5ab783..d814da4b5365 100644 --- a/include/acpi/acoutput.h +++ b/include/acpi/acoutput.h | |||
| @@ -85,7 +85,8 @@ | |||
| 85 | #define ACPI_LV_INIT 0x00000001 | 85 | #define ACPI_LV_INIT 0x00000001 |
| 86 | #define ACPI_LV_DEBUG_OBJECT 0x00000002 | 86 | #define ACPI_LV_DEBUG_OBJECT 0x00000002 |
| 87 | #define ACPI_LV_INFO 0x00000004 | 87 | #define ACPI_LV_INFO 0x00000004 |
| 88 | #define ACPI_LV_ALL_EXCEPTIONS 0x00000007 | 88 | #define ACPI_LV_REPAIR 0x00000008 |
| 89 | #define ACPI_LV_ALL_EXCEPTIONS 0x0000000F | ||
| 89 | 90 | ||
| 90 | /* Trace verbosity level 1 [Standard Trace Level] */ | 91 | /* Trace verbosity level 1 [Standard Trace Level] */ |
| 91 | 92 | ||
| @@ -143,6 +144,7 @@ | |||
| 143 | #define ACPI_DB_INIT ACPI_DEBUG_LEVEL (ACPI_LV_INIT) | 144 | #define ACPI_DB_INIT ACPI_DEBUG_LEVEL (ACPI_LV_INIT) |
| 144 | #define ACPI_DB_DEBUG_OBJECT ACPI_DEBUG_LEVEL (ACPI_LV_DEBUG_OBJECT) | 145 | #define ACPI_DB_DEBUG_OBJECT ACPI_DEBUG_LEVEL (ACPI_LV_DEBUG_OBJECT) |
| 145 | #define ACPI_DB_INFO ACPI_DEBUG_LEVEL (ACPI_LV_INFO) | 146 | #define ACPI_DB_INFO ACPI_DEBUG_LEVEL (ACPI_LV_INFO) |
| 147 | #define ACPI_DB_REPAIR ACPI_DEBUG_LEVEL (ACPI_LV_REPAIR) | ||
| 146 | #define ACPI_DB_ALL_EXCEPTIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALL_EXCEPTIONS) | 148 | #define ACPI_DB_ALL_EXCEPTIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALL_EXCEPTIONS) |
| 147 | 149 | ||
| 148 | /* Trace level -- also used in the global "DebugLevel" */ | 150 | /* Trace level -- also used in the global "DebugLevel" */ |
| @@ -174,8 +176,8 @@ | |||
| 174 | 176 | ||
| 175 | /* Defaults for debug_level, debug and normal */ | 177 | /* Defaults for debug_level, debug and normal */ |
| 176 | 178 | ||
| 177 | #define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO) | 179 | #define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR) |
| 178 | #define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT) | 180 | #define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR) |
| 179 | #define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL) | 181 | #define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL) |
| 180 | 182 | ||
| 181 | #if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES) | 183 | #if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES) |
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 5e1ad3cd1bbd..86e9735a96bd 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
| @@ -47,7 +47,7 @@ | |||
| 47 | 47 | ||
| 48 | /* Current ACPICA subsystem version in YYYYMMDD format */ | 48 | /* Current ACPICA subsystem version in YYYYMMDD format */ |
| 49 | 49 | ||
| 50 | #define ACPI_CA_VERSION 0x20091112 | 50 | #define ACPI_CA_VERSION 0x20091214 |
| 51 | 51 | ||
| 52 | #include "actypes.h" | 52 | #include "actypes.h" |
| 53 | #include "actbl.h" | 53 | #include "actbl.h" |
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 8b668ead6d6e..29245c6b5c0e 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
| @@ -294,7 +294,7 @@ static inline void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx | |||
| 294 | #ifdef CONFIG_CPU_FREQ | 294 | #ifdef CONFIG_CPU_FREQ |
| 295 | void acpi_processor_ppc_init(void); | 295 | void acpi_processor_ppc_init(void); |
| 296 | void acpi_processor_ppc_exit(void); | 296 | void acpi_processor_ppc_exit(void); |
| 297 | int acpi_processor_ppc_has_changed(struct acpi_processor *pr); | 297 | int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag); |
| 298 | extern int acpi_processor_get_bios_limit(int cpu, unsigned int *limit); | 298 | extern int acpi_processor_get_bios_limit(int cpu, unsigned int *limit); |
| 299 | #else | 299 | #else |
| 300 | static inline void acpi_processor_ppc_init(void) | 300 | static inline void acpi_processor_ppc_init(void) |
| @@ -305,7 +305,8 @@ static inline void acpi_processor_ppc_exit(void) | |||
| 305 | { | 305 | { |
| 306 | return; | 306 | return; |
| 307 | } | 307 | } |
| 308 | static inline int acpi_processor_ppc_has_changed(struct acpi_processor *pr) | 308 | static inline int acpi_processor_ppc_has_changed(struct acpi_processor *pr, |
| 309 | int event_flag) | ||
| 309 | { | 310 | { |
| 310 | static unsigned int printout = 1; | 311 | static unsigned int printout = 1; |
| 311 | if (printout) { | 312 | if (printout) { |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index dfcd920c3e54..ce945d4845fc 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -240,7 +240,7 @@ extern int pnpacpi_disabled; | |||
| 240 | #define PXM_INVAL (-1) | 240 | #define PXM_INVAL (-1) |
| 241 | #define NID_INVAL (-1) | 241 | #define NID_INVAL (-1) |
| 242 | 242 | ||
| 243 | int acpi_check_resource_conflict(struct resource *res); | 243 | int acpi_check_resource_conflict(const struct resource *res); |
| 244 | 244 | ||
| 245 | int acpi_check_region(resource_size_t start, resource_size_t n, | 245 | int acpi_check_region(resource_size_t start, resource_size_t n, |
| 246 | const char *name); | 246 | const char *name); |
| @@ -253,10 +253,16 @@ 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 |
| 259 | #define OSC_SUPPORT_MASKS 0x1f | ||
| 260 | 266 | ||
| 261 | /* _OSC DW0 Definition */ | 267 | /* _OSC DW0 Definition */ |
| 262 | #define OSC_QUERY_ENABLE 1 | 268 | #define OSC_QUERY_ENABLE 1 |
| @@ -265,12 +271,23 @@ void __init acpi_s4_no_nvs(void); | |||
| 265 | #define OSC_INVALID_REVISION_ERROR 8 | 271 | #define OSC_INVALID_REVISION_ERROR 8 |
| 266 | #define OSC_CAPABILITIES_MASK_ERROR 16 | 272 | #define OSC_CAPABILITIES_MASK_ERROR 16 |
| 267 | 273 | ||
| 274 | acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); | ||
| 275 | |||
| 276 | /* platform-wide _OSC bits */ | ||
| 277 | #define OSC_SB_PAD_SUPPORT 1 | ||
| 278 | #define OSC_SB_PPC_OST_SUPPORT 2 | ||
| 279 | #define OSC_SB_PR3_SUPPORT 4 | ||
| 280 | #define OSC_SB_CPUHP_OST_SUPPORT 8 | ||
| 281 | #define OSC_SB_APEI_SUPPORT 16 | ||
| 282 | |||
| 283 | /* PCI defined _OSC bits */ | ||
| 268 | /* _OSC DW1 Definition (OS Support Fields) */ | 284 | /* _OSC DW1 Definition (OS Support Fields) */ |
| 269 | #define OSC_EXT_PCI_CONFIG_SUPPORT 1 | 285 | #define OSC_EXT_PCI_CONFIG_SUPPORT 1 |
| 270 | #define OSC_ACTIVE_STATE_PWR_SUPPORT 2 | 286 | #define OSC_ACTIVE_STATE_PWR_SUPPORT 2 |
| 271 | #define OSC_CLOCK_PWR_CAPABILITY_SUPPORT 4 | 287 | #define OSC_CLOCK_PWR_CAPABILITY_SUPPORT 4 |
| 272 | #define OSC_PCI_SEGMENT_GROUPS_SUPPORT 8 | 288 | #define OSC_PCI_SEGMENT_GROUPS_SUPPORT 8 |
| 273 | #define OSC_MSI_SUPPORT 16 | 289 | #define OSC_MSI_SUPPORT 16 |
| 290 | #define OSC_PCI_SUPPORT_MASKS 0x1f | ||
| 274 | 291 | ||
| 275 | /* _OSC DW1 Definition (OS Control Fields) */ | 292 | /* _OSC DW1 Definition (OS Control Fields) */ |
| 276 | #define OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 1 | 293 | #define OSC_PCI_EXPRESS_NATIVE_HP_CONTROL 1 |
| @@ -279,7 +296,7 @@ void __init acpi_s4_no_nvs(void); | |||
| 279 | #define OSC_PCI_EXPRESS_AER_CONTROL 8 | 296 | #define OSC_PCI_EXPRESS_AER_CONTROL 8 |
| 280 | #define OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 16 | 297 | #define OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL 16 |
| 281 | 298 | ||
| 282 | #define OSC_CONTROL_MASKS (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \ | 299 | #define OSC_PCI_CONTROL_MASKS (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL | \ |
| 283 | OSC_SHPC_NATIVE_HP_CONTROL | \ | 300 | OSC_SHPC_NATIVE_HP_CONTROL | \ |
| 284 | OSC_PCI_EXPRESS_PME_CONTROL | \ | 301 | OSC_PCI_EXPRESS_PME_CONTROL | \ |
| 285 | OSC_PCI_EXPRESS_AER_CONTROL | \ | 302 | OSC_PCI_EXPRESS_AER_CONTROL | \ |
diff --git a/include/linux/pnp.h b/include/linux/pnp.h index fddfafaed024..7c4193eb0072 100644 --- a/include/linux/pnp.h +++ b/include/linux/pnp.h | |||
| @@ -334,6 +334,19 @@ extern struct pnp_protocol pnpbios_protocol; | |||
| 334 | #define pnp_device_is_pnpbios(dev) 0 | 334 | #define pnp_device_is_pnpbios(dev) 0 |
| 335 | #endif | 335 | #endif |
| 336 | 336 | ||
| 337 | #ifdef CONFIG_PNPACPI | ||
| 338 | extern struct pnp_protocol pnpacpi_protocol; | ||
| 339 | |||
| 340 | static inline struct acpi_device *pnp_acpi_device(struct pnp_dev *dev) | ||
| 341 | { | ||
| 342 | if (dev->protocol == &pnpacpi_protocol) | ||
| 343 | return dev->data; | ||
| 344 | return NULL; | ||
| 345 | } | ||
| 346 | #else | ||
| 347 | #define pnp_acpi_device(dev) 0 | ||
| 348 | #endif | ||
| 349 | |||
| 337 | /* status */ | 350 | /* status */ |
| 338 | #define PNP_READY 0x0000 | 351 | #define PNP_READY 0x0000 |
| 339 | #define PNP_ATTACHED 0x0001 | 352 | #define PNP_ATTACHED 0x0001 |
