[Pcsclite-cvs-commit] Drivers/ccid/src/towitoko atr.c,1.2,1.3

rousseau@haydn.debian.org rousseau@haydn.debian.org


Update of /cvsroot/pcsclite/Drivers/ccid/src/towitoko
In directory haydn:/tmp/cvs-serv10522

Modified Files:
	atr.c 
Log Message:
the atr_f_table[] and atr_d_table[] tables were partly wrong


Index: atr.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/towitoko/atr.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- atr.c	17 May 2004 14:35:51 -0000	1.2
+++ atr.c	30 Jun 2004 13:51:23 -0000	1.3
@@ -23,18 +23,12 @@
 #include "atr.h"
 #include <stdlib.h>
 #include <string.h>
+#include "debug.h"
 
 /* 
  * Not exported variables definition
  */
 
-static unsigned long 
-atr_fs_table[16] =
-{ 
-  0, 5000000L, 6000000L, 8000000L, 12000000L, 16000000L, 20000000L, 
-  0, 0, 5000000L, 7500000L, 10000000L, 15000000L, 20000000L, 0, 0 
-};
-
 static unsigned
 atr_num_ib_table[16] = 
 { 
@@ -48,13 +42,13 @@
 unsigned
 atr_f_table[16] = 
 { 
-  0, 372, 558, 744, 1116, 1488, 1860, 0, 0, 512, 768, 1024, 1536, 2048, 0, 0 
+  372, 372, 558, 744, 1116, 1488, 1860, 0, 0, 512, 768, 1024, 1536, 2048, 0, 0 
 };
 
-double 
+unsigned 
 atr_d_table[16] = 
 { 
-  0, 1, 2, 4, 8, 16, 0, 0, 0, 0, 0.5, 0.25, 0.125, 0.0625, 0.03125, 0.015625 
+  0, 1, 2, 4, 8, 16, 32, 0, 12, 20, 0, 0, 0, 0, 0, 0 
 };
 
 unsigned