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/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define VOICE_SVC_DRIVER_NAME "voice_svc"
25#define VOICE_SVC_MVM_STR "MVM"
26#define VOICE_SVC_CVS_STR "CVS"
27#define MAX_APR_SERVICE_NAME_LEN 64
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define MSG_REGISTER 0x1
30#define MSG_REQUEST 0x2
31#define MSG_RESPONSE 0x3
32struct voice_svc_write_msg {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  __u32 msg_type;
35  __u8 payload[0];
36};
37struct voice_svc_register {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  char svc_name[MAX_APR_SERVICE_NAME_LEN];
40  __u32 src_port;
41  __u8 reg_flag;
42};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44struct voice_svc_cmd_response {
45  __u32 src_port;
46  __u32 dest_port;
47  __u32 token;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  __u32 opcode;
50  __u32 payload_size;
51  __u8 payload[0];
52};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54struct voice_svc_cmd_request {
55  char svc_name[MAX_APR_SERVICE_NAME_LEN];
56  __u32 src_port;
57  __u32 dest_port;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  __u32 token;
60  __u32 opcode;
61  __u32 payload_size;
62  __u8 payload[0];
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64};
65#endif
66
67