diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-15 14:02:52 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-15 14:02:52 -0400 |
| commit | 0b269d8462a9f0058afb46eaee56e0732acf16c4 (patch) | |
| tree | f6f5d801b0f991b34b7a71394370fc31746883bb /include | |
| parent | ed75ded7dd3fdb647df4efefc5d11158e3d182be (diff) | |
| parent | 9aaed2b42d00d4abb2748d72d599a8033600e2bf (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: (28 commits)
ACPI: check battery status on resume for un/plug events during sleep
ACPICA: Fix incorrect handling of PCI Express Root Bridge _HID
ACPI: asus_acpi: don't printk on writing garbage to proc files
ACPI: asus_acpi: fix proc files parsing
ACPI: SCI interrupt source override
ACPI: fix printk format warnings
ACPI: fix section for CPU init functions
ACPI: update comments in motherboard.c
ACPI: acpi_pci_link_set() can allocate with either GFP_ATOMIC or GFP_KERNEL
ACPI: fix potential OOPS in power driver with CONFIG_ACPI_DEBUG
ACPI: ibm_acpi: delete obsolete documentation
ACPI: created a dedicated workqueue for notify() execution
ACPI: Remove deferred execution from global lock acquire wakeup path
MSI S270 Laptop support: backlight, wlan, bluetooth states
ACPI: EC: export ec_transaction() for msi-laptop driver
ACPI: EC: Simplify acpi_hw_low_level*() with inb()/outb().
ACPI: EC: Unify poll and interrupt gpe handlers
ACPI: EC: Unify poll and interrupt mode transaction functions
ACPI: EC: Remove unused variables and duplicated code
ACPI: EC: Remove unnecessary delay added by previous transation patch.
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/acpi/pdc_intel.h | 9 | ||||
| -rw-r--r-- | include/acpi/processor.h | 18 | ||||
| -rw-r--r-- | include/asm-i386/processor.h | 2 | ||||
| -rw-r--r-- | include/asm-x86_64/processor.h | 2 | ||||
| -rw-r--r-- | include/linux/acpi.h | 3 |
5 files changed, 31 insertions, 3 deletions
diff --git a/include/acpi/pdc_intel.h b/include/acpi/pdc_intel.h index c5472be6f3a2..e72bfdd887f9 100644 --- a/include/acpi/pdc_intel.h +++ b/include/acpi/pdc_intel.h | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #define ACPI_PDC_SMP_C_SWCOORD (0x0040) | 13 | #define ACPI_PDC_SMP_C_SWCOORD (0x0040) |
| 14 | #define ACPI_PDC_SMP_T_SWCOORD (0x0080) | 14 | #define ACPI_PDC_SMP_T_SWCOORD (0x0080) |
| 15 | #define ACPI_PDC_C_C1_FFH (0x0100) | 15 | #define ACPI_PDC_C_C1_FFH (0x0100) |
| 16 | #define ACPI_PDC_C_C2C3_FFH (0x0200) | ||
| 16 | 17 | ||
| 17 | #define ACPI_PDC_EST_CAPABILITY_SMP (ACPI_PDC_SMP_C1PT | \ | 18 | #define ACPI_PDC_EST_CAPABILITY_SMP (ACPI_PDC_SMP_C1PT | \ |
| 18 | ACPI_PDC_C_C1_HALT | \ | 19 | ACPI_PDC_C_C1_HALT | \ |
| @@ -23,8 +24,10 @@ | |||
| 23 | ACPI_PDC_SMP_P_SWCOORD | \ | 24 | ACPI_PDC_SMP_P_SWCOORD | \ |
| 24 | ACPI_PDC_P_FFH) | 25 | ACPI_PDC_P_FFH) |
| 25 | 26 | ||
| 26 | #define ACPI_PDC_C_CAPABILITY_SMP (ACPI_PDC_SMP_C2C3 | \ | 27 | #define ACPI_PDC_C_CAPABILITY_SMP (ACPI_PDC_SMP_C2C3 | \ |
| 27 | ACPI_PDC_SMP_C1PT | \ | 28 | ACPI_PDC_SMP_C1PT | \ |
| 28 | ACPI_PDC_C_C1_HALT) | 29 | ACPI_PDC_C_C1_HALT | \ |
| 30 | ACPI_PDC_C_C1_FFH | \ | ||
| 31 | ACPI_PDC_C_C2C3_FFH) | ||
| 29 | 32 | ||
| 30 | #endif /* __PDC_INTEL_H__ */ | 33 | #endif /* __PDC_INTEL_H__ */ |
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 9dd5b75961f8..7798d2a9f793 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
| @@ -29,6 +29,9 @@ | |||
| 29 | #define DOMAIN_COORD_TYPE_SW_ANY 0xfd | 29 | #define DOMAIN_COORD_TYPE_SW_ANY 0xfd |
| 30 | #define DOMAIN_COORD_TYPE_HW_ALL 0xfe | 30 | #define DOMAIN_COORD_TYPE_HW_ALL 0xfe |
| 31 | 31 | ||
| 32 | #define ACPI_CSTATE_SYSTEMIO (0) | ||
| 33 | #define ACPI_CSTATE_FFH (1) | ||
| 34 | |||
| 32 | /* Power Management */ | 35 | /* Power Management */ |
| 33 | 36 | ||
| 34 | struct acpi_processor_cx; | 37 | struct acpi_processor_cx; |
| @@ -58,6 +61,8 @@ struct acpi_processor_cx { | |||
| 58 | u8 valid; | 61 | u8 valid; |
| 59 | u8 type; | 62 | u8 type; |
| 60 | u32 address; | 63 | u32 address; |
| 64 | u8 space_id; | ||
| 65 | u8 index; | ||
| 61 | u32 latency; | 66 | u32 latency; |
| 62 | u32 latency_ticks; | 67 | u32 latency_ticks; |
| 63 | u32 power; | 68 | u32 power; |
| @@ -206,6 +211,9 @@ void arch_acpi_processor_init_pdc(struct acpi_processor *pr); | |||
| 206 | #ifdef ARCH_HAS_POWER_INIT | 211 | #ifdef ARCH_HAS_POWER_INIT |
| 207 | void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags, | 212 | void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flags, |
| 208 | unsigned int cpu); | 213 | unsigned int cpu); |
| 214 | int acpi_processor_ffh_cstate_probe(unsigned int cpu, | ||
| 215 | struct acpi_processor_cx *cx, struct acpi_power_register *reg); | ||
| 216 | void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cstate); | ||
| 209 | #else | 217 | #else |
| 210 | static inline void acpi_processor_power_init_bm_check(struct | 218 | static inline void acpi_processor_power_init_bm_check(struct |
| 211 | acpi_processor_flags | 219 | acpi_processor_flags |
| @@ -214,6 +222,16 @@ static inline void acpi_processor_power_init_bm_check(struct | |||
| 214 | flags->bm_check = 1; | 222 | flags->bm_check = 1; |
| 215 | return; | 223 | return; |
| 216 | } | 224 | } |
| 225 | static inline int acpi_processor_ffh_cstate_probe(unsigned int cpu, | ||
| 226 | struct acpi_processor_cx *cx, struct acpi_power_register *reg) | ||
| 227 | { | ||
| 228 | return -1; | ||
| 229 | } | ||
| 230 | static inline void acpi_processor_ffh_cstate_enter( | ||
| 231 | struct acpi_processor_cx *cstate) | ||
| 232 | { | ||
| 233 | return; | ||
| 234 | } | ||
| 217 | #endif | 235 | #endif |
| 218 | 236 | ||
| 219 | /* in processor_perflib.c */ | 237 | /* in processor_perflib.c */ |
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index 2277127696d2..e0ddca94d50c 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h | |||
| @@ -306,6 +306,8 @@ static inline void __mwait(unsigned long eax, unsigned long ecx) | |||
| 306 | : :"a" (eax), "c" (ecx)); | 306 | : :"a" (eax), "c" (ecx)); |
| 307 | } | 307 | } |
| 308 | 308 | ||
| 309 | extern void mwait_idle_with_hints(unsigned long eax, unsigned long ecx); | ||
| 310 | |||
| 309 | /* from system description table in BIOS. Mostly for MCA use, but | 311 | /* from system description table in BIOS. Mostly for MCA use, but |
| 310 | others may find it useful. */ | 312 | others may find it useful. */ |
| 311 | extern unsigned int machine_id; | 313 | extern unsigned int machine_id; |
diff --git a/include/asm-x86_64/processor.h b/include/asm-x86_64/processor.h index de9c3147ee4c..cef17e0f828c 100644 --- a/include/asm-x86_64/processor.h +++ b/include/asm-x86_64/processor.h | |||
| @@ -475,6 +475,8 @@ static inline void __mwait(unsigned long eax, unsigned long ecx) | |||
| 475 | : :"a" (eax), "c" (ecx)); | 475 | : :"a" (eax), "c" (ecx)); |
| 476 | } | 476 | } |
| 477 | 477 | ||
| 478 | extern void mwait_idle_with_hints(unsigned long eax, unsigned long ecx); | ||
| 479 | |||
| 478 | #define stack_current() \ | 480 | #define stack_current() \ |
| 479 | ({ \ | 481 | ({ \ |
| 480 | struct thread_info *ti; \ | 482 | struct thread_info *ti; \ |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 88b5dfd8ee12..2b0c955590fe 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -494,6 +494,9 @@ void acpi_pci_unregister_driver(struct acpi_pci_driver *driver); | |||
| 494 | 494 | ||
| 495 | extern int ec_read(u8 addr, u8 *val); | 495 | extern int ec_read(u8 addr, u8 *val); |
| 496 | extern int ec_write(u8 addr, u8 val); | 496 | extern int ec_write(u8 addr, u8 val); |
| 497 | extern int ec_transaction(u8 command, | ||
| 498 | const u8 *wdata, unsigned wdata_len, | ||
| 499 | u8 *rdata, unsigned rdata_len); | ||
| 497 | 500 | ||
| 498 | #endif /*CONFIG_ACPI_EC*/ | 501 | #endif /*CONFIG_ACPI_EC*/ |
| 499 | 502 | ||
