Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 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 |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 14 | |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 15 | #include <linux/ioctl.h> |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 16 | |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 17 | #define A1026_MAX_FW_SIZE (32*1024) |
| 18 | struct a1026img { |
| 19 | unsigned char *buf; |
| 20 | unsigned img_size; |
| 21 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 22 | |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 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, |
Iliyan Malchev | ee424e2 | 2010-02-08 15:57:09 -0800 | [diff] [blame] | 41 | A1026_PATH_CAMCORDER, |
| 42 | A1026_PATH_INCALL_TTY |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 43 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 44 | |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 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 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 52 | |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 53 | #define A1026_IOCTL_MAGIC 'u' |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 54 | |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 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) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 58 | |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 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) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 65 | |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 66 | #endif |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 67 | |