view cdg-hybrid/cdginc/p_8010_136_simdrv_sap.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 e7a67accfad9
children
line wrap: on
line source

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : p_8010_136_simdrv_sap.h                                        |
| SOURCE  : "sap\8010_136_SIMDRV_SAP.pdf"                                  |
| LastModified : "2004-06-10"                                              |
| IdAndVersion : "8010.136.03.009"                                         |
| SrcFileTime  : "Thu Nov 29 09:27:56 2007"                                |
| Generated by CCDGEN_2.5.5A on Fri Oct 14 21:41:52 2016                   |
|           !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!!                |
+--------------------------------------------------------------------------+
*/

/* PRAGMAS
 * PREFIX                 : SIMDRV
 * COMPATIBILITY_DEFINES  : NO
 * ALWAYS_ENUM_IN_VAL_FILE: YES
 * ENABLE_GROUP: YES
 * CAPITALIZE_TYPENAME: NO
 */


#ifndef P_8010_136_SIMDRV_SAP_H
#define P_8010_136_SIMDRV_SAP_H


#define CDG_ENTER__P_8010_136_SIMDRV_SAP_H

#define CDG_ENTER__FILENAME _P_8010_136_SIMDRV_SAP_H
#define CDG_ENTER__P_8010_136_SIMDRV_SAP_H__FILE_TYPE CDGINC
#define CDG_ENTER__P_8010_136_SIMDRV_SAP_H__LAST_MODIFIED _2004_06_10
#define CDG_ENTER__P_8010_136_SIMDRV_SAP_H__ID_AND_VERSION _8010_136_03_009

#define CDG_ENTER__P_8010_136_SIMDRV_SAP_H__SRC_FILE_TIME _Thu_Nov_29_09_27_56_2007

#include "CDG_ENTER.h"

#undef CDG_ENTER__P_8010_136_SIMDRV_SAP_H

#undef CDG_ENTER__FILENAME


#include "p_8010_136_simdrv_sap.val"


/*
 * typedef between var and valtab enums
 */
#ifndef __T_SIMDRV_reset_return_val__
#define __T_SIMDRV_reset_return_val__
typedef T_SIMDRV_VAL_reset_return_val T_SIMDRV_reset_return_val;
#endif

#ifndef __T_SIMDRV_len__
#define __T_SIMDRV_len__
typedef T_SIMDRV_VAL_len T_SIMDRV_len;
#endif

#ifndef __T_SIMDRV_sw1_2__
#define __T_SIMDRV_sw1_2__
typedef T_SIMDRV_VAL_sw1_2 T_SIMDRV_sw1_2;
#endif

#ifndef __T_SIMDRV_cla__
#define __T_SIMDRV_cla__
typedef T_SIMDRV_VAL_cla T_SIMDRV_cla;
#endif

#ifndef __T_SIMDRV_ins__
#define __T_SIMDRV_ins__
typedef T_SIMDRV_VAL_ins T_SIMDRV_ins;
#endif

#ifndef __T_SIMDRV_voltage_select__
#define __T_SIMDRV_voltage_select__
typedef T_SIMDRV_VAL_voltage_select T_SIMDRV_voltage_select;
#endif

#ifndef __T_SIMDRV_config_requested__
#define __T_SIMDRV_config_requested__
typedef T_SIMDRV_VAL_config_requested T_SIMDRV_config_requested;
#endif

#ifndef __T_SIMDRV_reader_id__
#define __T_SIMDRV_reader_id__
typedef T_SIMDRV_VAL_reader_id T_SIMDRV_reader_id;
#endif

#ifndef __T_SIMDRV_atr_string_info__
#define __T_SIMDRV_atr_string_info__
/*
 * SIM Card Info
 * CCDGEN:WriteStruct_Count==1283
 */
typedef struct
{
  U8                        c_atr_string;             /*<  0:  1> counter                                            */
  U8                        atr_string[SIMDRV_SIZE_ATR_INFO]; /*<  1: 33> SIM Card Answer to reset string                    */
  U8                        _align0;                  /*< 34:  1> alignment                                          */
  U8                        _align1;                  /*< 35:  1> alignment                                          */
} T_SIMDRV_atr_string_info;
#endif

#ifndef __T_SIMDRV_result_info__
#define __T_SIMDRV_result_info__
/*
 * Result Buffer
 * CCDGEN:WriteStruct_Count==1285
 */
typedef struct
{
  U16                       len;                      /*<  0:  2> T_SIMDRV_len,  Maximum length of expected data     */
  U16                       c_result;                 /*<  2:  2> counter                                            */
  U8                        *result;                  /*<  4:  4> pointer codetransparent to Result byte             */
} T_SIMDRV_result_info;
#endif

