FreeCalypso > hg > fc-magnetite
view src/aci2/atb/ATBPbFS.h @ 662:8cd8fd15a095
SIM speed enhancement re-enabled and made configurable
TI's original code supported SIM speed enhancement, but Openmoko had it
disabled, and OM's disabling of speed enhancement somehow caused certain
SIM cards to start working which didn't work before (OM's bug #666).
Because our FC community is much smaller in year 2020 than OM's community
was in their day, we are not able to find one of those #666-affected SIMs,
thus the real issue they had encountered remains elusive. Thus our
solution is to re-enable SIM speed enhancement and simply wait for if
and when someone runs into a #666-affected SIM once again. We provide
a SIM_allow_speed_enhancement global variable that allows SIM speed
enhancement to be enabled or disabled per session, and an /etc/SIM_spenh
file in FFS that allows it to enabled or disabled on a non-volatile
basis. SIM speed enhancement is now enabled by default.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 24 May 2020 05:02:28 +0000 |
parents | 93999a60b835 |
children |
line wrap: on
line source
/********************************************* * PB_RECS_PER_FILE * * Specifies how many records should be stored in * each file on the flash. *********************************************/ #define PB_RECS_PER_FILE 10 /********************************************* * PB_xxx_UPPER_LIMIT * * The absolute maximum size of various aspects * of the records stored on the file system. Used * to keep values read in from file within a * sensible range. *********************************************/ #define PB_RECORDS_UPPER_LIMIT 500 #define PB_ALPHATAG_UPPER_LIMIT 500 #define PB_NUMBER_UPPER_LIMIT 500 #define PB_EXT_UPPER_LIMIT 500 /********************************************** * T_PB_FSDATA * * Internal information for FS *********************************************/ typedef struct { SHORT records_max; SHORT alpha_max; SHORT number_max; SHORT ext_max; SHORT record_size; T_FFS_FD info_file; SHORT fileID; T_FFS_FD file; } T_PB_FSDATA; /********************************************** * T_PB_FSINFO * * Information about phonebook - * e.g. is SIM or FFS selected ? *********************************************/ typedef struct { UBYTE type_selected; /* The current selected phonebook */ SHORT records_max; SHORT alpha_max; SHORT number_max; SHORT ext_max; } T_PB_FSINFO; /********************************************** * LOCAL FUNCTION PROTOTYPES * *********************************************/ void FS_file_GetIndex(SHORT phys_index, SHORT *fileIndex, SHORT *recIndex); void FS_file_GetName(char *filename, SHORT phonebook_id, SHORT fileIndex); SHORT FS_file_OpenForRec(SHORT phonebook_id, SHORT phys_index);