• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_ESOC_CTRL_H_
20 #define _UAPI_ESOC_CTRL_H_
21 #define ESOC_CODE 0xCC
22 #define ESOC_CMD_EXE _IOW(ESOC_CODE, 1, u32)
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define ESOC_WAIT_FOR_REQ _IOR(ESOC_CODE, 2, u32)
25 #define ESOC_NOTIFY _IOW(ESOC_CODE, 3, u32)
26 #define ESOC_GET_STATUS _IOR(ESOC_CODE, 4, u32)
27 #define ESOC_WAIT_FOR_CRASH _IOR(ESOC_CODE, 6, u32)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define ESOC_REG_REQ_ENG _IO(ESOC_CODE, 7)
30 #define ESOC_REG_CMD_ENG _IO(ESOC_CODE, 8)
31 #define HSIC "HSIC"
32 #define HSICPCIe "HSIC+PCIe"
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define PCIe "PCIe"
35 enum esoc_evt {
36  ESOC_RUN_STATE = 0x1,
37  ESOC_UNEXPECTED_RESET,
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  ESOC_ERR_FATAL,
40  ESOC_IN_DEBUG,
41  ESOC_REQ_ENG_ON,
42  ESOC_REQ_ENG_OFF,
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  ESOC_CMD_ENG_ON,
45  ESOC_CMD_ENG_OFF,
46  ESOC_INVALID_STATE,
47 };
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 enum esoc_cmd {
50  ESOC_PWR_ON = 1,
51  ESOC_PWR_OFF,
52  ESOC_FORCE_PWR_OFF,
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  ESOC_RESET,
55  ESOC_PREPARE_DEBUG,
56  ESOC_EXE_DEBUG,
57  ESOC_EXIT_DEBUG,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 };
60 enum esoc_notify {
61  ESOC_IMG_XFER_DONE = 1,
62  ESOC_BOOT_DONE,
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  ESOC_BOOT_FAIL,
65  ESOC_IMG_XFER_RETRY,
66  ESOC_IMG_XFER_FAIL,
67  ESOC_UPGRADE_AVAILABLE,
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  ESOC_DEBUG_DONE,
70  ESOC_DEBUG_FAIL,
71  ESOC_PRIMARY_CRASH,
72  ESOC_PRIMARY_REBOOT,
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 };
75 enum esoc_req {
76  ESOC_REQ_IMG = 1,
77  ESOC_REQ_DEBUG,
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  ESOC_REQ_SHUTDOWN,
80 };
81 #endif
82 
83