Changeset 4998 for trunk/csctapi/ifd_sci.c
- Timestamp:
- 04/14/11 02:41:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/ifd_sci.c
r4141 r4998 23 23 #define ERROR 1 24 24 25 int Sci_GetStatus (struct s_reader * reader, int * status)25 int32_t Sci_GetStatus (struct s_reader * reader, int32_t * status) 26 26 { 27 27 call (ioctl(reader->handle, IOCTL_GET_IS_CARD_PRESENT, status)<0); … … 29 29 } 30 30 31 int Sci_Reset (struct s_reader * reader, ATR * atr)31 int32_t Sci_Reset (struct s_reader * reader, ATR * atr) 32 32 { 33 33 unsigned char buf[SCI_MAX_ATR_SIZE]; 34 int n = 0;34 int32_t n = 0; 35 35 SCI_PARAMETERS params; 36 36 … … 69 69 } 70 70 71 int Sci_WriteSettings (struct s_reader * reader, BYTE T, unsigned long fs, unsigned long ETU, unsigned long WWT, unsigned long BWT, unsigned long CWT, unsigned longEGT, unsigned char P, unsigned char I)71 int32_t Sci_WriteSettings (struct s_reader * reader, BYTE T, uint32_t fs, uint32_t ETU, uint32_t WWT, uint32_t BWT, uint32_t CWT, uint32_t EGT, unsigned char P, unsigned char I) 72 72 { 73 //int n;73 //int32_t n; 74 74 SCI_PARAMETERS params; 75 75 //memset(¶ms,0,sizeof(SCI_PARAMETERS)); … … 97 97 } 98 98 99 int Sci_Activate (struct s_reader * reader)99 int32_t Sci_Activate (struct s_reader * reader) 100 100 { 101 101 cs_debug_mask(D_IFD, "IFD: Activating card"); 102 int in;102 int32_t in; 103 103 104 104 #if defined(TUXBOX) && (defined(MIPSEL) || defined(PPC) || defined(SH4)) … … 115 115 } 116 116 117 int Sci_Deactivate (struct s_reader * reader)117 int32_t Sci_Deactivate (struct s_reader * reader) 118 118 { 119 119 cs_debug_mask(D_IFD, "IFD: Deactivating card"); 120 int in;120 int32_t in; 121 121 122 122 #if defined(TUXBOX) && (defined(MIPSEL) || defined(PPC) || defined(SH4)) … … 132 132 133 133 134 int Sci_FastReset (struct s_reader *reader)134 int32_t Sci_FastReset (struct s_reader *reader) 135 135 { 136 136 unsigned char buf[SCI_MAX_ATR_SIZE]; 137 int n = 0;137 int32_t n = 0; 138 138 139 139 call (ioctl(reader->handle, IOCTL_SET_RESET)<0);
Note:
See TracChangeset
for help on using the changeset viewer.