1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
/******************************************************************
Title : LinuxDefines.h
Package: Utimaco Linux Driver
Author : David Corcoran
Date : 10/15/99
Purpose: This handles smartcard reader communications.
LICENSE: See file LICENSE
********************************************************************/
#ifndef __Linux_Defines_h_
#define __Linux_Defines_h_
typedef unsigned short USHORT;
typedef unsigned char UCHAR;
typedef unsigned char* PUCHAR;
typedef unsigned long ULONG;
typedef short BOOLEAN;
typedef ULONG* PULONG;
typedef void* PVOID;
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef NULL
#define NULL 0x0000
#endif
/* Uncomment this for debugging information */
#define PCSC_DEBUG 1
/********************************************/
#define MAX_BUFFER_SIZE 264
#define MAX_ATR_SIZE 33
#define STATUS_SUCCESS 0x0000
#define STATUS_UNSUCCESSFUL 0x0001
#define STATUS_IO_TIMEOUT 0x0002
#define STATUS_DATA_ERROR 0x0004
#define STATUS_UNRECOGNIZED_MEDIA 0x0008
#define STATUS_BUFFER_TOO_SMALL 0x0010
#define STATUS_DEVICE_PROTOCOL_ERROR 0x0020
#endif
|