1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_LINUX_FSI_H
8 #define _UAPI_LINUX_FSI_H
9 #include <linux/types.h>
10 #include <linux/ioctl.h>
11 struct scom_access {
12   __u64 addr;
13   __u64 data;
14   __u64 mask;
15   __u32 intf_errors;
16 #define SCOM_INTF_ERR_PARITY 0x00000001
17 #define SCOM_INTF_ERR_PROTECTION 0x00000002
18 #define SCOM_INTF_ERR_ABORT 0x00000004
19 #define SCOM_INTF_ERR_UNKNOWN 0x80000000
20   __u8 pib_status;
21 #define SCOM_PIB_SUCCESS 0
22 #define SCOM_PIB_BLOCKED 1
23 #define SCOM_PIB_OFFLINE 2
24 #define SCOM_PIB_PARTIAL 3
25 #define SCOM_PIB_BAD_ADDR 4
26 #define SCOM_PIB_CLK_ERR 5
27 #define SCOM_PIB_PARITY_ERR 6
28 #define SCOM_PIB_TIMEOUT 7
29   __u8 pad;
30 };
31 #define SCOM_CHECK_SUPPORTED 0x00000001
32 #define SCOM_CHECK_PROTECTED 0x00000002
33 #define SCOM_RESET_INTF 0x00000001
34 #define SCOM_RESET_PIB 0x00000002
35 #define FSI_SCOM_CHECK _IOR('s', 0x00, __u32)
36 #define FSI_SCOM_READ _IOWR('s', 0x01, struct scom_access)
37 #define FSI_SCOM_WRITE _IOWR('s', 0x02, struct scom_access)
38 #define FSI_SCOM_RESET _IOW('s', 0x03, __u32)
39 #define FSI_SBEFIFO_CMD_TIMEOUT_SECONDS _IOW('s', 0x01, __u32)
40 #define FSI_SBEFIFO_READ_TIMEOUT_SECONDS _IOW('s', 0x00, __u32)
41 #endif
42