FreeCalypso > hg > fc-magnetite
view cdg211/cdginc/m_sm.h @ 600:8f50b202e81f
board preprocessor conditionals: prep for more FC hw in the future
This change eliminates the CONFIG_TARGET_FCDEV3B preprocessor symbol and
all preprocessor conditionals throughout the code base that tested for it,
replacing them with CONFIG_TARGET_FCFAM or CONFIG_TARGET_FCMODEM. These
new symbols are specified as follows:
CONFIG_TARGET_FCFAM is intended to cover all hardware designs created by
Mother Mychaela under the FreeCalypso trademark. This family will include
modem products (repackagings of the FCDEV3B, possibly with RFFE or even
RF transceiver changes), and also my desired FreeCalypso handset product.
CONFIG_TARGET_FCMODEM is intended to cover all FreeCalypso modem products
(which will be firmware-compatible with the FCDEV3B if they use TI Rita
transceiver, or will require a different fw build if we switch to one of
Silabs Aero transceivers), but not the handset product. Right now this
CONFIG_TARGET_FCMODEM preprocessor symbol is used to conditionalize
everything dealing with MCSI.
At the present moment the future of FC hardware evolution is still unknown:
it is not known whether we will ever have any beyond-FCDEV3B hardware at all
(contingent on uncertain funding), and if we do produce further FC hardware
designs, it is not known whether they will retain the same FIC modem core
(triband), if we are going to have a quadband design that still retains the
classic Rita transceiver, or if we are going to switch to Silabs Aero II
or some other transceiver. If we produce a quadband modem that still uses
Rita, it will run exactly the same fw as the FCDEV3B thanks to the way we
define TSPACT signals for the RF_FAM=12 && CONFIG_TARGET_FCFAM combination,
and the current fcdev3b build target will be renamed to fcmodem. OTOH, if
that putative quadband modem will be Aero-based, then it will require a
different fw build target, the fcdev3b target will stay as it is, and the
two targets will both define CONFIG_TARGET_FCFAM and CONFIG_TARGET_FCMODEM,
but will have different RF_FAM numbers. But no matter which way we are
going to evolve, it is not right to have conditionals on CONFIG_TARGET_FCDEV3B
in places like ACI, and the present change clears the way for future
evolution.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 01 Apr 2019 01:05:24 +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