view cdg-hybrid/cdginc/p_gmmrr.h @ 636:57e67ca2e1cb

pcmdata.c: default +CGMI to "FreeCalypso" and +CGMM to model The present change has no effect whatsoever on Falconia-made and Openmoko-made devices on which /pcm/CGMI and /pcm/CGMM files have been programmed in FFS with sensible ID strings by the respective factories, but what should AT+CGMI and AT+CGMM queries return when the device is a Huawei GTM900 or Tango modem that has been converted to FreeCalypso with a firmware change? Before the present change they would return compiled-in defaults of "<manufacturer>" and "<model>", respectively; with the present change the firmware will self-identify as "FreeCalypso GTM900-FC" or "FreeCalypso Tango" on the two respective targets. This firmware identification will become important if someone incorporates an FC-converted GTM900 or Tango modem into a ZeroPhone-style smartphone where some high-level software like ofono will be talking to the modem and will need to properly identify this modem as FreeCalypso, as opposed to some other AT command modem flavor with different quirks. In technical terms, the compiled-in default for the AT+CGMI query (which will always be overridden by the /pcm/CGMI file in FFS if one is present) is now "FreeCalypso" in all configs on all targets; the compiled-in default for the AT+CGMM query (likewise always overridden by /pcm/CGMM if present) is "GTM900-FC" if CONFIG_TARGET_GTM900 or "Tango" if CONFIG_TARGET_TANGO or the original default of "<model>" otherwise.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 19 Jan 2020 20:14:58 +0000
parents e7a67accfad9
children
line wrap: on
line source

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : p_gmmrr.h                                                      |
| SOURCE  : "sap\gmmrr.pdf"                                                |
| LastModified : "2003-09-02"                                              |
| IdAndVersion : "8441.101.03.025"                                         |
| SrcFileTime  : "Thu Nov 29 09:42:28 2007"                                |
| Generated by CCDGEN_2.5.5A on Fri Oct 14 21:41:52 2016                   |
|           !!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 P_GMMRR_H
#define P_GMMRR_H


#define CDG_ENTER__P_GMMRR_H

#define CDG_ENTER__FILENAME _P_GMMRR_H
#define CDG_ENTER__P_GMMRR_H__FILE_TYPE CDGINC
#define CDG_ENTER__P_GMMRR_H__LAST_MODIFIED _2003_09_02
#define CDG_ENTER__P_GMMRR_H__ID_AND_VERSION _8441_101_03_025

#define CDG_ENTER__P_GMMRR_H__SRC_FILE_TIME _Thu_Nov_29_09_42_28_2007

#include "CDG_ENTER.h"

#undef CDG_ENTER__P_GMMRR_H

#undef CDG_ENTER__FILENAME


#include "p_gmmrr.val"

#ifndef __T_imsi__
#define __T_imsi__
/*
 * mobile identity
 * CCDGEN:WriteStruct_Count==1592
 */
typedef struct
{
  U8                        v_mid;                    /*<  0:  1> valid flag                                         */
  U8                        id_type;                  /*<  1:  1> type of identity                                   */
  U8                        id[MAX_DIGITS];           /*<  2: 16> IMSI digits                                        */
  U8                        _align0;                  /*< 18:  1> alignment                                          */
  U8                        _align1;                  /*< 19:  1> alignment                                          */
  U32                       tmsi_dig;                 /*< 20:  4> TMSI digits                                        */
} T_imsi;
#endif

#ifndef __T_plmn__
#define __T_plmn__
/*
 * PLMN identification
 * CCDGEN:WriteStruct_Count==1593
 */
typedef struct
{
  U8                        v_plmn;                   /*<  0:  1> Valid Flag                                         */
  U8                        mcc[SIZE_MCC];            /*<  1:  3> Mobile Country Code                                */
  U8                        mnc[SIZE_MNC];            /*<  4:  3> Mobile Network Code                                */
  U8                        _align0;                  /*<  7:  1> alignment                                          */
} T_plmn;
#endif

#ifndef __T_rai__
#define __T_rai__
/*
 * routing area identifier
 * CCDGEN:WriteStruct_Count==1594
 */
typedef struct
{
  T_plmn                    plmn;                     /*<  0:  8> PLMN identification                                */
  U16                       lac;                      /*<  8:  2> location area code                                 */
  U8                        rac;                      /*< 10:  1> routing area code                                  */
  U8                        _align0;                  /*< 11:  1> alignment                                          */
} T_rai;
#endif

#ifndef __T_cell_env__
#define __T_cell_env__
/*
 * current location of the mobile equipment
 * CCDGEN:WriteStruct_Count==1595
 */
typedef struct
{
  T_rai                     rai;                      /*<  0: 12> routing area identifier                            */
  U16                       cid;                      /*< 12:  2> cell identification                                */
  U8                        _align0;                  /*< 14:  1> alignment                                          */
  U8                        _align1;                  /*< 15:  1> alignment                                          */
} T_cell_env;
#endif

#ifndef __T_cell_info__
#define __T_cell_info__
/*
 * Cell information
 * CCDGEN:WriteStruct_Count==1596
 */
typedef struct
{
  T_cell_env                cell_env;                 /*<  0: 16> current location of the mobile equipment           */
  U8                        service_state;            /*< 16:  1> Service state                                      */
  U8                        net_mode;                 /*< 17:  1> Network operation mode                             */
  U8                        rt;                       /*< 18:  1> This parameter indicates the radio access technology available in the cell.  */
  U8                        _align0;                  /*< 19:  1> alignment                                          */
} T_cell_info;
#endif


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

