a1026.h revision 276313ec18c18a07e867dffe568a377583cfd905
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)
18struct a1026img {
19 unsigned char *buf;
20 unsigned img_size;
21};
22
23enum 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};
43
44enum A1026_NS_states {
45 A1026_NS_STATE_AUTO,
46 A1026_NS_STATE_OFF,
47 A1026_NS_STATE_CT,
48 A1026_NS_STATE_FT,
49 A1026_NS_NUM_STATES
50};
51
52#define A1026_IOCTL_MAGIC 'u'
53
54#define A1026_BOOTUP_INIT _IOW(A1026_IOCTL_MAGIC, 0x01, struct a1026img *)
55#define A1026_SET_CONFIG _IOW(A1026_IOCTL_MAGIC, 0x02, enum A1026_PathID)
56#define A1026_SET_NS_STATE _IOW(A1026_IOCTL_MAGIC, 0x03, enum A1026_NS_states)
57
58#define A1026_SET_MIC_ONOFF _IOW(A1026_IOCTL_MAGIC, 0x50, unsigned)
59#define A1026_SET_MICSEL_ONOFF _IOW(A1026_IOCTL_MAGIC, 0x51, unsigned)
60#define A1026_READ_DATA _IOR(A1026_IOCTL_MAGIC, 0x52, unsigned)
61#define A1026_WRITE_MSG _IOW(A1026_IOCTL_MAGIC, 0x53, unsigned)
62#define A1026_SYNC_CMD _IO(A1026_IOCTL_MAGIC, 0x54)
63#define A1026_SET_CMD_FILE _IOW(A1026_IOCTL_MAGIC, 0x55, unsigned)
64
65#endif
66
67