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 | *** |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 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 | *** |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef __LINUX_A1026_H |
| 20 | #define __LINUX_A1026_H |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 21 | #include <linux/ioctl.h> |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 22 | #define A1026_MAX_FW_SIZE (32*1024) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 24 | struct a1026img { |
| 25 | unsigned char *buf; |
| 26 | unsigned img_size; |
| 27 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 29 | enum A1026_PathID { |
| 30 | A1026_PATH_SUSPEND, |
| 31 | A1026_PATH_INCALL_RECEIVER, |
| 32 | A1026_PATH_INCALL_HEADSET, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 34 | A1026_PATH_INCALL_SPEAKER, |
| 35 | A1026_PATH_INCALL_BT, |
| 36 | A1026_PATH_VR_NO_NS_RECEIVER, |
| 37 | A1026_PATH_VR_NO_NS_HEADSET, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 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, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 44 | A1026_PATH_VR_NS_SPEAKER, |
| 45 | A1026_PATH_VR_NS_BT, |
| 46 | A1026_PATH_RECORD_RECEIVER, |
| 47 | A1026_PATH_RECORD_HEADSET, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 49 | A1026_PATH_RECORD_SPEAKER, |
| 50 | A1026_PATH_RECORD_BT, |
Iliyan Malchev | ee424e2 | 2010-02-08 15:57:09 -0800 | [diff] [blame] | 51 | A1026_PATH_CAMCORDER, |
| 52 | A1026_PATH_INCALL_TTY |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 54 | }; |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 55 | enum A1026_NS_states { |
| 56 | A1026_NS_STATE_AUTO, |
| 57 | A1026_NS_STATE_OFF, |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 59 | A1026_NS_STATE_CT, |
| 60 | A1026_NS_STATE_FT, |
| 61 | A1026_NS_NUM_STATES |
| 62 | }; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 64 | #define A1026_IOCTL_MAGIC 'u' |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 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) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 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) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 74 | #define A1026_SYNC_CMD _IO(A1026_IOCTL_MAGIC, 0x54) |
| 75 | #define A1026_SET_CMD_FILE _IOW(A1026_IOCTL_MAGIC, 0x55, unsigned) |
Iliyan Malchev | 276313e | 2010-02-02 11:56:26 -0800 | [diff] [blame] | 76 | #endif |