#ifndef __T_SIMDRV_data_info__
#define __T_SIMDRV_data_info__
/*
 * Data element info
 * CCDGEN:WriteStruct_Count==1287
 */
typedef struct
{
  U8                        _align0;                  /*<  0:  1> alignment                                          */
  U8                        _align1;                  /*<  1:  1> alignment                                          */
  U8                        _align2;                  /*<  2:  1> alignment                                          */
  U8                        c_data;                   /*<  3:  1> counter                                            */
  U8                        *data;                    /*<  4:  4> pointer codetransparent to Data element            */
} T_SIMDRV_data_info;
#endif

#ifndef __T_SIMDRV_cmd_header__
#define __T_SIMDRV_cmd_header__
/*
 * Transparent command header
 * CCDGEN:WriteStruct_Count==1289
 */
typedef struct
{
  U8                        cla;                      /*<  0:  1> T_SIMDRV_cla,  Class Byte                          */
  U8                        ins;                      /*<  1:  1> T_SIMDRV_ins,  instruction code                    */
  U8                        p1;                       /*<  2:  1> Parameter 1 of the SIM APDU                        */
  U8                        p2;                       /*<  3:  1> Parameter 2 of the SIM APDU                        */
} T_SIMDRV_cmd_header;
#endif

#ifndef __T_SIMDRV_config_characteristics__
#define __T_SIMDRV_config_characteristics__
/*
 * Configuration Characteristics
 * CCDGEN:WriteStruct_Count==1291
 */
typedef struct
{
  U8                        uicc_characteristics;     /*<  0:  1> UICC Characteristics                               */
  U8                        _align0;                  /*<  1:  1> alignment                                          */
  U8                        _align1;                  /*<  2:  1> alignment                                          */
  U8                        _align2;                  /*<  3:  1> alignment                                          */
} T_SIMDRV_config_characteristics;
#endif


/*
 * End of substructure section, begin of primitive definition section
 */

#ifndef __T_SIMDRV_DUMMY__
#define __T_SIMDRV_DUMMY__
/*
 * 
 * CCDGEN:WriteStruct_Count==1293
 */
typedef struct
{
  T_SIMDRV_atr_string_info  *ptr_atr_string_info;     /*<  0:  4> pointer to SIM Card Info                           */
  U8                        reset_return_val;         /*<  4:  1> T_SIMDRV_reset_return_val,  Reset return value     */
  U8                        _align0;                  /*<  5:  1> alignment                                          */
  U8                        _align1;                  /*<  6:  1> alignment                                          */
  U8                        _align2;                  /*<  7:  1> alignment                                          */
  T_SIMDRV_result_info      *ptr_result_info;         /*<  8:  4> pointer to Result Buffer                           */
  U16                       len;                      /*< 12:  2> T_SIMDRV_len,  Maximum length of expected data     */
  U8                        _align3;                  /*< 14:  1> alignment                                          */
  U8                        _align4;                  /*< 15:  1> alignment                                          */
  T_SIMDRV_data_info        *ptr_data_info;           /*< 16:  4> pointer to Data element info                       */
  U16                       sw1_2;                    /*< 20:  2> T_SIMDRV_sw1_2,  Status Words                      */
  U8                        cla;                      /*< 22:  1> T_SIMDRV_cla,  Class Byte                          */
  U8                        ins;                      /*< 23:  1> T_SIMDRV_ins,  instruction code                    */
  T_SIMDRV_cmd_header       cmd_header;               /*< 24:  4> Transparent command header                         */
  U8                        voltage_select;           /*< 28:  1> T_SIMDRV_voltage_select,  Perform Voltage Selection */
  U8                        p1;                       /*< 29:  1> Parameter 1 of the SIM APDU                        */
  U8                        p2;                       /*< 30:  1> Parameter 2 of the SIM APDU                        */
  U8                        config_requested;         /*< 31:  1> T_SIMDRV_config_requested,  Configuration Characteristics requested */
  T_SIMDRV_config_characteristics *ptr_config_characteristics; /*< 32:  4> pointer to Configuration Characteristics           */
  U8                        reader_id;                /*< 36:  1> T_SIMDRV_reader_id,  Reader Id                     */
  U8                        uicc_characteristics;     /*< 37:  1> UICC Characteristics                               */
  U8                        _align5;                  /*< 38:  1> alignment                                          */
  U8                        _align6;                  /*< 39:  1> alignment                                          */
} T_SIMDRV_DUMMY;
#endif


#include "CDG_LEAVE.h"


#endif