• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 __LINUX_A1026_H
20 #define __LINUX_A1026_H
21 #include <linux/ioctl.h>
22 #define A1026_MAX_FW_SIZE (32*1024)
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 struct a1026img {
25  unsigned char *buf;
26  unsigned img_size;
27 };
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 enum A1026_PathID {
30  A1026_PATH_SUSPEND,
31  A1026_PATH_INCALL_RECEIVER,
32  A1026_PATH_INCALL_HEADSET,
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  A1026_PATH_INCALL_SPEAKER,
35  A1026_PATH_INCALL_BT,
36  A1026_PATH_VR_NO_NS_RECEIVER,
37  A1026_PATH_VR_NO_NS_HEADSET,
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  A1026_PATH_VR_NO_NS_SPEAKER,
40  A1026_PATH_VR_NO_NS_BT,
41  A1026_PATH_VR_NS_RECEIVER,
42  A1026_PATH_VR_NS_HEADSET,
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  A1026_PATH_VR_NS_SPEAKER,
45  A1026_PATH_VR_NS_BT,
46  A1026_PATH_RECORD_RECEIVER,
47  A1026_PATH_RECORD_HEADSET,
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  A1026_PATH_RECORD_SPEAKER,
50  A1026_PATH_RECORD_BT,
51  A1026_PATH_CAMCORDER,
52  A1026_PATH_INCALL_TTY
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 };
55 enum A1026_NS_states {
56  A1026_NS_STATE_AUTO,
57  A1026_NS_STATE_OFF,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  A1026_NS_STATE_CT,
60  A1026_NS_STATE_FT,
61  A1026_NS_NUM_STATES
62 };
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define A1026_IOCTL_MAGIC 'u'
65 #define A1026_BOOTUP_INIT _IOW(A1026_IOCTL_MAGIC, 0x01, struct a1026img *)
66 #define A1026_SET_CONFIG _IOW(A1026_IOCTL_MAGIC, 0x02, enum A1026_PathID)
67 #define A1026_SET_NS_STATE _IOW(A1026_IOCTL_MAGIC, 0x03, enum A1026_NS_states)
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define A1026_SET_MIC_ONOFF _IOW(A1026_IOCTL_MAGIC, 0x50, unsigned)
70 #define A1026_SET_MICSEL_ONOFF _IOW(A1026_IOCTL_MAGIC, 0x51, unsigned)
71 #define A1026_READ_DATA _IOR(A1026_IOCTL_MAGIC, 0x52, unsigned)
72 #define A1026_WRITE_MSG _IOW(A1026_IOCTL_MAGIC, 0x53, unsigned)
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define A1026_SYNC_CMD _IO(A1026_IOCTL_MAGIC, 0x54)
75 #define A1026_SET_CMD_FILE _IOW(A1026_IOCTL_MAGIC, 0x55, unsigned)
76 #endif
77