• 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  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __LINUX_A1026_H
13 #define __LINUX_A1026_H
14 
15 #include <linux/ioctl.h>
16 
17 #define A1026_MAX_FW_SIZE (32*1024)
18 struct a1026img {
19  unsigned char *buf;
20  unsigned img_size;
21 };
22 
23 enum A1026_PathID {
24  A1026_PATH_SUSPEND,
25  A1026_PATH_INCALL_RECEIVER,
26  A1026_PATH_INCALL_HEADSET,
27  A1026_PATH_INCALL_SPEAKER,
28  A1026_PATH_INCALL_BT,
29  A1026_PATH_VR_NO_NS_RECEIVER,
30  A1026_PATH_VR_NO_NS_HEADSET,
31  A1026_PATH_VR_NO_NS_SPEAKER,
32  A1026_PATH_VR_NO_NS_BT,
33  A1026_PATH_VR_NS_RECEIVER,
34  A1026_PATH_VR_NS_HEADSET,
35  A1026_PATH_VR_NS_SPEAKER,
36  A1026_PATH_VR_NS_BT,
37  A1026_PATH_RECORD_RECEIVER,
38  A1026_PATH_RECORD_HEADSET,
39  A1026_PATH_RECORD_SPEAKER,
40  A1026_PATH_RECORD_BT,
41  A1026_PATH_CAMCORDER,
42  A1026_PATH_INCALL_TTY
43 };
44 
45 enum A1026_NS_states {
46  A1026_NS_STATE_AUTO,
47  A1026_NS_STATE_OFF,
48  A1026_NS_STATE_CT,
49  A1026_NS_STATE_FT,
50  A1026_NS_NUM_STATES
51 };
52 
53 #define A1026_IOCTL_MAGIC 'u'
54 
55 #define A1026_BOOTUP_INIT _IOW(A1026_IOCTL_MAGIC, 0x01, struct a1026img *)
56 #define A1026_SET_CONFIG _IOW(A1026_IOCTL_MAGIC, 0x02, enum A1026_PathID)
57 #define A1026_SET_NS_STATE _IOW(A1026_IOCTL_MAGIC, 0x03, enum A1026_NS_states)
58 
59 #define A1026_SET_MIC_ONOFF _IOW(A1026_IOCTL_MAGIC, 0x50, unsigned)
60 #define A1026_SET_MICSEL_ONOFF _IOW(A1026_IOCTL_MAGIC, 0x51, unsigned)
61 #define A1026_READ_DATA _IOR(A1026_IOCTL_MAGIC, 0x52, unsigned)
62 #define A1026_WRITE_MSG _IOW(A1026_IOCTL_MAGIC, 0x53, unsigned)
63 #define A1026_SYNC_CMD _IO(A1026_IOCTL_MAGIC, 0x54)
64 #define A1026_SET_CMD_FILE _IOW(A1026_IOCTL_MAGIC, 0x55, unsigned)
65 
66 #endif
67 
68