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_MSM_IPC_H_ 20 #define _UAPI_MSM_IPC_H_ 21 #include <linux/types.h> 22 #include <linux/ioctl.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 struct msm_ipc_port_addr { 25 uint32_t node_id; 26 uint32_t port_id; 27 }; 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 struct msm_ipc_port_name { 30 uint32_t service; 31 uint32_t instance; 32 }; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 struct msm_ipc_addr { 35 unsigned char addrtype; 36 union { 37 struct msm_ipc_port_addr port_addr; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 struct msm_ipc_port_name port_name; 40 } addr; 41 }; 42 #define MSM_IPC_WAIT_FOREVER (~0) 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #ifndef AF_MSM_IPC 45 #define AF_MSM_IPC 27 46 #endif 47 #ifndef PF_MSM_IPC 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define PF_MSM_IPC AF_MSM_IPC 50 #endif 51 #define MSM_IPC_ADDR_NAME 1 52 #define MSM_IPC_ADDR_ID 2 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 struct sockaddr_msm_ipc { 55 unsigned short family; 56 struct msm_ipc_addr address; 57 unsigned char reserved; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 }; 60 struct config_sec_rules_args { 61 int num_group_info; 62 uint32_t service_id; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 uint32_t instance_id; 65 unsigned reserved; 66 gid_t group_id[0]; 67 }; 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define IPC_ROUTER_IOCTL_MAGIC (0xC3) 70 #define IPC_ROUTER_IOCTL_GET_VERSION _IOR(IPC_ROUTER_IOCTL_MAGIC, 0, unsigned int) 71 #define IPC_ROUTER_IOCTL_GET_MTU _IOR(IPC_ROUTER_IOCTL_MAGIC, 1, unsigned int) 72 #define IPC_ROUTER_IOCTL_LOOKUP_SERVER _IOWR(IPC_ROUTER_IOCTL_MAGIC, 2, struct sockaddr_msm_ipc) 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define IPC_ROUTER_IOCTL_GET_CURR_PKT_SIZE _IOR(IPC_ROUTER_IOCTL_MAGIC, 3, unsigned int) 75 #define IPC_ROUTER_IOCTL_BIND_CONTROL_PORT _IOR(IPC_ROUTER_IOCTL_MAGIC, 4, unsigned int) 76 #define IPC_ROUTER_IOCTL_CONFIG_SEC_RULES _IOR(IPC_ROUTER_IOCTL_MAGIC, 5, struct config_sec_rules_args) 77 struct msm_ipc_server_info { 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 uint32_t node_id; 80 uint32_t port_id; 81 uint32_t service; 82 uint32_t instance; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 }; 85 struct server_lookup_args { 86 struct msm_ipc_port_name port_name; 87 int num_entries_in_array; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 int num_entries_found; 90 uint32_t lookup_mask; 91 struct msm_ipc_server_info srv_info[0]; 92 }; 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 #endif 95 96