blob: 1e5ce1b7478c51d043a52b5a8736c7813248855b [file] [log] [blame]
Iliyan Malchev276313e2010-02-02 11:56:26 -08001/****************************************************************************
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 Cheng654325d2012-03-07 21:13:49 -080010 *** 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 Malchev276313e2010-02-02 11:56:26 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX_A1026_H
20#define __LINUX_A1026_H
Iliyan Malchev276313e2010-02-02 11:56:26 -080021#include <linux/ioctl.h>
Iliyan Malchev276313e2010-02-02 11:56:26 -080022#define A1026_MAX_FW_SIZE (32*1024)
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080024struct a1026img {
25 unsigned char *buf;
26 unsigned img_size;
27};
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080029enum A1026_PathID {
30 A1026_PATH_SUSPEND,
31 A1026_PATH_INCALL_RECEIVER,
32 A1026_PATH_INCALL_HEADSET,
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080034 A1026_PATH_INCALL_SPEAKER,
35 A1026_PATH_INCALL_BT,
36 A1026_PATH_VR_NO_NS_RECEIVER,
37 A1026_PATH_VR_NO_NS_HEADSET,
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080039 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 Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080044 A1026_PATH_VR_NS_SPEAKER,
45 A1026_PATH_VR_NS_BT,
46 A1026_PATH_RECORD_RECEIVER,
47 A1026_PATH_RECORD_HEADSET,
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080049 A1026_PATH_RECORD_SPEAKER,
50 A1026_PATH_RECORD_BT,
Iliyan Malchevee424e22010-02-08 15:57:09 -080051 A1026_PATH_CAMCORDER,
52 A1026_PATH_INCALL_TTY
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080054};
Iliyan Malchev276313e2010-02-02 11:56:26 -080055enum A1026_NS_states {
56 A1026_NS_STATE_AUTO,
57 A1026_NS_STATE_OFF,
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080059 A1026_NS_STATE_CT,
60 A1026_NS_STATE_FT,
61 A1026_NS_NUM_STATES
62};
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080064#define A1026_IOCTL_MAGIC 'u'
Iliyan Malchev276313e2010-02-02 11:56:26 -080065#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 Cheng654325d2012-03-07 21:13:49 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080069#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 Cheng654325d2012-03-07 21:13:49 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev276313e2010-02-02 11:56:26 -080074#define A1026_SYNC_CMD _IO(A1026_IOCTL_MAGIC, 0x54)
75#define A1026_SET_CMD_FILE _IOW(A1026_IOCTL_MAGIC, 0x55, unsigned)
Iliyan Malchev276313e2010-02-02 11:56:26 -080076#endif