view cdg211/cdginc/m_sm.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 56abf6cf8a0b
children
line wrap: on
line source

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : m_sm.h                                                         |
| SOURCE  : "__out__\g23m_dfile\msg\sm.mdf"                                |
| LastModified : "2002-04-29"                                              |
| IdAndVersion : "8441.605.99.007"                                         |
| SrcFileTime  : "Mon Nov 24 15:51:04 2003"                                |
| Generated by CCDGEN_2.5.5 on Fri Jun 08 13:59:14 2007                    |
|           !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!!                |
+--------------------------------------------------------------------------+
*/

/* PRAGMAS
 * PREFIX                 : NONE
 * COMPATIBILITY_DEFINES  : NO (require PREFIX)
 * ALWAYS_ENUM_IN_VAL_FILE: NO
 * ENABLE_GROUP: NO
 * CAPITALIZE_TYPENAME: NO
 */


#ifndef M_SM_H
#define M_SM_H


#define CDG_ENTER__M_SM_H

#define CDG_ENTER__FILENAME _M_SM_H
#define CDG_ENTER__M_SM_H__FILE_TYPE CDGINC
#define CDG_ENTER__M_SM_H__LAST_MODIFIED _2002_04_29
#define CDG_ENTER__M_SM_H__ID_AND_VERSION _8441_605_99_007

#define CDG_ENTER__M_SM_H__SRC_FILE_TIME _Mon_Nov_24_15_51_04_2003

#include "CDG_ENTER.h"

#undef CDG_ENTER__M_SM_H

#undef CDG_ENTER__FILENAME


#include "m_sm.val"

#ifndef __T_nsapi__
#define __T_nsapi__
/*
 * network service access point identifier
 * CCDGEN:WriteStruct_Count==851
 */
typedef struct
{
  U8                        nsapi_val;                /*<  0:  1> NSAPI value                                        */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_nsapi;
#endif

#ifndef __T_llc_sapi__
#define __T_llc_sapi__
/*
 * LLC service access point identifier
 * CCDGEN:WriteStruct_Count==852
 */
typedef struct
{
  U8                        sapi;                     /*<  0:  1> SAPI                                               */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_llc_sapi;
#endif

#ifndef __T_qos__
#define __T_qos__
/*
 * Quality of service
 * CCDGEN:WriteStruct_Count==853
 */
typedef struct
{
  U8                        delay;                    /*<  0:  1> Delay class                                        */
  U8                        reliability;              /*<  1:  1> Reliability class                                  */
  U8                        peak;                     /*<  2:  1> Peak throughput                                    */
  U8                        precedence;               /*<  3:  1> Precedence class                                   */
  U8                        mean;                     /*<  4:  1> Mean throughput                                    */
  U8                        _align0;                  /*<  5:  1> alignment                                          */
  U8                        _align1;                  /*<  6:  1> alignment                                          */
  U8                        _align2;                  /*<  7:  1> alignment                                          */
} T_qos;
#endif

#ifndef __T_address__
#define __T_address__
/*
 * Packet data protocol address
 * CCDGEN:WriteStruct_Count==854
 */
typedef struct
{
  U8                        pdp_type_org;             /*<  0:  1> PDP type organisation                              */
  U8                        pdp_type_no;              /*<  1:  1> PDP type number                                    */
  U8                        c_add_info;               /*<  2:  1> counter                                            */
  U8                        add_info[20];             /*<  3: 20> Adress information                                 */
  U8                        _align0;                  /*< 23:  1> alignment                                          */
} T_address;
#endif

#ifndef __T_apn__
#define __T_apn__
/*
 * Access point name
 * CCDGEN:WriteStruct_Count==855
 */
typedef struct
{
  U8                        c_apn_value;              /*<  0:  1> counter                                            */
  U8                        apn_value[102];           /*<  1:102> Access point name value                            */
  U8                        _align0;                  /*<103:  1> alignment                                          */
} T_apn;
#endif

#ifndef __T_pco__
#define __T_pco__
/*
 * Protocol information options
 * CCDGEN:WriteStruct_Count==856
 */
typedef struct
{
  U8                        c_pco_value;              /*<  0:  1> counter                                            */
  U8                        pco_value[253];           /*<  1:253> Protocol config value                              */
  U8                        _align0;                  /*<254:  1> alignment                                          */
  U8                        _align1;                  /*<255:  1> alignment                                          */
} T_pco;
#endif

#ifndef __T_radio_prio__
#define __T_radio_prio__
/*
 * Radio priority
 * CCDGEN:WriteStruct_Count==857
 */
typedef struct
{
  U8                        radio_prio_val;           /*<  0:  1> Radio priority value                               */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_radio_prio;
#endif

#ifndef __T_sm_cause__
#define __T_sm_cause__
/*
 * SM cause
 * CCDGEN:WriteStruct_Count==858
 */
typedef struct
{
  U8                        sm_cause_val;             /*<  0:  1> SM cause value                                     */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_sm_cause;
#endif


/*
 * End of substructure section, begin of message definition section
 */

#ifndef __T_ACTIVATE_PDP_REQ__
#define __T_ACTIVATE_PDP_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==859
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_nsapi                   nsapi;                    /*<  4:  4> network service access point identifier            */
  T_llc_sapi                llc_sapi;                 /*<  8:  4> LLC service access point identifier                */
  T_qos                     qos;                      /*< 12:  8> Quality of service                                 */
  T_address                 address;                  /*< 20: 24> Packet data protocol address                       */
  U8                        _align3;                  /*< 44:  1> alignment                                          */
  U8                        _align4;                  /*< 45:  1> alignment                                          */
  U8                        _align5;                  /*< 46:  1> alignment                                          */
  U8                        v_apn;                    /*< 47:  1> valid-flag                                         */
  T_apn                     apn;                      /*< 48:104> Access point name                                  */
  U8                        _align6;                  /*<152:  1> alignment                                          */
  U8                        _align7;                  /*<153:  1> alignment                                          */
  U8                        _align8;                  /*<154:  1> alignment                                          */
  U8                        v_pco;                    /*<155:  1> valid-flag                                         */
  T_pco                     pco;                      /*<156:256> Protocol information options                       */
} T_ACTIVATE_PDP_REQ;
#endif

#ifndef __T_ACTIVATE_PDP_ACC__
#define __T_ACTIVATE_PDP_ACC__
/*
 * 
 * CCDGEN:WriteStruct_Count==860
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_llc_sapi                llc_sapi;                 /*<  4:  4> LLC service access point identifier                */
  T_qos                     qos;                      /*<  8:  8> Quality of service                                 */
  T_radio_prio              radio_prio;               /*< 16:  4> Radio priority                                     */
  U8                        _align3;                  /*< 20:  1> alignment                                          */
  U8                        _align4;                  /*< 21:  1> alignment                                          */
  U8                        _align5;                  /*< 22:  1> alignment                                          */
  U8                        v_address;                /*< 23:  1> valid-flag                                         */
  T_address                 address;                  /*< 24: 24> Packet data protocol address                       */
  U8                        _align6;                  /*< 48:  1> alignment                                          */
  U8                        _align7;                  /*< 49:  1> alignment                                          */
  U8                        _align8;                  /*< 50:  1> alignment                                          */
  U8                        v_pco;                    /*< 51:  1> valid-flag                                         */
  T_pco                     pco;                      /*< 52:256> Protocol information options                       */
} T_ACTIVATE_PDP_ACC;
#endif

#ifndef __T_ACTIVATE_PDP_REJ__
#define __T_ACTIVATE_PDP_REJ__
/*
 * 
 * CCDGEN:WriteStruct_Count==861
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_sm_cause                sm_cause;                 /*<  4:  4> SM cause                                           */
  U8                        _align3;                  /*<  8:  1> alignment                                          */
  U8                        _align4;                  /*<  9:  1> alignment                                          */
  U8                        _align5;                  /*< 10:  1> alignment                                          */
  U8                        v_pco;                    /*< 11:  1> valid-flag                                         */
  T_pco                     pco;                      /*< 12:256> Protocol information options                       */
} T_ACTIVATE_PDP_REJ;
#endif

#ifndef __T_REQ_PDP_ACT__
#define __T_REQ_PDP_ACT__
/*
 * 
 * CCDGEN:WriteStruct_Count==862
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_address                 address;                  /*<  4: 24> Packet data protocol address                       */
  U8                        _align3;                  /*< 28:  1> alignment                                          */
  U8                        _align4;                  /*< 29:  1> alignment                                          */
  U8                        _align5;                  /*< 30:  1> alignment                                          */
  U8                        v_apn;                    /*< 31:  1> valid-flag                                         */
  T_apn                     apn;                      /*< 32:104> Access point name                                  */
} T_REQ_PDP_ACT;
#endif

