FreeCalypso > hg > fc-magnetite
view cdg211/cdginc/p_8010_147_l1_include.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 : p_8010_147_l1_include.val | | SOURCE : "__out__\g23m_dfile\prim\8010_147_L1_include.pdf" | | LastModified : "2003-07-28" | | IdAndVersion : "8010.147.03.002" | | SrcFileTime : "Mon Sep 26 14:30:58 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: YES * ENABLE_GROUP: NO * CAPITALIZE_TYPENAME: YES */ #ifndef P_8010_147_L1_INCLUDE_VAL #define P_8010_147_L1_INCLUDE_VAL #define CDG_ENTER__P_8010_147_L1_INCLUDE_VAL #define CDG_ENTER__FILENAME _P_8010_147_L1_INCLUDE_VAL #define CDG_ENTER__P_8010_147_L1_INCLUDE_VAL__FILE_TYPE CDGINC #define CDG_ENTER__P_8010_147_L1_INCLUDE_VAL__LAST_MODIFIED _2003_07_28 #define CDG_ENTER__P_8010_147_L1_INCLUDE_VAL__ID_AND_VERSION _8010_147_03_002 #define CDG_ENTER__P_8010_147_L1_INCLUDE_VAL__SRC_FILE_TIME _Mon_Sep_26_14_30_58_2005 #include "CDG_ENTER.h" #undef CDG_ENTER__P_8010_147_L1_INCLUDE_VAL #undef CDG_ENTER__FILENAME /* * Enum to value table VAL_rf_chan_cnt * CCDGEN:WriteEnum_Count==1 */ #ifndef __T_VAL_RF_CHAN_CNT__ #define __T_VAL_RF_CHAN_CNT__ typedef enum { VAL_RF_CHAN_CNT__RANGE_MIN = 0x0, /* minimum */ VAL_RF_CHAN_CNT__RANGE_MAX = 0x40 /* maximum */ }T_VAL_RF_CHAN_CNT; #endif /* * Enum to value table VAL_radio_freq * CCDGEN:WriteEnum_Count==2 */ #ifndef __T_VAL_RADIO_FREQ__ #define __T_VAL_RADIO_FREQ__ typedef enum { GSM900__RANGE_MIN = 0x1, /* Layer 1 encoded frequency */ GSM900__RANGE_MAX = 0x7c, /* Layer 1 encoded frequency */ GSM900E__RANGE_MIN = 0x1, /* Layer 1 encoded frequency */ GSM900E__RANGE_MAX = 0xae, /* Layer 1 encoded frequency */ GSM1800_GSM1900__RANGE_MIN = 0x200, /* Layer 1 encoded frequency */ GSM1800_GSM1900__RANGE_MAX = 0x32a, /* Layer 1 encoded frequency */ GSM1800__RANGE_MIN = 0x32b, /* Layer 1 encoded frequency */ GSM1800__RANGE_MAX = 0x375, /* Layer 1 encoded frequency */ GSM900_GSM1800__RANGE_MIN = 0x1, /* Layer 1 encoded frequency */ GSM900_GSM1800__RANGE_MAX = 0x1f2, /* Layer 1 encoded frequency */ GSM900E_GSM1800__RANGE_MIN = 0x1, /* Layer 1 encoded frequency */ GSM900E_GSM1800__RANGE_MAX = 0x224, /* Layer 1 encoded frequency */ GSM850__RANGE_MIN = 0x80, /* Layer 1 encoded frequency */ GSM850__RANGE_MAX = 0xfb, /* Layer 1 encoded frequency */ GSM850_GSM1900__RANGE_MIN = 0x1, /* Layer 1 encoded frequency */ GSM850_GSM1900__RANGE_MAX = 0x1a8 /* Layer 1 encoded frequency */ }T_VAL_RADIO_FREQ; #endif /* * Enum to value table VAL_error_flag * CCDGEN:WriteEnum_Count==3 */ #ifndef __T_VAL_ERROR_FLAG__ #define __T_VAL_ERROR_FLAG__ typedef enum { VALID_BLOCK = 0x0, /* Valid block received */ INVALID_BLOCK = 0x1 /* Invalid block received */ }T_VAL_ERROR_FLAG; #endif /* * Enum to value table VAL_fn * CCDGEN:WriteEnum_Count==4 */ #ifndef __T_VAL_FN__ #define __T_VAL_FN__ typedef enum { VAL_FN__RANGE_MIN = 0x0, /* minimum */ VAL_FN__RANGE_MAX = 0x296fff /* maximum */ }T_VAL_FN; #endif /* * Enum to value table VAL_fn_offset * CCDGEN:WriteEnum_Count==5 */ #ifndef __T_VAL_FN_OFFSET__ #define __T_VAL_FN_OFFSET__ typedef enum { VAL_FN_OFFSET__RANGE_MIN = 0x0, /* minimum */ VAL_FN_OFFSET__RANGE_MAX = 0x296fff /* maximum */ }T_VAL_FN_OFFSET; #endif /* * Enum to value table VAL_hsn * CCDGEN:WriteEnum_Count==6 */ #ifndef __T_VAL_HSN__ #define __T_VAL_HSN__ typedef enum { VAL_HSN__RANGE_MIN = 0x0, /* minimum */ VAL_HSN__RANGE_MAX = 0x3f /* maximum */ }T_VAL_HSN; #endif /* * Enum to value table VAL_maio * CCDGEN:WriteEnum_Count==7 */ #ifndef __T_VAL_MAIO__ #define __T_VAL_MAIO__ typedef enum { VAL_MAIO__RANGE_MIN = 0x0, /* minimum */ VAL_MAIO__RANGE_MAX = 0x3f /* maximum */ }T_VAL_MAIO; #endif /* * Enum to value table VAL_l2_channel * CCDGEN:WriteEnum_Count==8 */ #ifndef __T_VAL_L2_CHANNEL__ #define __T_VAL_L2_CHANNEL__ typedef enum { L2_CHANNEL_SACCH = 0x1, /* SACCH block (MPHC) */ L2_CHANNEL_SDCCH = 0x2, /* SDCCH block (MPHC) */ L2_CHANNEL_FACCH_H = 0x3, /* FACCH half (MPHC) */ L2_CHANNEL_FACCH_F = 0x4, /* FACCH full (MPHC) */ L2_CHANNEL_CCCH = 0x5, /* CCCH block (MPHC) */ L2_CHANNEL_NBCCH = 0x6, /* Normal BCCH block (MPHC) */ L2_CHANNEL_PCH = 0x7, /* PCH block (MPHC) */ L2_CHANNEL_EPCH = 0x8, /* Extended PCH block (MPHC) */ L2_CHANNEL_CBCH = 0x9, /* CBCH block (MPHC) */ L2_CHANNEL_EBCCH = 0xa, /* Extended BCCH (MPHC) */ L2_PCHANNEL_PCCCH = 0x1, /* PCCCH block (MPHP) */ L2_PCHANNEL_PBCCH = 0x2, /* PBCCH block (MPHP) */ L2_PCHANNEL_PPCH = 0x3, /* PPCH block (MPHP) */ L2_PCHANNEL_PEPCH = 0x4, /* PEPCH block (MPHP) */ L2_PCHANNEL_PACCH = 0x5 /* PACCH block (MPHP) */ }T_VAL_L2_CHANNEL; #endif /* * Enum to value table VAL_page_mode * CCDGEN:WriteEnum_Count==9 */ #ifndef __T_VAL_PAGE_MODE__ #define __T_VAL_PAGE_MODE__ typedef enum { PAGE_NORMAL = 0x0, /* Normal paging */ PAGE_EXT = 0x1, /* Extended paging */ PAGE_REORG = 0x2 /* Paging reorganisation */ }T_VAL_PAGE_MODE; #endif /* * Enum to value table VAL_rxlev * CCDGEN:WriteEnum_Count==10 */ #ifndef __T_VAL_RXLEV__ #define __T_VAL_RXLEV__ typedef enum { RXLEV_NO_INT_MEAS = 0x80 /* Specific value used for value of interference level when no measurement has been performed. */ }T_VAL_RXLEV; #endif /* * Enum to value table VAL_timeslot_no * CCDGEN:WriteEnum_Count==11 */ #ifndef __T_VAL_TIMESLOT_NO__ #define __T_VAL_TIMESLOT_NO__ typedef enum { TIMESLOT_NO__RANGE_MIN = 0x0, /* Range of timeslot number */ TIMESLOT_NO__RANGE_MAX = 0x7, /* Range of timeslot number */ CBCH_TIMESLOT__RANGE_MIN = 0x0, /* Range of timeslot number for CBCH */ CBCH_TIMESLOT__RANGE_MAX = 0x3, /* Range of timeslot number for CBCH */ TN_NOT_PRESENT = 0xff /* Value for not present */ }T_VAL_TIMESLOT_NO; #endif /* * Enum to value table VAL_tsc * CCDGEN:WriteEnum_Count==12 */ #ifndef __T_VAL_TSC__ #define __T_VAL_TSC__ typedef enum { VAL_TSC__RANGE_MIN = 0x0, /* minimum */ VAL_TSC__RANGE_MAX = 0x7 /* maximum */ }T_VAL_TSC; #endif /* * enum to UnionController CHN_SEL_CHOICE * CCDGEN:WriteEnum_Count==13 */ #ifndef __T_CTRL_CHN_SEL_CHOICE__ #define __T_CTRL_CHN_SEL_CHOICE__ typedef enum { is_single = 0x0, is_hopping = 0x1 }T_CTRL_CHN_SEL_CHOICE; #endif /* * user defined constants */ #define MAX_MA_CARRIER (0x40) #define MAX_L2_FRAME_SIZE (0x17) #include "CDG_LEAVE.h" #endif
