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

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : m_grlc.val                                                     |
| SOURCE  : "__out__\g23m_dfile\msg\grlc.mdf"                              |
| LastModified : "2003-03-26"                                              |
| IdAndVersion : "8441.601.99.001"                                         |
| SrcFileTime  : "Thu Feb 17 14:27:10 2005"                                |
| 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_GRLC_VAL
#define M_GRLC_VAL


#define CDG_ENTER__M_GRLC_VAL

#define CDG_ENTER__FILENAME _M_GRLC_VAL
#define CDG_ENTER__M_GRLC_VAL__FILE_TYPE CDGINC
#define CDG_ENTER__M_GRLC_VAL__LAST_MODIFIED _2003_03_26
#define CDG_ENTER__M_GRLC_VAL__ID_AND_VERSION _8441_601_99_001

#define CDG_ENTER__M_GRLC_VAL__SRC_FILE_TIME _Thu_Feb_17_14_27_10_2005

#include "CDG_ENTER.h"

#undef CDG_ENTER__M_GRLC_VAL

#undef CDG_ENTER__FILENAME

#include "m_rr_com.val"   /* Access values independent from the corresponding h-file. */


/*
 * Value constants for VAL_final_alloc
 */
#define NO                             (0x0)      /* not present                    */
#define YES                            (0x1)      /* present                        */

/*
 * Value constants for VAL_msg_type
 */
#define U_GRLC_RESOURCE_REQ_c          (0x5)      /* Packet Resource Request        */
#define U_GRLC_DL_ACK_c                (0x2)      /* Packet Downlink Ack/Nack       */
#define D_GRLC_UL_ACK_c                (0x9)      /* Packet Uplink Ack/Nack         */
#define U_GRLC_CTRL_ACK_c              (0x1)      /* Packet Control Acknowledgement */
#define U_GRLC_UL_DUMMY_c              (0x3)      /* Packet Uplink Dummy Control Block */

/*
 * Value constants for VAL_page_mode
 */
#define NORMAL_PAGING                  (0x0)      /* Normal Paging                  */
#define EXT_PAGING                     (0x1)      /* Extended Paging                */
#define REORG_PAGING                   (0x2)      /* Paging Reorganisation          */
#define SAME_PAGING                    (0x3)      /* Same as before                 */

/*
 * Value constants for VAL_access_type
 */
#define TWO_PHASE                      (0x0)      /* Two Phase Access Request       */
#define PAGE                           (0x1)      /* Page Response                  */
#define CELL_UPDATE                    (0x2)      /* Cell Update                    */
#define MM_PROC                        (0x3)      /* Mobility Management procedure  */

/*
 * Value constants for VAL_chan_coding_cmd
 */
#define VAL_CHAN_CODING_CMD___0        (0x0)      /* CS-1                           */
#define VAL_CHAN_CODING_CMD___1        (0x1)      /* CS-2                           */
#define VAL_CHAN_CODING_CMD___2        (0x2)      /* CS-3                           */
#define VAL_CHAN_CODING_CMD___3        (0x3)      /* CS-4                           */

/*
 * Value constants for VAL_rlc_mode
 */
#define VAL_RLC_MODE___0               (0x0)      /* RLC acknowledged mode          */
#define VAL_RLC_MODE___1               (0x1)      /* RLC unacknowledged mode        */

/*
 * Value constants for VAL_pctrl_ack
 */
#define VAL_PCTRL_ACK___0              (0x0)      /* reserved - this value shall not be sent. If received it shall be interpreted as bit value '1'. */
#define VAL_PCTRL_ACK___1              (0x1)      /* the MS received an RLC/MAC control block addressed to itself and with RBSN = 1, and did not receive an RLC/MAC control block with the same RTI value and RBSN = 0. */
#define VAL_PCTRL_ACK___2              (0x2)      /* the MS received an RLC/MAC control block addressed to itself and with RBSN = 0, and did not receive an RLC/MAC control block with the same RTI value and RBSN = 1. This value is sent irrespective of the value of the FS bit. */
#define VAL_PCTRL_ACK___3              (0x3)      /* the MS received two RLC/MAC blocks with the same RTI value, one with RBSN = 0 and the other with RBSN = 1. */

/*
 * Value constants for VAL_alpha
 */
#define VAL_ALPHA___0                  (0x0)      /* Alpha = 0.0                    */
#define VAL_ALPHA___1                  (0x1)      /* Alpha = 0.1                    */
#define VAL_ALPHA___2                  (0x2)      /* Alpha = 0.2                    */
#define VAL_ALPHA___3                  (0x3)      /* Alpha = 0.3                    */
#define VAL_ALPHA___4                  (0x4)      /* Alpha = 0.4                    */
#define VAL_ALPHA___5                  (0x5)      /* Alpha = 0.5                    */
#define VAL_ALPHA___6                  (0x6)      /* Alpha = 0.6                    */
#define VAL_ALPHA___7                  (0x7)      /* Alpha = 0.7                    */
#define VAL_ALPHA___8                  (0x8)      /* Alpha = 0.8                    */
#define VAL_ALPHA___9                  (0x9)      /* Alpha = 0.9                    */
#define VAL_ALPHA___A                  (0xa)      /* Alpha = 1.0                    */

/*
 * Value constants for VAL_radio_prio
 */
#define VAL_RADIO_PRIO___0             (0x0)      /* Radio Priority 1 (Highest priority) */
#define VAL_RADIO_PRIO___1             (0x1)      /* Radio Priority 2               */
#define VAL_RADIO_PRIO___2             (0x2)      /* Radio Priority 3               */
#define VAL_RADIO_PRIO___3             (0x3)      /* Radio Priority 4 (Lower priority) */

/*
 * Value constants for VAL_llc_pdu_type
 */
#define VAL_LLC_PDU_TYPE___0           (0x0)      /* LLC PDU is SACK or ACK         */
#define VAL_LLC_PDU_TYPE___1           (0x1)      /* LLC PDU is not SACK or ACK     */

/*
 * Value constants for VAL_bl_o_bl_per
 */
#define BLOCKS                         (0x0)      /* ALLOCATION_BITMAP is to be interpreted as blocks */
#define BLOCK_PERIODS                  (0x1)      /* ALLOCATION_BITMAP is to be interpreted as block periods */

/*
 * Value constants for VAL_rbb
 */
#define INVALID                        (0x0)      /* Negative Ack of the RLC data block with BSN=(SSN-bit_nr)mod128 */
#define RECEIVED                       (0x1)      /* Positive Ack of the RLC data block with BSN=(SSN-bit_nr)mod128 */

/*
 * Value constants for VAL_f_ack_ind
 */
#define VAL_F_ACK_IND___0              (0x0)      /* retransmission are requested and the TBF is incomplete */
#define VAL_F_ACK_IND___1              (0x1)      /* no retransmissions are requested and this message indicates acknowledgement of all RLC data in the TBF */

#include "CDG_LEAVE.h"


#endif