cm4040_cs.h (1474B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _CM4040_H_ 3#define _CM4040_H_ 4 5#define CM_MAX_DEV 4 6 7#define DEVICE_NAME "cmx" 8#define MODULE_NAME "cm4040_cs" 9 10#define REG_OFFSET_BULK_OUT 0 11#define REG_OFFSET_BULK_IN 0 12#define REG_OFFSET_BUFFER_STATUS 1 13#define REG_OFFSET_SYNC_CONTROL 2 14 15#define BSR_BULK_IN_FULL 0x02 16#define BSR_BULK_OUT_FULL 0x01 17 18#define SCR_HOST_TO_READER_START 0x80 19#define SCR_ABORT 0x40 20#define SCR_EN_NOTIFY 0x20 21#define SCR_ACK_NOTIFY 0x10 22#define SCR_READER_TO_HOST_DONE 0x08 23#define SCR_HOST_TO_READER_DONE 0x04 24#define SCR_PULSE_INTERRUPT 0x02 25#define SCR_POWER_DOWN 0x01 26 27 28#define CMD_PC_TO_RDR_ICCPOWERON 0x62 29#define CMD_PC_TO_RDR_GETSLOTSTATUS 0x65 30#define CMD_PC_TO_RDR_ICCPOWEROFF 0x63 31#define CMD_PC_TO_RDR_SECURE 0x69 32#define CMD_PC_TO_RDR_GETPARAMETERS 0x6C 33#define CMD_PC_TO_RDR_RESETPARAMETERS 0x6D 34#define CMD_PC_TO_RDR_SETPARAMETERS 0x61 35#define CMD_PC_TO_RDR_XFRBLOCK 0x6F 36#define CMD_PC_TO_RDR_ESCAPE 0x6B 37#define CMD_PC_TO_RDR_ICCCLOCK 0x6E 38#define CMD_PC_TO_RDR_TEST_SECURE 0x74 39#define CMD_PC_TO_RDR_OK_SECURE 0x89 40 41 42#define CMD_RDR_TO_PC_SLOTSTATUS 0x81 43#define CMD_RDR_TO_PC_DATABLOCK 0x80 44#define CMD_RDR_TO_PC_PARAMETERS 0x82 45#define CMD_RDR_TO_PC_ESCAPE 0x83 46#define CMD_RDR_TO_PC_OK_SECURE 0x89 47 48#endif /* _CM4040_H_ */