2009-06-23 00:07:34 +02:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-08 06:13:49 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2009-06-23 00:07:34 +02:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef AKM8973_H
|
|
|
|
#define AKM8973_H
|
|
|
|
#include <linux/ioctl.h>
|
|
|
|
#define AKMIO 0xA1
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-06-23 00:07:34 +02:00
|
|
|
#define ECS_IOCTL_WRITE _IOW(AKMIO, 0x01, char[5])
|
|
|
|
#define ECS_IOCTL_READ _IOWR(AKMIO, 0x02, char[5])
|
|
|
|
#define ECS_IOCTL_RESET _IO(AKMIO, 0x03)
|
|
|
|
#define ECS_IOCTL_SET_MODE _IOW(AKMIO, 0x04, short)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-06-23 00:07:34 +02:00
|
|
|
#define ECS_IOCTL_GETDATA _IOR(AKMIO, 0x05, char[RBUFF_SIZE+1])
|
|
|
|
#define ECS_IOCTL_SET_YPR _IOW(AKMIO, 0x06, short[12])
|
|
|
|
#define ECS_IOCTL_GET_OPEN_STATUS _IOR(AKMIO, 0x07, int)
|
|
|
|
#define ECS_IOCTL_GET_CLOSE_STATUS _IOR(AKMIO, 0x08, int)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-06-23 00:07:34 +02:00
|
|
|
#define ECS_IOCTL_GET_DELAY _IOR(AKMIO, 0x30, short)
|
|
|
|
#define ECS_IOCTL_APP_SET_MODE _IOW(AKMIO, 0x10, short)
|
|
|
|
#define ECS_IOCTL_APP_SET_MFLAG _IOW(AKMIO, 0x11, short)
|
|
|
|
#define ECS_IOCTL_APP_GET_MFLAG _IOW(AKMIO, 0x12, short)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-06-23 00:07:34 +02:00
|
|
|
#define ECS_IOCTL_APP_SET_AFLAG _IOW(AKMIO, 0x13, short)
|
|
|
|
#define ECS_IOCTL_APP_GET_AFLAG _IOR(AKMIO, 0x14, short)
|
|
|
|
#define ECS_IOCTL_APP_SET_TFLAG _IOR(AKMIO, 0x15, short)
|
|
|
|
#define ECS_IOCTL_APP_GET_TFLAG _IOR(AKMIO, 0x16, short)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-06-23 00:07:34 +02:00
|
|
|
#define ECS_IOCTL_APP_RESET_PEDOMETER _IO(AKMIO, 0x17)
|
|
|
|
#define ECS_IOCTL_APP_SET_DELAY _IOW(AKMIO, 0x18, short)
|
|
|
|
#define ECS_IOCTL_APP_GET_DELAY ECS_IOCTL_GET_DELAY
|
2013-01-30 03:15:55 +01:00
|
|
|
#define ECS_IOCTL_APP_SET_MVFLAG _IOW(AKMIO, 0x19, short)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-01-30 03:15:55 +01:00
|
|
|
#define ECS_IOCTL_APP_GET_MVFLAG _IOR(AKMIO, 0x1A, short)
|
2009-06-23 00:07:34 +02:00
|
|
|
#define ECS_IOCTL_SET_STEP_CNT _IOW(AKMIO, 0x20, short)
|
|
|
|
#endif
|