#ifndef __T_REQ_PDP_ACT_REJ__
#define __T_REQ_PDP_ACT_REJ__
/*
 * 
 * CCDGEN:WriteStruct_Count==863
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_sm_cause                sm_cause;                 /*<  4:  4> SM cause                                           */
} T_REQ_PDP_ACT_REJ;
#endif

#ifndef __T_MOD_PDP_REQ__
#define __T_MOD_PDP_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==864
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_radio_prio              radio_prio;               /*<  4:  4> Radio priority                                     */
  T_llc_sapi                llc_sapi;                 /*<  8:  4> LLC service access point identifier                */
  T_qos                     qos;                      /*< 12:  8> Quality of service                                 */
} T_MOD_PDP_REQ;
#endif

#ifndef __T_MOD_PDP_ACC__
#define __T_MOD_PDP_ACC__
/*
 * 
 * CCDGEN:WriteStruct_Count==865
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_MOD_PDP_ACC;
#endif

#ifndef __T_DEACT_PDP_REQ__
#define __T_DEACT_PDP_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==866
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_sm_cause                sm_cause;                 /*<  4:  4> SM cause                                           */
} T_DEACT_PDP_REQ;
#endif

#ifndef __T_DEACT_PDP_ACC__
#define __T_DEACT_PDP_ACC__
/*
 * 
 * CCDGEN:WriteStruct_Count==867
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_DEACT_PDP_ACC;
#endif

#ifndef __T_SM_STATUS__
#define __T_SM_STATUS__
/*
 * 
 * CCDGEN:WriteStruct_Count==868
 */
typedef struct
{
  U8                        msg_type;                 /*<  0:  1> Message Type                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
  T_sm_cause                sm_cause;                 /*<  4:  4> SM cause                                           */
} T_SM_STATUS;
#endif


#include "CDG_LEAVE.h"


#endif