target: Drop incorrect se_lun_acl release for dynamic -> explict ACL conversion
[zen-stable.git] / arch / x86 / include / asm / intel_scu_ipc.h
blob925b605eb5c601fa9a6f6c24cf41e596b92d86f8
1 #ifndef _ASM_X86_INTEL_SCU_IPC_H_
2 #define _ASM_X86_INTEL_SCU_IPC_H_
4 #include <linux/notifier.h>
6 #define IPCMSG_WARM_RESET 0xF0
7 #define IPCMSG_COLD_RESET 0xF1
8 #define IPCMSG_SOFT_RESET 0xF2
9 #define IPCMSG_COLD_BOOT 0xF3
11 #define IPCMSG_VRTC 0xFA /* Set vRTC device */
12 /* Command id associated with message IPCMSG_VRTC */
13 #define IPC_CMD_VRTC_SETTIME 1 /* Set time */
14 #define IPC_CMD_VRTC_SETALARM 2 /* Set alarm */
16 /* Read single register */
17 int intel_scu_ipc_ioread8(u16 addr, u8 *data);
19 /* Read two sequential registers */
20 int intel_scu_ipc_ioread16(u16 addr, u16 *data);
22 /* Read four sequential registers */
23 int intel_scu_ipc_ioread32(u16 addr, u32 *data);
25 /* Read a vector */
26 int intel_scu_ipc_readv(u16 *addr, u8 *data, int len);
28 /* Write single register */
29 int intel_scu_ipc_iowrite8(u16 addr, u8 data);
31 /* Write two sequential registers */
32 int intel_scu_ipc_iowrite16(u16 addr, u16 data);
34 /* Write four sequential registers */
35 int intel_scu_ipc_iowrite32(u16 addr, u32 data);
37 /* Write a vector */
38 int intel_scu_ipc_writev(u16 *addr, u8 *data, int len);
40 /* Update single register based on the mask */
41 int intel_scu_ipc_update_register(u16 addr, u8 data, u8 mask);
43 /* Issue commands to the SCU with or without data */
44 int intel_scu_ipc_simple_command(int cmd, int sub);
45 int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen,
46 u32 *out, int outlen);
47 /* I2C control api */
48 int intel_scu_ipc_i2c_cntrl(u32 addr, u32 *data);
50 /* Update FW version */
51 int intel_scu_ipc_fw_update(u8 *buffer, u32 length);
53 extern struct blocking_notifier_head intel_scu_notifier;
55 static inline void intel_scu_notifier_add(struct notifier_block *nb)
57 blocking_notifier_chain_register(&intel_scu_notifier, nb);
60 static inline void intel_scu_notifier_remove(struct notifier_block *nb)
62 blocking_notifier_chain_unregister(&intel_scu_notifier, nb);
65 static inline int intel_scu_notifier_post(unsigned long v, void *p)
67 return blocking_notifier_call_chain(&intel_scu_notifier, v, p);
70 #define SCU_AVAILABLE 1
71 #define SCU_DOWN 2
73 #endif