Home | History | Annotate | Download | only in linux
      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_BOOT_FAIL,
     42 };
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 enum esoc_cmd {
     45  ESOC_PWR_ON = 1,
     46  ESOC_PWR_OFF,
     47  ESOC_RESET,
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  ESOC_PREPARE_DEBUG,
     50  ESOC_EXE_DEBUG,
     51  ESOC_EXIT_DEBUG,
     52 };
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 enum esoc_notify {
     55  ESOC_IMG_XFER_DONE = 1,
     56  ESOC_BOOT_DONE,
     57  ESOC_IMG_XFER_RETRY,
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  ESOC_IMG_XFER_FAIL,
     60  ESOC_UPGRADE_AVAILABLE,
     61  ESOC_DEBUG_DONE,
     62  ESOC_DEBUG_FAIL,
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  ESOC_PRIMARY_CRASH,
     65  ESOC_PRIMARY_REBOOT,
     66 };
     67 enum esoc_req {
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  ESOC_REQ_IMG = 1,
     70  ESOC_REQ_DEBUG,
     71  ESOC_REQ_SHUTDOWN,
     72 };
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 #endif
     75 
     76