nfsd4: typo logical vs bitwise negate for want_mask
[linux-btrfs-devel.git] / arch / x86 / include / asm / intel_scu_ipc.h
blob29f66793cc55894e0edd4b9c8692f9503cd53fe9
1 #ifndef _ASM_X86_INTEL_SCU_IPC_H_
2 #define _ASM_X86_INTEL_SCU_IPC_H_
4 #define IPCMSG_VRTC 0xFA /* Set vRTC device */
6 /* Command id associated with message IPCMSG_VRTC */
7 #define IPC_CMD_VRTC_SETTIME 1 /* Set time */
8 #define IPC_CMD_VRTC_SETALARM 2 /* Set alarm */
10 /* Read single register */
11 int intel_scu_ipc_ioread8(u16 addr, u8 *data);
13 /* Read two sequential registers */
14 int intel_scu_ipc_ioread16(u16 addr, u16 *data);
16 /* Read four sequential registers */
17 int intel_scu_ipc_ioread32(u16 addr, u32 *data);
19 /* Read a vector */
20 int intel_scu_ipc_readv(u16 *addr, u8 *data, int len);
22 /* Write single register */
23 int intel_scu_ipc_iowrite8(u16 addr, u8 data);
25 /* Write two sequential registers */
26 int intel_scu_ipc_iowrite16(u16 addr, u16 data);
28 /* Write four sequential registers */
29 int intel_scu_ipc_iowrite32(u16 addr, u32 data);
31 /* Write a vector */
32 int intel_scu_ipc_writev(u16 *addr, u8 *data, int len);
34 /* Update single register based on the mask */
35 int intel_scu_ipc_update_register(u16 addr, u8 data, u8 mask);
37 /* Issue commands to the SCU with or without data */
38 int intel_scu_ipc_simple_command(int cmd, int sub);
39 int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen,
40 u32 *out, int outlen);
41 /* I2C control api */
42 int intel_scu_ipc_i2c_cntrl(u32 addr, u32 *data);
44 /* Update FW version */
45 int intel_scu_ipc_fw_update(u8 *buffer, u32 length);
47 #endif