Changeset 3198 for trunk/csctapi/atr.c


Ignore:
Timestamp:
09/23/10 14:58:47 (10 years ago)
Author:
dingo35
Message:

atr.c threadsafe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/atr.c

    r3181 r3198  
    1 //FIXME Not checked on threadsafety yet; after checking please remove this line
    21/*
    32    atr.c
     
    3433 */
    3534
    36 unsigned long atr_fs_table[16] = {4000000L, 5000000L, 6000000L, 8000000L, 12000000L, 16000000L, 20000000L, 0, 0, 5000000L, 7500000L, 10000000L, 15000000L, 20000000L, 0, 0};
    37 
    38 static unsigned atr_num_ib_table[16] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};
     35const unsigned long atr_fs_table[16] = {4000000L, 5000000L, 6000000L, 8000000L, 12000000L, 16000000L, 20000000L, 0, 0, 5000000L, 7500000L, 10000000L, 15000000L, 20000000L, 0, 0};
     36
     37static const unsigned atr_num_ib_table[16] = {0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4};
    3938
    4039/*
     
    4241 */
    4342
    44 unsigned atr_f_table[16] = {372, 372, 558, 744, 1116, 1488, 1860, 0, 0, 512, 768, 1024, 1536, 2048, 0, 0};
    45 
    46 double atr_d_table[16] = {0, 1, 2, 4, 8, 16, 32, 64, 12, 20, 0.5, 0.25, 0.125, 0.0625, 0.03125, 0.015625};
     43const unsigned atr_f_table[16] = {372, 372, 558, 744, 1116, 1488, 1860, 0, 0, 512, 768, 1024, 1536, 2048, 0, 0};
     44
     45const double atr_d_table[16] = {0, 1, 2, 4, 8, 16, 32, 64, 12, 20, 0.5, 0.25, 0.125, 0.0625, 0.03125, 0.015625};
    4746//old table has 0 for RFU:
    4847//double atr_d_table[16] = {0, 1, 2, 4, 8, 16, 0, 0, 0, 0, 0.5, 0.25, 125, 0.0625, 0.03125, 0.015625};
    4948
    50 unsigned atr_i_table[4] = {25, 50, 100, 0};
     49const unsigned atr_i_table[4] = {25, 50, 100, 0};
    5150
    5251/*
Note: See TracChangeset for help on using the changeset viewer.