📄 hfd.hec
字号:
/******************************************************************************/
/* SCCS: %Z% Name: %M% Date US: %G% %U% Ver.: %I% */
/******************************************************************************/
/*F(***************************************************************************
* File name : hfd.hec
* Project : ROAD RUNNER
* Module :
* Date : (US) %G% %U%
* Version : %I%
* Compiler name and release(s) :
*----------------------------------------------------------------------------*
*----------------------------------------------------------------------------*
* DESCRIPTION
*
*----------------------------------------------------------------------------*
*----------------------------------------------------------------------------*
* FUNCTIONS DEFINED IN THIS FILE
*----------------------------------------------------------------------------*
* Name | Object
*----------------------------------------------------------------------------*
*
*----------------------------------------------------------------------------*
*----------------------------------------------------------------------------*
* EVOLUTION
*----------------------------------------------------------------------------*
* Date | Author | Arnb | Description
*----------------------------------------------------------------------------*
* 03.05.99 | J. SCHWARTZ and N. BERTRAND | XXYYYY | Creation
* 27.10.99 | F. LE GOFF | XXYYYY | Check the file and trunc
* | | | too long lines
*----------------------------------------------------------------------------*
* 15.03.00 | A. HEBE | XXYYYY | Ajout ACCESS_RIGHTS_IHMAUDIO for TAT
*----------------------------------------------------------------------------*
* 25.05.00 | A. HEBE | XXYYYY | Ajout timer pour Ram Fmm
*----------------------------------------------------------------------------*
* 20.07.00 | A. HEBE | XXYYYY | separe les timers des messages dans les enum
*----------------------------------------------------------------------------*
* 25.07.00 | L.Lacheny | XXYYYY | Files management
*---------------------------------------------------------------------------------------*
* 17.10.00 | S. BOISTEAU | |ADD WRITE MESSAGE OF OTP KEY
|Ajout de constantes concernant les status d'閏riture dans la zone OTP and (ACCESS_RIGHTS_SCENARIO) for TAT
*---------------------------------------------------------------------------------------*
* 23.03.01 | S. BOISTEAU | |modify constant for gatum
***************************************************************************)F*/
#ifndef HFD_HEC
#define HFD_HEC
/*Status Eciture dans zone secteur OTP de la flash*/
#define FMM_OTPKEY_OK 0x00
#define FMM_OTP_ALREADY_PROTECTED_BY_PCC 0x01
#define FMM_OTP_WRITE_FAILED 0x02
#define FMM_OTP_PROTECTION_FAILED 0x03
#define FMM_OTPKEY_REJECTED 0x04
#define FMM_OTP_ALREADY_PROTECTED_BY_AMD 0x05
/* LKN MAX_SIZE_RW is defined in ci_hard.opt */
#if defined(TEST_UNIX_FMM) && defined(REG_TESTS_FTR)
/*#define MAX_SIZE_RW 1500*/
#define FMM_MAX_SIZE_RW 1500
#else
/*#define MAX_SIZE_RW 120*/
#define FMM_MAX_SIZE_RW MAX_SIZE_RW
#endif
/* provisoir */
#define MAX_SIZE_READ_WRITE_TABLE MAX_SIZE_RW
#if defined(TFTP_WITH_MEMO_CPR)
#define MAX_BLOCK_DATA 256
#else
#define MAX_BLOCK_DATA 0x20
#endif
#define NB_ERASE_SECTOR 0x02
/* MGF */
/* Constante de la taille de l'ent阾e d'un fichier */
#define MGF_FILE_SIZEOF_HEADER 0x04
/* definition des constantes correspondant au type de confirmation */
/* lors de demandes de creation ou de modification */
#define SYNCHRONOUS 0x00
#define ASYNCHRONOUS 0x01
/* value : Message MOBI_FMM_INIT_START_MODE_IND */
#define FMM_MODE_START_NORMAL 0x00
#define FMM_MODE_START_TEST 0x01
#define FMM_CIPHERED_SECTION 0x00
#define FMM_NO_CIPHERED_SECTION 0x01
#define FMM_TARGET_RAM 0x00
#define FMM_TARGET_FLASH 0x01
/* Status Version */
#define FMM_BAD_VERSION_SECTOR 0x00
#define FMM_GOOD_VERSION_SECTOR 0x01
/* SPEECH */
/* Number of Write/Replace Reco1/2 modifications */
#define FMM_MAX_RECO 0x08
/* Nombre de Memo*/
#define MAX_MEMO_IDLE 0x05
#define MAX_MEMO_LOCAL 0x05
#define MAX_MEMO_FAR 0x05
#define MAX_MEMO_TFTP 0x05
/* On peux commencer a ecrire des memos*/
#define FMM_MEMO_WRITE_OK 0x00
#define FMM_BIT_FIELD_SECTOR_VOICE_MEMO_IDLE 0x01
#define FMM_BIT_FIELD_SECTOR_VOICE_MEMO_LOCAL 0x02
#define FMM_BIT_FIELD_SECTOR_VOICE_MEMO_TFTP 0x04
#define FMM_BIT_FIELD_SECTOR_VOICE_MEMO_FAR 0x04
#define FMM_ERASE_ALL_MEMO 0xFF
#define FMM_NORMAL_END_MEMO 0x00
#define FMM_ERROR_END_MEMO 0x01
/* Persistent memory contantes */
#define FMM_MAX_RETRY 10
enum
{
FMM_TIME_SHARING_HIGH_SPEED,
FMM_TIME_SHARING_MEDIUM_SPEED,
FMM_TIME_SHARING_LOW_SPEED
};
enum
{
FMM_ERROR_SIZE,
FMM_ERROR_WRITING,
FMM_ERROR_BAD_SECTOR
};
/* v_SetorPersistentNumber constantes declaration */
enum
{
FMM_PERSISTENT_CACHE_WAP
};
/* v_StatusPersistentMemory constantes declaration */
enum
{
FMM_ERROR_NO_SAVE_REQUESTED = 1,
FMM_ERROR_ABORT_RUNNING,
FMM_ERROR_ABORT_IMPOSSIBLE,
FMM_ERROR_SAVE_RUNNING
};
/* end of persistent memory page ... */
/* MGF */
enum {
FMM_MGF_OK,
FMM_MGF_FORBIDDEN_COMMAND,
FMM_MGF_UNKNOWN_APPLICATION,
FMM_MGF_NO_ENOUGH_ROOM,
FMM_MGF_NO_FREE_ID,
FMM_MGF_FILE_NOT_FOUND,
FMM_MGF_IDENT_APPLICATION_NOT_FOUND,
FMM_MGF_DATA_OUT_OF_FILE,
FMM_MGF_ASYNCHRONOUS_REQUEST
};
/* declaration des IdentApplications */
enum {
FMM_MGF_IDENT_SMART_PHONE_BOOK,
FMM_MGF_IDENT_SMART_ORGANIZER,
FMM_MGF_IDENT_SMART_IRMC,
FMM_MGF_IDENT_SMART_EDITOR,
#if !defined(TFTP_WITH_MEMO_CPR)
FMM_MGF_IDENT_GAMES,
#endif
FMM_MGF_IDENT_SMSCB,
FMM_MGF_IDENT_SMSCC
};
enum {FMM_POINTER_WRITE,
FMM_INDEX_WRITE
};
enum {
FMM_NOT_VALID_FILE,
FMM_VALID_FILE
};
/* END MGF */
/* Message consumer process <-> FMM */
enum
{
/**** TAT ****/
/* First of the list to avoid generation of PC software on */
/* each modification of this list */
FMM_F_TAT_UPDATE_SECTION, /* 1 */
FMM_F_TAT_CIPHERED_SECTION, /* 2 */
FMM_F_TAT_SAVE_BLOCKNAME, /* 3 */
FMM_F_TAT_READ_BLOCKNAME, /* 4 */
FMM_F_TAT_SAVE, /* 5 */
FMM_F_TAT_READ, /* 6 */
FMM_F_TAT_STATUS_SECTION, /* 7 */
FMM_F_TAT_RESET_SECTION, /* 8 */
/**** MAIN ****/
FMM_F_INIT_START_MODE, /* 9 */
FMM_F_INIT_PARAM, /* 10 */
FMM_F_READ_BLOCKNAME, /* 11 */
FMM_F_SAVE_BLOCKNAME, /* 12 */
FMM_F_SAVE_BLOCKNAME_RAM, /* 13 */
/* FMM_F_READ_BLOCKNAME_POINTER,
FMM_F_SAVE_BLOCKNAME_POINTER,*/
FMM_F_CLEAN_SECTOR, /* 14 */
FMM_F_FREE_SPACE, /* 15 */
FMM_F_UPDATE_SECTION, /* 16 */
FMM_F_SWITCH_OFF, /* 17 */
/**** Voice Recognition ****/
FMM_F_INIT_SPEECH, /* 20 */
FMM_F_REPLACE_RECO1, /* 21 */
FMM_F_REPLACE_RECO2, /* 22 */
FMM_F_WRITE_RECO2, /* 23 */
/**** Voice Memo ****/
FMM_F_LOST_MEMO, /* 24 */
FMM_F_START_WRITE_MEMO, /* 25 */
FMM_F_WRITE_BLOCK_MEMO, /* 26 */
FMM_F_END_WRITE_MEMO, /* 27 */
FMM_F_ERASE_MEMO, /* 28 */
/**** Mode : Read Only ****/
FMM_F_START_READ_ONLY, /* 29 */
FMM_F_END_READ_ONLY, /* 30 */
/**** Persistent Memory ***/
FMM_F_LOAD_FLASH_IN_RAM, /* 31 */
FMM_F_SAVE_RAM_IN_FLASH, /* 32 */
FMM_F_ABORT_SAVE_RAM_IN_FLASH, /* 33 */
FMM_F_RESET_SECTION_IN_FLASH, /* 34 */
FMM_F_RESET_SAV_SECTION_IN_FLASH, /* 35 */
/* Stress Mobile */
FLASH_F_FMM_START_STRESS_TEST, /* 36 */
/* Preint Unix*/
FLASH_F_FMM_SAVE_FLASH_IMAGE_PREINT, /* 37 */
FLASH_F_FMM_RETURN_INIT_STATE_IND, /* 38 */
/*Message d閒ini pour ecrire dans le secteur OTP*/
FMM_F_TAT_WRITE_OTPKEY, /* 39 */
/* MGF */
FMM_F_MGF_INIT, /* 40 */
FMM_F_MGF_CREATE_FILE, /* 41 */
FMM_F_MGF_DELETE_FILE, /* 42 */
FMM_F_MGF_MODIFY_FILE, /* 43 */
FMM_F_MGF_READ_FILE, /* 44 */
FLASH_F_FMM_SAVE_VOLUME_PREINT /* 45 */
#ifdef SYNCHRONOUS_FILE_SYSTEM_FTR
/*New message ind is added to inform applicaton, flash is available
for read and write operation i.e no erase ongoing */
,FMM_F_READ_WRITE_READY, /* 43 */
/* New message for sectore erase request */
FMM_F_DFRG_ERASE_SECTOR
#endif
};
enum
{
/* Timers pour le mode NORMAL */
FLASH_F_FMM_TIMER_ERASE_OLD_SAVING_SECTOR_IND,
FLASH_F_FMM_TIMER_CLEAN_SECTOR_WITH_SECTION_IND,
FLASH_F_FMM_TIMER_CLEANUP_SECTOR_ERROR_IND,
FLASH_F_FMM_TIMER_CLEANUP_ERASE_OLD_SAVING_SECTOR_IND,
FLASH_F_FMM_TIMER_END_SAVE_WITHOUT_ENOUGH_PLACE_IND,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -