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 __VOICE_SVC_H__
20 #define __VOICE_SVC_H__
21 #include <linux/types.h>
22 #include <linux/ioctl.h>
23 #define VOICE_SVC_DRIVER_NAME "voice_svc"
24 #define VOICE_SVC_MVM_STR "MVM"
25 #define VOICE_SVC_CVS_STR "CVS"
26 #define MAX_APR_SERVICE_NAME_LEN 64
27 #define MSG_REGISTER 0x1
28 #define MSG_REQUEST 0x2
29 #define MSG_RESPONSE 0x3
30 struct voice_svc_write_msg {
31   __u32 msg_type;
32   __u8 payload[0];
33 };
34 struct voice_svc_register {
35   char svc_name[MAX_APR_SERVICE_NAME_LEN];
36   __u32 src_port;
37   __u8 reg_flag;
38 };
39 struct voice_svc_cmd_response {
40   __u32 src_port;
41   __u32 dest_port;
42   __u32 token;
43   __u32 opcode;
44   __u32 payload_size;
45   __u8 payload[0];
46 };
47 struct voice_svc_cmd_request {
48   char svc_name[MAX_APR_SERVICE_NAME_LEN];
49   __u32 src_port;
50   __u32 dest_port;
51   __u32 token;
52   __u32 opcode;
53   __u32 payload_size;
54   __u8 payload[0];
55 };
56 #endif
57 
58