view src/g23m-gprs/grlc/grlc_f.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 219afcfc6250
children
line wrap: on
line source

/* 
+----------------------------------------------------------------------------- 
|  Project :  GPRS (8441)
|  Modul   :  GRLC
+----------------------------------------------------------------------------- 
|  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 grlc_f.c .
+----------------------------------------------------------------------------- 
*/ 

#ifndef GRLC_F_H
#define GRLC_F_H

 
#define END_OF_LIST 0xff     /* grlc_delete_prim                          */  
#define DELETE_MESSAGE 0xff  /* grlc_ccd_error_handling grlc_decode_grlc  */
#define COMPUTE_DATA   0x00  /* grlc_prbs  testmode                       */
#define INITIALIZE     0x01  /* grlc_prbs  testmode                       */

/*****************************************************************************************************************************/

EXTERN ULONG    grlc_buffer2ulong                   ( BUF_cr_tlli *tlli                                                           );  /*  BOTH_ENT  */
EXTERN void     grlc_init                           ( void                                                                        );
EXTERN void     grlc_delete_prim                    ( void                                                                        ); 
EXTERN UBYTE    grlc_decode_grlc                    ( T_MSGBUF *  msg_ptr_i                                                       );
EXTERN void     grlc_encode_ctrl                    ( UBYTE * ptr_in_i, T_MSGBUF * ptr_out_i, UBYTE r_bit_i                       );
EXTERN void     grlc_prim_put                       ( UBYTE * liststart_i, UBYTE object_i, UBYTE pos_i                            );
EXTERN UBYTE    grlc_prim_get_first                 ( UBYTE * liststart_i                                                         );
EXTERN ULONG    grlc_calc_new_poll_pos              ( ULONG fn_i, UBYTE rrbp_i                                                    );  /*  BOTH_ENT   */
EXTERN UBYTE  * grlc_set_packet_ctrl_ack            ( void                                                                        );  /*  BOTH_ENT?  */
EXTERN void     grlc_send_access_burst              ( UBYTE tn_i                                                                  );
EXTERN void     grlc_send_normal_burst              ( UBYTE * struct_data, UBYTE * encoded_data, UBYTE tn_i                       );
EXTERN void     grlc_del_sent_poll                  ( void                                                                        );
EXTERN void     grlc_save_poll_pos                  ( ULONG fn_i, USHORT tn_i, UBYTE rrbp_i, UBYTE poll_type_i, UBYTE pctrl_ack_i );
EXTERN ULONG    grlc_decode_tbf_start_rel           ( ULONG start_fn, USHORT rel_pos                                              );
EXTERN void     grlc_get_sdu_len_and_used_ts        ( T_RLC_VALUES * values                                                       );
EXTERN BOOL     grlc_check_dist                     ( ULONG high_i, ULONG low_i, ULONG dist_i                                     );
EXTERN void     grlc_handle_poll_pos                ( ULONG current_fn                                                            );
EXTERN void     grlc_send_rem_poll_pos              ( ULONG current_fn                                                            );
EXTERN UBYTE    grlc_test_mode_active               ( void                                                                        );
EXTERN void     grlc_prbs                           ( UBYTE action_i, UBYTE lenght_i, UBYTE * ptr_i                               );  /*  Testmode  */
EXTERN void     grlc_trace_tbf_par                  ( UBYTE tbf_index                                                             );
EXTERN void     grlc_set_buf_tlli                   ( BUF_tlli_value *buf_tlli_o, ULONG tlli_i                                    );  /*  BOTH_ENT  */
EXTERN void     grlc_set_tlli                       ( USHORT * l_tlli, USHORT * o_tlli, UBYTE  * b_tlli, ULONG    tlli            );  /*  BOTH_ENT  */
EXTERN void     grlc_encode_ul_ctrl_block           ( UBYTE *ul_ctrl_block, UBYTE *ul_ctrl_data                                   );  /*  BOTH_ENT  */
EXTERN BOOL     grlc_check_if_tbf_start_is_elapsed  ( ULONG start_fn, ULONG current_fn                                            );
EXTERN void     grlc_activate_tfi                   ( ULONG fn_i                                                                  );
EXTERN T_TIME   grlc_t_status                       ( USHORT t_index                                                              );
EXTERN void     grlc_enter_standby_state            ( void                                                                        );
EXTERN void     grlc_enter_ready_state              ( void                                                                        );

#endif /* !GRLC_F_H */