FreeCalypso > hg > fc-magnetite
view src/aci2/aci/psa_t30.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 | 93999a60b835 |
children |
line wrap: on
line source
/* +----------------------------------------------------------------------------- | Project : GSM-PS (6147) | Modul : PSA_T30 +----------------------------------------------------------------------------- | Copyright 2002 Texas Instruments Berlin, AG | All rights reserved. | | This file is confidential and a trade secret of Texas | Instruments Berlin, AG | The receipt of or possession of this file does not convey | any rights to reproduce or disclose its contents or to | manufacture, use, or sell anything it may describe, in | whole, or in part, without the specific written consent of | Texas Instruments Berlin, AG. +----------------------------------------------------------------------------- | Purpose : Definitions for the protocol stack adapter T30 +----------------------------------------------------------------------------- */ #ifndef PSA_T30_H #define PSA_T30_H #ifdef FF_FAX #define REPORT_MAX 128 #define MSG_SIZE_BITS 2880 /*==== CONSTANTS ==================================================*/ typedef enum { NO_VLD_FS = 0, /* not a valid fax status */ FS_IDL, /* fax idle */ FS_SND_DOC, /* sending fax document */ FS_RCV_DOC, /* receiving fax document */ FS_DOC_TRF /* fax document transfered */ } T_T30_FXST; /*==== TYPES ======================================================*/ typedef struct { UBYTE dir; USHORT l_buf; UBYTE buf[REPORT_MAX]; } T_Report; typedef struct T30ShrdParm { SHORT cId; /* related call id */ UBYTE faxStat; /* status of fax */ USHORT trans_rate; /* t30_activate_req, t30_modify_req */ UBYTE half_rate; /* t30_activate_req, t30_modify_req */ UBYTE threshold; /* t30_activate_req */ UBYTE bitord; /* t30_activate_req */ USHORT frames_per_prim; /* t30_activate_req */ USHORT tbs; /* t30_activate_cnf */ USHORT rbs; /* t30_activate_cnf */ T_hdlc_info hdlc_rcv; /* t30_cap_ind, t30_cap_req */ T_hdlc_info hdlc_snd; /* t30_cap_ind, t30_cap_req */ UBYTE sgn_rcv; /* t30_sgn_ind */ UBYTE sgn_snd; /* t30_sgn_req */ UBYTE cmpl; /* t30_cmpl_ind */ UBYTE hdlc_report; /* t30_config_req */ U16 test_mode; /* t30_config_req */ USHORT err_cause; /* t30_error_ind */ USHORT eol; /* t30_info_ind */ T_Report report; /* t30_report_ind */ UBYTE bcs_phase; /* ks */ UBYTE msg_phase; BOOL T30_is_activated; } T_T30_SHRD_PRM; typedef struct T30TstPrmRef { const char * key; /* keyword string */ UBYTE id; /* corresponding id */ } T30_TSTPRM_REF; /*==== PROTOTYPES =================================================*/ EXTERN SHORT psaT30_Ppm (void); #ifdef DTI EXTERN void psaT30_Dti_Req (T_DTI_CONN_LINK_ID link_id, UBYTE dti_conn); #endif /* DTI */ #ifdef FF_FAX EXTERN void psaT30_Init (void); #endif EXTERN SHORT psaT30_Ppm (void); EXTERN void psaT30_Modify (void); EXTERN void psaT30_Disconnect (void); EXTERN void psaT30_Config (void); EXTERN void psaT30_Capabilities (void); EXTERN void psaT30_Activate (void); EXTERN void psaT30_Deactivate (void); #ifdef TRACING EXTERN void psaT30_shrPrmDump ( void ); #endif /*==== EXPORT =====================================================*/ #ifdef PSA_T30F_C GLOBAL T_T30_SHRD_PRM t30ShrdPrm; #else EXTERN T_T30_SHRD_PRM t30ShrdPrm; #endif /* PSA_T30F_C */ #endif /* FF_FAX */ #endif /* PSA_T30_H */ /*==== EOF =======================================================*/