2013-01-14 20:28:26 +01: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.
|
|
|
|
***
|
|
|
|
*** 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!
|
|
|
|
***
|
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
2013-10-17 01:09:24 +02:00
|
|
|
#ifndef _UAPI_CM4000_H_
|
|
|
|
#define _UAPI_CM4000_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define MAX_ATR 33
|
2013-11-21 22:43:23 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CM4000_MAX_DEV 4
|
|
|
|
typedef struct atreq {
|
|
|
|
__s32 atr_len;
|
|
|
|
unsigned char atr[64];
|
2013-11-21 22:43:23 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-10-17 01:09:24 +02:00
|
|
|
__s32 power_act;
|
|
|
|
unsigned char bIFSD;
|
|
|
|
unsigned char bIFSC;
|
|
|
|
} atreq_t;
|
2013-11-21 22:43:23 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-10-17 01:09:24 +02:00
|
|
|
typedef struct ptsreq {
|
|
|
|
__u32 protocol;
|
|
|
|
unsigned char flags;
|
|
|
|
unsigned char pts1;
|
2013-11-21 22:43:23 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-10-17 01:09:24 +02:00
|
|
|
unsigned char pts2;
|
|
|
|
unsigned char pts3;
|
|
|
|
} ptsreq_t;
|
|
|
|
#define CM_IOC_MAGIC 'c'
|
2013-11-21 22:43:23 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CM_IOC_MAXNR 255
|
|
|
|
#define CM_IOCGSTATUS _IOR (CM_IOC_MAGIC, 0, unsigned char *)
|
|
|
|
#define CM_IOCGATR _IOWR(CM_IOC_MAGIC, 1, atreq_t *)
|
|
|
|
#define CM_IOCSPTS _IOW (CM_IOC_MAGIC, 2, ptsreq_t *)
|
2013-11-21 22:43:23 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CM_IOCSRDR _IO (CM_IOC_MAGIC, 3)
|
|
|
|
#define CM_IOCARDOFF _IO (CM_IOC_MAGIC, 4)
|
|
|
|
#define CM_IOSDBGLVL _IOW(CM_IOC_MAGIC, 250, int*)
|
|
|
|
#define CM_CARD_INSERTED 0x01
|
2013-11-21 22:43:23 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CM_CARD_POWERED 0x02
|
|
|
|
#define CM_ATR_PRESENT 0x04
|
|
|
|
#define CM_ATR_VALID 0x08
|
|
|
|
#define CM_STATE_VALID 0x0f
|
2013-11-21 22:43:23 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-10-17 01:09:24 +02:00
|
|
|
#define CM_NO_READER 0x10
|
|
|
|
#define CM_BAD_CARD 0x20
|
2013-01-14 20:28:26 +01:00
|
|
|
#endif
|