view src/aci2/aci/l4_tim.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

/* 
+----------------------------------------------------------------------------- 
|  Project :  GSM-PS (6147)
|  Modul   :  L4_TIM
+----------------------------------------------------------------------------- 
|  Copyright 2002 Texas Instruments Berlin, AG 
|                 All rights reserved. 
| 
|                 This file is confidential and a trade secret of Texas 
|                 Instruments Berlin, AG 
|                 The receipt of or possession of this file does not convey 
|                 any rights to reproduce or disclose its contents or to 
|                 manufacture, use, or sell anything it may describe, in 
|                 whole, or in part, without the specific written consent of 
|                 Texas Instruments Berlin, AG. 
+----------------------------------------------------------------------------- 
|  Purpose :  Definitions of timer indices
+----------------------------------------------------------------------------- 
*/ 


/*
 * Timer Indices
 */

#define SMI_TBACKLIGHT           0
#define SMI_TSLIDER              1
#define SMI_TSHIFTKEY            2
#define SMI_TUNIVERSAL           3

#define ACI_TRING                4
#define ACI_TMPTY                5
#define ACI_TFIT                 6
#define ACI_TDTMF                7

#if defined (FAX_AND_DATA)
#define FIT_RUN                  8
#endif

#define AOC_CALLTIMER            9
#define AOC_AOCTIMER             10
#define MAX_AOC_TIMER           7   /* should be changed to MAX_CALL_NR */


/* timers in between are reserved for AOC */
#define MFW_TIMER               (AOC_AOCTIMER+MAX_AOC_TIMER)

#define ACI_IPR                 (MFW_TIMER + 1)
#define ACI_TECT                (ACI_IPR + 1)
#define ACI_TDELAY              (ACI_TECT + 1)

#if defined FF_EOTD /*&& defined _SIMULATION_*/
#define ACI_LC_1                (ACI_TDELAY+1)
#define ACI_LC_2                (ACI_LC_1+1)
#define ACI_LC_3                (ACI_LC_1+2)
#define ACI_LC_4                (ACI_LC_1+3)
#define ACI_LC_5                (ACI_LC_1+4)
#endif

#ifndef FF_EOTD
#define ACI_REPEAT_HND          (ACI_TDELAY +1)
#else
#define ACI_REPEAT_HND          (ACI_LC_1+5)
#endif /* FF_EOTD */

#define ACI_CNMA_TIMER_HANDLE   (ACI_REPEAT_HND+1)

#define ACI_REPEAT_1         5000   /* 5 sec for waiting for 1th redialling */
#define ACI_REPEAT_2_4       60000  /* 1 min for waiting for 2th to 4th redialling */
#define ACI_CNMA_TIMER_VALUE 15000  /* 15 sec. for waiting for the +CNMA */
#define ACI_DELAY_TIMER      5000   /* 5 sec delay for various REDIAL attempts */