Iliyan Malchev | 5c3b16c | 2009-06-22 15:07:34 -0700 | [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 | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef AKM8973_H |
| 20 | #define AKM8973_H |
Iliyan Malchev | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 21 | #include <linux/ioctl.h> |
Iliyan Malchev | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 22 | #define AKMIO 0xA1 |
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 | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 24 | #define ECS_IOCTL_WRITE _IOW(AKMIO, 0x01, char[5]) |
| 25 | #define ECS_IOCTL_READ _IOWR(AKMIO, 0x02, char[5]) |
| 26 | #define ECS_IOCTL_RESET _IO(AKMIO, 0x03) |
| 27 | #define ECS_IOCTL_SET_MODE _IOW(AKMIO, 0x04, short) |
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 | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 29 | #define ECS_IOCTL_GETDATA _IOR(AKMIO, 0x05, char[RBUFF_SIZE+1]) |
| 30 | #define ECS_IOCTL_SET_YPR _IOW(AKMIO, 0x06, short[12]) |
| 31 | #define ECS_IOCTL_GET_OPEN_STATUS _IOR(AKMIO, 0x07, int) |
| 32 | #define ECS_IOCTL_GET_CLOSE_STATUS _IOR(AKMIO, 0x08, int) |
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 | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 34 | #define ECS_IOCTL_GET_DELAY _IOR(AKMIO, 0x30, short) |
Iliyan Malchev | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 35 | #define ECS_IOCTL_APP_SET_MODE _IOW(AKMIO, 0x10, short) |
| 36 | #define ECS_IOCTL_APP_SET_MFLAG _IOW(AKMIO, 0x11, short) |
| 37 | #define ECS_IOCTL_APP_GET_MFLAG _IOW(AKMIO, 0x12, short) |
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 | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 39 | #define ECS_IOCTL_APP_SET_AFLAG _IOW(AKMIO, 0x13, short) |
| 40 | #define ECS_IOCTL_APP_GET_AFLAG _IOR(AKMIO, 0x14, short) |
| 41 | #define ECS_IOCTL_APP_SET_TFLAG _IOR(AKMIO, 0x15, short) |
| 42 | #define ECS_IOCTL_APP_GET_TFLAG _IOR(AKMIO, 0x16, short) |
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 | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 44 | #define ECS_IOCTL_APP_RESET_PEDOMETER _IO(AKMIO, 0x17) |
| 45 | #define ECS_IOCTL_APP_SET_DELAY _IOW(AKMIO, 0x18, short) |
| 46 | #define ECS_IOCTL_APP_GET_DELAY ECS_IOCTL_GET_DELAY |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 47 | #define ECS_IOCTL_APP_SET_MVFLAG _IOW(AKMIO, 0x19, short) |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define ECS_IOCTL_APP_GET_MVFLAG _IOR(AKMIO, 0x1A, short) |
Iliyan Malchev | 5c3b16c | 2009-06-22 15:07:34 -0700 | [diff] [blame] | 50 | #define ECS_IOCTL_SET_STEP_CNT _IOW(AKMIO, 0x20, short) |
| 51 | #endif |