view src/aci2/bmi/mmiWapFfs.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 3c2acfa1a72f
children
line wrap: on
line source

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

					CONDAT (UK)

********************************************************************************                                                                              

 This software product is the property of Condat (UK) Ltd and may not be
 disclosed to any third party without the express permission of the owner.                                 
                                                                              
********************************************************************************

 $Project name:                                                   
 $Project code:	                                                           
 $Module:		
 $File:		    MmiWapFfs.h
 $Revision:		                                                      
                                                                              
 $Author:		Condat(UK)                                                         
 $Date:		                                                          
                                                                               
********************************************************************************
                                                                              
 Description:
 	Data structures, constants and function prototypes for WAP flash handling.
                        
********************************************************************************

 $History: MmiWapFfs.h

     May 11 2005  REF:  MMI-SPR-29887  x0012849
     To Implement the deferred MMS retrieval.
	15/05/2003 - SPR#1983 - SH - Updated to latest from 1.6.3 version.
	   
 $End

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

#ifndef _DEF_MMI_FFS_H_
#define _DEF_MMI_FFS_H_

/* BEGIN ADD: Sumit : Req ID: : 31-Mar-2005*/
#ifndef NEPTUNE_BOARD
/* END ADD: Sumit : Req ID: : 31-Mar-2005*/
#include "ffs/ffs.h"
/* BEGIN ADD: Sumit : Req ID: : 31-Mar-2005*/
#else
#include "ffs.h"
#endif
/* END ADD: Sumit : Req ID: : 31-Mar-2005*/

#ifndef ATBDATA
#include "ATBData.h"
#endif

/* FlashDataWap - Data structure for WAP Data file */
 
typedef struct
{
	UBYTE			ProfileId;				/* Last profile used */
	UBYTE			Status;					/* Stores status flags, inc save history, scale images */
	UBYTE			no_of_profiles;			/* Number of profiles stored */
	UBYTE			no_of_history;			/* Number of history entries */
	USHORT 			History[MAX_HISTORY][CARD_TITLE_MAX_LEN+NUMBER_PADDING+1];		/* History card names */
	char			HistoryURL[MAX_HISTORY][URL_MAX_LEN+1];			/* History URLs */
	UBYTE			no_of_bookmarks;									/* Number of bookmarks */
	USHORT 			Bookmarks[MAX_BOOKMARKS][CARD_TITLE_MAX_LEN+1];	/* Bookmark card names */
	char			BookmarksURL[MAX_BOOKMARKS][URL_MAX_LEN+1];		/* Bookmark URLs */
} FlashDataWap;

/* FlashDataWapProfiles - Data structure for WAP Profiles file */

typedef struct
{
	T_WAP_PROFILE	Profile[MAX_PROFILES];
} FlashDataWapProfiles;

#ifdef FF_MMI_MMS
//TISHMMS Project
// May 11 2005  REF:  MMI-SPR-29887  x0012849
// Structure used to store the MMS retrieval type
typedef struct
{
    BOOL  retrieval_type;  // 0= Immediate 1= Deferred.
} FlashDataMmsRetrievalType;
typedef struct
{
    T_MMS_PROFILE   Profile[MAX_PROFILES];
} FlashDataMmsProfiles;
#endif

extern FlashDataWap *WapData;
extern FlashDataWapProfiles *WapProfilesData;

#ifdef FF_MMI_MMS
//TISHMMS Project
extern FlashDataMmsProfiles *MmsProfilesData;
#endif

/* Flash access routines */

T_FFS_RET flash_wap_init();
T_FFS_RET flash_wap_write();
T_FFS_SIZE flash_wap_read();


#ifdef FF_MMI_MMS
//TISHMMS Project
 // May 11 2005  REF:  MMI-SPR-29887  x0012849
 // prototypes of 2 functions
T_FFS_SIZE flash_mms_retrieval_type_read(BOOL *RetrievalType); 
T_FFS_RET flash_mms_retrieval_type_write(BOOL RetrievalType);  
T_FFS_SIZE flash_mms_read();
T_FFS_RET flash_mms_write();
#endif

#endif