#ifndef __T_GMMRR_ASSIGN_REQ__
#define __T_GMMRR_ASSIGN_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1597
 */
typedef struct
{
  U32                       old_tlli;                 /*<  0:  4> old temporary logical link identifier              */
  U32                       new_tlli;                 /*<  4:  4> new temporary logical link identifier              */
  U32                       old_ptmsi;                /*<  8:  4> old ptmsi                                          */
  U32                       new_ptmsi;                /*< 12:  4> new ptmsi                                          */
  T_imsi                    imsi;                     /*< 16: 24> mobile identity                                    */
  T_rai                     rai;                      /*< 40: 12> routing area identifier                            */
} T_GMMRR_ASSIGN_REQ;
#endif

#ifndef __T_GMMRR_ENABLE_REQ__
#define __T_GMMRR_ENABLE_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1598
 */
typedef struct
{
  U8                        mobile_class;             /*<  0:  1> Mobile Class                                       */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U16                       acc_contr_class;          /*<  2:  2> Access Control Class                               */
  U16                       split_pg_cycle;           /*<  4:  2> Split paging cycle (the value, NOT the code)       */
  U8                        spgc_ccch_supp;           /*<  6:  1> Split paging cycle support on CCCH                 */
  U8                        gmmrr_non_drx_timer;      /*<  7:  1> non-DRX timer                                      */
} T_GMMRR_ENABLE_REQ;
#endif

#ifndef __T_GMMRR_DISABLE_REQ__
#define __T_GMMRR_DISABLE_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1599
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_GMMRR_DISABLE_REQ;
#endif

#ifndef __T_GMMRR_CELL_IND__
#define __T_GMMRR_CELL_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1600
 */
typedef struct
{
  T_cell_info               cell_info;                /*<  0: 20> Cell information                                   */
} T_GMMRR_CELL_IND;
#endif

#ifndef __T_GMMRR_READY_REQ__
#define __T_GMMRR_READY_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1601
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_GMMRR_READY_REQ;
#endif

#ifndef __T_GMMRR_STANDBY_REQ__
#define __T_GMMRR_STANDBY_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1602
 */
typedef struct
{
  U8                        standby_cause;            /*<  0:  1> standby cause                                      */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_GMMRR_STANDBY_REQ;
#endif

#ifndef __T_GMMRR_PAGE_IND__
#define __T_GMMRR_PAGE_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1603
 */
typedef struct
{
  U8                        page_id;                  /*<  0:  1> Page ID                                            */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_GMMRR_PAGE_IND;
#endif

#ifndef __T_GMMRR_CS_PAGE_IND__
#define __T_GMMRR_CS_PAGE_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1604
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_GMMRR_CS_PAGE_IND;
#endif

#ifndef __T_GMMRR_CS_PAGE_RES__
#define __T_GMMRR_CS_PAGE_RES__
/*
 * 
 * CCDGEN:WriteStruct_Count==1605
 */
typedef struct
{
  U8                        response;                 /*<  0:  1> CS Paging respnonse                                */
  U8                        susp_gprs;                /*<  1:  1> suspend GPRS                                       */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
} T_GMMRR_CS_PAGE_RES;
#endif

#ifndef __T_GMMRR_SUSPEND_REQ__
#define __T_GMMRR_SUSPEND_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1606
 */
typedef struct
{
  U8                        susp_gprs;                /*<  0:  1> suspend GPRS                                       */
  U8                        gmmrr_susp_cause;         /*<  1:  1> suspension cause                                   */
  U8                        _align0;                  /*<  2:  1> alignment                                          */
  U8                        _align1;                  /*<  3:  1> alignment                                          */
} T_GMMRR_SUSPEND_REQ;
#endif

#ifndef __T_GMMRR_SUSPEND_CNF__
#define __T_GMMRR_SUSPEND_CNF__
/*
 * 
 * CCDGEN:WriteStruct_Count==1607
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_GMMRR_SUSPEND_CNF;
#endif

#ifndef __T_GMMRR_RESUME_REQ__
#define __T_GMMRR_RESUME_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1608
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_GMMRR_RESUME_REQ;
#endif

#ifndef __T_GMMRR_ATTACH_STARTED_REQ__
#define __T_GMMRR_ATTACH_STARTED_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1609
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_GMMRR_ATTACH_STARTED_REQ;
#endif

#ifndef __T_GMMRR_ATTACH_FINISHED_REQ__
#define __T_GMMRR_ATTACH_FINISHED_REQ__
/*
 * 
 * CCDGEN:WriteStruct_Count==1610
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_GMMRR_ATTACH_FINISHED_REQ;
#endif

#ifndef __T_GMMRR_CELL_RES__
#define __T_GMMRR_CELL_RES__
/*
 * 
 * CCDGEN:WriteStruct_Count==1611
 */
typedef struct
{
  U8                        cu_cause;                 /*<  0:  1> Cell Update Cause                                  */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_GMMRR_CELL_RES;
#endif

#ifndef __T_GMMRR_CR_IND__
#define __T_GMMRR_CR_IND__
/*
 * 
 * CCDGEN:WriteStruct_Count==1612
 */
typedef struct
{
  U8                        dummy;                    /*<  0:  1> no parameters                                      */
} T_GMMRR_CR_IND;
#endif


#include "CDG_LEAVE.h"


#endif