diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 20:13:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 20:13:24 -0400 |
commit | 27a3353a4525afe984f3b793681869d636136b69 (patch) | |
tree | 6c89654b6203b5b3196c128ced8a6b6c8b60b58a /arch/x86/include | |
parent | 6f68fbaafbaa033205cd131d3e1f3c4b914e9b78 (diff) | |
parent | 785cfc0324b9321efb85b0935af2b474d615daa1 (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86: (32 commits)
Move N014, N051 and CR620 dmi information to load scm dmi table
drivers/platform/x86/eeepc-wmi.c: fix build warning
X86 platfrom wmi: Add debug facility to dump WMI data in a readable way
X86 platform wmi: Also log GUID string when an event happens and debug is set
X86 platform wmi: Introduce debug param to log all WMI events
Clean up all objects used by scm model when driver initial fail or exit
msi-laptop: fix up some coding style issues found by checkpatch
msi-laptop: Add i8042 filter to sync sw state with BIOS when function key pressed
msi-laptop: Set rfkill init state when msi-laptop intiial
msi-laptop: Add MSI CR620 notebook dmi information to scm models table
msi-laptop: Add N014 N051 dmi information to scm models table
drivers/platform/x86: Use kmemdup
drivers/platform/x86: Use kzalloc
drivers/platform/x86: Clarify the MRST IPC driver description slightly
eeepc-wmi: depends on BACKLIGHT_CLASS_DEVICE
IPC driver for Intel Mobile Internet Device (MID) platforms
classmate-laptop: Add RFKILL support.
thinkpad-acpi: document backlight level writeback at driver init
thinkpad-acpi: clean up ACPI handles handling
thinkpad-acpi: don't depend on led_path for led firmware type (v2)
...
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/intel_scu_ipc.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/arch/x86/include/asm/intel_scu_ipc.h b/arch/x86/include/asm/intel_scu_ipc.h new file mode 100644 index 000000000000..4470c9ad4a3e --- /dev/null +++ b/arch/x86/include/asm/intel_scu_ipc.h | |||
@@ -0,0 +1,55 @@ | |||
1 | #ifndef _ASM_X86_INTEL_SCU_IPC_H_ | ||
2 | #define _ASM_X86_INTEL_SCU_IPC_H_ | ||
3 | |||
4 | /* Read single register */ | ||
5 | int intel_scu_ipc_ioread8(u16 addr, u8 *data); | ||
6 | |||
7 | /* Read two sequential registers */ | ||
8 | int intel_scu_ipc_ioread16(u16 addr, u16 *data); | ||
9 | |||
10 | /* Read four sequential registers */ | ||
11 | int intel_scu_ipc_ioread32(u16 addr, u32 *data); | ||
12 | |||
13 | /* Read a vector */ | ||
14 | int intel_scu_ipc_readv(u16 *addr, u8 *data, int len); | ||
15 | |||
16 | /* Write single register */ | ||
17 | int intel_scu_ipc_iowrite8(u16 addr, u8 data); | ||
18 | |||
19 | /* Write two sequential registers */ | ||
20 | int intel_scu_ipc_iowrite16(u16 addr, u16 data); | ||
21 | |||
22 | /* Write four sequential registers */ | ||
23 | int intel_scu_ipc_iowrite32(u16 addr, u32 data); | ||
24 | |||
25 | /* Write a vector */ | ||
26 | int intel_scu_ipc_writev(u16 *addr, u8 *data, int len); | ||
27 | |||
28 | /* Update single register based on the mask */ | ||
29 | int intel_scu_ipc_update_register(u16 addr, u8 data, u8 mask); | ||
30 | |||
31 | /* | ||
32 | * Indirect register read | ||
33 | * Can be used when SCCB(System Controller Configuration Block) register | ||
34 | * HRIM(Honor Restricted IPC Messages) is set (bit 23) | ||
35 | */ | ||
36 | int intel_scu_ipc_register_read(u32 addr, u32 *data); | ||
37 | |||
38 | /* | ||
39 | * Indirect register write | ||
40 | * Can be used when SCCB(System Controller Configuration Block) register | ||
41 | * HRIM(Honor Restricted IPC Messages) is set (bit 23) | ||
42 | */ | ||
43 | int intel_scu_ipc_register_write(u32 addr, u32 data); | ||
44 | |||
45 | /* Issue commands to the SCU with or without data */ | ||
46 | int intel_scu_ipc_simple_command(int cmd, int sub); | ||
47 | int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen, | ||
48 | u32 *out, int outlen); | ||
49 | /* I2C control api */ | ||
50 | int intel_scu_ipc_i2c_cntrl(u32 addr, u32 *data); | ||
51 | |||
52 | /* Update FW version */ | ||
53 | int intel_scu_ipc_fw_update(u8 *buffer, u32 length); | ||
54 | |||
55 | #endif | ||