FreeCalypso > hg > fc-magnetite
view cdg211/prim/l1test.pdf @ 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
;******************************************************************************** ;*** File : l1test.pdf ;*** Creation : Fri Jun 08 13:57:35 CST 2007 ;*** XSLT Processor : Apache Software Foundation / http://xml.apache.org/xalan-j / supports XSLT-Ver: 1 ;*** Copyright : (c) Texas Instruments AG, Berlin Germany 2002 ;******************************************************************************** ;*** Document Type : Service Access Point Specification ;*** Document Name : l1test ;*** Document No. : 8010.148.03.003 ;*** Document Date : 2003-06-06 ;*** Document Status: BEING_PROCESSED ;*** Document Author: AGR ;******************************************************************************** PRAGMA SRC_FILE_TIME "Fri Dec 19 14:04:50 2003" PRAGMA LAST_MODIFIED "2003-06-06" PRAGMA ID_AND_VERSION "8010.148.03.003" PRAGMA PREFIX L1TEST ; Prefix for this document PRAGMA ALLWAYS_ENUM_IN_VAL_FILE NO ; Enumeration values in value file PRAGMA ENABLE_GROUP NO ; Enable h-file grouping PRAGMA COMPATIBILITY_DEFINES NO ; Compatible to the old #defines CONST TEST_BUFFER_SIZE 1000 ; Test data buffer size CONST MAX_TIMESLOTS 8 ; Defines the maximum number of timeslots per frame CONST BURST_PER_BLOCK 4 ; Number of bursts that compose a block VAR chn_mode "Channel mode" B VAR valid_flag "Valid flag for received data" B VAR d_ra_conf "Traffic control register" S VAR d_ra_act "Activity word" S VAR d_fax "Fax status and parameter word" S VAR d_ra_statu "Rate adaptation status word for uplink" S VAR d_ra_statd "Rate adaptation status word for downlink" S VAR crc_error "CRC error" B VAR bcch_level "BCCH level" C VAR radio_freq "Radio frequency" S VAR burst_level "Burst level" C VAR pch "PCH" B VAR assignment_id "Assignment Id" B VAR tx_data_no "Tx data number" B VAR fn "Frame number" L VAR timing_advance_value "Timing advance value" B VAR allocation_exhausted "Allocation exhausted" B VAR rlc_blocks_sent "RLC blocks sent" B VAR last_poll_response "Last poll response" B ; L1TEST_CALL_MPHC_READ_DCCH 0x8000409B ; L1TEST_RETURN_MPHC_READ_DCCH 0x8000009B ; L1TEST_CALL_MPHC_DCCH_DOWNLINK 0x8001409B ; L1TEST_RETURN_MPHC_DCCH_DOWNLINK 0x8001009B ; L1TEST_CALL_MPHC_DATA_UL 0x8002409B ; L1TEST_RETURN_MPHC_DATA_UL 0x8002009B ; L1TEST_CALL_MPHC_DATA_DL 0x8003409B ; L1TEST_RETURN_MPHC_DATA_DL 0x8003009B ; L1TEST_CALL_MPHP_POWER_CONTROL 0x8004409B ; L1TEST_RETURN_MPHP_POWER_CONTROL 0x8004009B ; L1TEST_CALL_MPHP_UPLINK 0x8005409B ; L1TEST_RETURN_MPHP_UPLINK 0x8005009B ; L1TEST_CALL_MPHP_DOWNLINK 0x8006409B ; L1TEST_RETURN_MPHP_DOWNLINK 0x8006009B PRIM L1TEST_CALL_MPHC_READ_DCCH 0x8000409B { chn_mode ; Channel mode } PRIM L1TEST_RETURN_MPHC_READ_DCCH 0x8000009B { EXTERN @p_mphc - l2_frame@ l2_frame ; L2 radio frame } PRIM L1TEST_CALL_MPHC_DCCH_DOWNLINK 0x8001409B { EXTERN @p_mphc - l2_frame@ l2_frame ; L2 radio frame valid_flag ; Valid flag for received data } PRIM L1TEST_RETURN_MPHC_DCCH_DOWNLINK 0x8001009B { } PRIM L1TEST_CALL_MPHC_DATA_UL 0x8002409B { } PRIM L1TEST_RETURN_MPHC_DATA_UL 0x8002009B { EXTERN @p_mphc - l2_frame@ l2_frame ; L2 radio frame d_ra_conf ; Traffic control register d_ra_act ; Activity word d_ra_statu ; Rate adaptation status word d_fax ; Fax status and parameter word } PRIM L1TEST_CALL_MPHC_DATA_DL 0x8003409B { EXTERN @p_mphc - l2_frame@ l2_frame ; L2 radio frame d_ra_act ; Activity word d_ra_statd ; Rate adaptation status word } PRIM L1TEST_RETURN_MPHC_DATA_DL 0x8003009B { } PRIM L1TEST_CALL_MPHP_POWER_CONTROL 0x8004409B { assignment_id ; Assignment Id crc_error ; CRC error bcch_level ; BCCH level radio_freq [BURST_PER_BLOCK] ; Radio frequency burst_level [BURST_PER_BLOCK] ; Burst level } PRIM L1TEST_RETURN_MPHP_POWER_CONTROL 0x8004009B { pch [MAX_TIMESLOTS] ; PCH } PRIM L1TEST_CALL_MPHP_UPLINK 0x8005409B { assignment_id ; Assignment Id tx_data_no ; Tx data number fn ; Frame number timing_advance_value ; Timing advance value allocation_exhausted ; Allocation exhausted } PRIM L1TEST_RETURN_MPHP_UPLINK 0x8005009B { EXTERN @p_mac - ul_poll_resp@ ul_poll_resp [4] ; UL poll response EXTERN @p_mac - ul_data@ ul_data [4] ; UL data } PRIM L1TEST_CALL_MPHP_DOWNLINK 0x8006409B { assignment_id ; Assignment Id fn ; Frame number EXTERN @p_mac - dl_data@ dl_data [0..4] ; DL data rlc_blocks_sent ; RLC blocks sent last_poll_response ; Last poll response } PRIM L1TEST_RETURN_MPHP_DOWNLINK 0x8006009B { }