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 _ESOC_CTRL_H_
     20 #define _ESOC_CTRL_H_
     21 #include <linux/types.h>
     22 #define ESOC_CODE 0xCC
     23 #define ESOC_CMD_EXE _IOW(ESOC_CODE, 1, unsigned int)
     24 #define ESOC_WAIT_FOR_REQ _IOR(ESOC_CODE, 2, unsigned int)
     25 #define ESOC_NOTIFY _IOW(ESOC_CODE, 3, unsigned int)
     26 #define ESOC_GET_STATUS _IOR(ESOC_CODE, 4, unsigned int)
     27 #define ESOC_GET_ERR_FATAL _IOR(ESOC_CODE, 5, unsigned int)
     28 #define ESOC_WAIT_FOR_CRASH _IOR(ESOC_CODE, 6, unsigned int)
     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 #define PCIe "PCIe"
     34 #define ESOC_REQ_SEND_SHUTDOWN ESOC_REQ_SEND_SHUTDOWN
     35 enum esoc_evt {
     36   ESOC_RUN_STATE = 0x1,
     37   ESOC_UNEXPECTED_RESET,
     38   ESOC_ERR_FATAL,
     39   ESOC_IN_DEBUG,
     40   ESOC_REQ_ENG_ON,
     41   ESOC_REQ_ENG_OFF,
     42   ESOC_CMD_ENG_ON,
     43   ESOC_CMD_ENG_OFF,
     44   ESOC_INVALID_STATE,
     45 };
     46 enum esoc_cmd {
     47   ESOC_PWR_ON = 1,
     48   ESOC_PWR_OFF,
     49   ESOC_FORCE_PWR_OFF,
     50   ESOC_RESET,
     51   ESOC_PREPARE_DEBUG,
     52   ESOC_EXE_DEBUG,
     53   ESOC_EXIT_DEBUG,
     54 };
     55 enum esoc_notify {
     56   ESOC_IMG_XFER_DONE = 1,
     57   ESOC_BOOT_DONE,
     58   ESOC_BOOT_FAIL,
     59   ESOC_IMG_XFER_RETRY,
     60   ESOC_IMG_XFER_FAIL,
     61   ESOC_UPGRADE_AVAILABLE,
     62   ESOC_DEBUG_DONE,
     63   ESOC_DEBUG_FAIL,
     64   ESOC_PRIMARY_CRASH,
     65   ESOC_PRIMARY_REBOOT,
     66 };
     67 enum esoc_req {
     68   ESOC_REQ_IMG = 1,
     69   ESOC_REQ_DEBUG,
     70   ESOC_REQ_SHUTDOWN,
     71   ESOC_REQ_SEND_SHUTDOWN,
     72 };
     73 #endif
     74 
     75