blob: 3ff85fb244f776666951692e48c9f2cffdcbc36e [file] [log] [blame]
/*****************************************************************************
* Copyright (C) 2013, ZTE Corporation.
*
* File Name:PubNvParam_AMT.h
* File Mark:
* Description:public config NV parameters
* Date: 2013-08-21
* Author: hupo
****************************************************************************/
#ifndef _RONVPARAM_AMT_H
#define _RONVPARAM_AMT_H
#include "RONvConfig.h"
// AMT COMM ITEM
#define OS_FLASH_AMT_COMM_RO_IMEI_ADDRESS OS_FLASH_AMT_COMM_RO_NONFAC_BASE_ADDR
#define OS_FLASH_AMT_COMM_RO_IMEI_SIZE 8
#define OS_FLASH_AMT_COMM_RO_IMEI_Reserved_ADDRESS OS_FLASH_AMT_COMM_RO_IMEI_ADDRESS + OS_FLASH_AMT_COMM_RO_IMEI_SIZE
#define OS_FLASH_AMT_COMM_RO_IMEI_Reserved_SIZE 12
#define OS_FLASH_AMT_COMM_RO_IMEISV_ADDRESS OS_FLASH_AMT_COMM_RO_IMEI_Reserved_ADDRESS + OS_FLASH_AMT_COMM_RO_IMEI_Reserved_SIZE
#define OS_FLASH_AMT_COMM_RO_IMEISV_SIZE 8
#define OS_FLASH_AMT_COMM_RO_IMEISV_Reserved_ADDRESS OS_FLASH_AMT_COMM_RO_IMEISV_ADDRESS + OS_FLASH_AMT_COMM_RO_IMEISV_SIZE
#define OS_FLASH_AMT_COMM_RO_IMEISV_Reserved_SIZE 12
#define OS_FLASH_AMT_COMM_RO_BOARDNNUM_ADDRESS OS_FLASH_AMT_COMM_RO_IMEISV_Reserved_ADDRESS + OS_FLASH_AMT_COMM_RO_IMEISV_Reserved_SIZE
#define OS_FLASH_AMT_COMM_RO_BOARDNNUM_SIZE 20
#define OS_FLASH_AMT_COMM_RO_MSerialNum_ADDRESS OS_FLASH_AMT_COMM_RO_BOARDNNUM_ADDRESS + OS_FLASH_AMT_COMM_RO_BOARDNNUM_SIZE
#define OS_FLASH_AMT_COMM_RO_MSerialNum_SIZE 20
#define OS_FLASH_AMT_COMM_RO_ValidFlag_ADDRESS OS_FLASH_AMT_COMM_RO_MSerialNum_ADDRESS + OS_FLASH_AMT_COMM_RO_MSerialNum_SIZE
#define OS_FLASH_AMT_COMM_RO_ValidFlag_SIZE 4
#define OS_FLASH_AMT_COMM_RO_InternalMAC_ADDRESS OS_FLASH_AMT_COMM_RO_ValidFlag_ADDRESS + OS_FLASH_AMT_COMM_RO_ValidFlag_SIZE
#define OS_FLASH_AMT_COMM_RO_InternalMAC_SIZE 20
#define OS_FLASH_AMT_COMM_RO_ExternalMAC_ADDRESS OS_FLASH_AMT_COMM_RO_InternalMAC_ADDRESS + OS_FLASH_AMT_COMM_RO_InternalMAC_SIZE
#define OS_FLASH_AMT_COMM_RO_ExternalMAC_SIZE 20
#define OS_FLASH_AMT_COMM_RO_WIFIMAC_ADDRESS OS_FLASH_AMT_COMM_RO_ExternalMAC_ADDRESS + OS_FLASH_AMT_COMM_RO_ExternalMAC_SIZE
#define OS_FLASH_AMT_COMM_RO_WIFIMAC_SIZE 20
#define OS_FLASH_AMT_COMM_RO_NvVersion_ADDRESS OS_FLASH_AMT_COMM_RO_WIFIMAC_ADDRESS + OS_FLASH_AMT_COMM_RO_WIFIMAC_SIZE
#define OS_FLASH_AMT_COMM_RO_NvVersion_SIZE 40
#define OS_FLASH_AMT_COMM_RO_TestInfo_ADDRESS OS_FLASH_AMT_COMM_RO_NvVersion_ADDRESS + OS_FLASH_AMT_COMM_RO_NvVersion_SIZE
#define OS_FLASH_AMT_COMM_RO_TestInfo_SIZE 200
#define OS_FLASH_AMT_COMM_RO_SOFTVERSION_ADDRESS OS_FLASH_AMT_COMM_RO_TestInfo_ADDRESS + OS_FLASH_AMT_COMM_RO_TestInfo_SIZE
#define OS_FLASH_AMT_COMM_RO_SOFTVERSION_SIZE 10
#define OS_FLASH_AMT_COMM_RO_V4Key_ADDRESS OS_FLASH_AMT_COMM_RO_SOFTVERSION_ADDRESS + OS_FLASH_AMT_COMM_RO_SOFTVERSION_SIZE
#define OS_FLASH_AMT_COMM_RO_V4Key_SIZE 84
#define OS_FLASH_AMT_COMM_RO_V4Key_Reserved_ADDRESS OS_FLASH_AMT_COMM_RO_V4Key_ADDRESS + OS_FLASH_AMT_COMM_RO_V4Key_SIZE
#define OS_FLASH_AMT_COMM_RO_V4Key_Reserved_SIZE 16
#define OS_FLASH_AMT_COMM_RO_SaleState_ADDRESS OS_FLASH_AMT_COMM_RO_V4Key_Reserved_ADDRESS + OS_FLASH_AMT_COMM_RO_V4Key_Reserved_SIZE
#define OS_FLASH_AMT_COMM_RO_SaleState_SIZE 2
#define OS_FLASH_AMT_COMM_RO_SaleState_Reserved_ADDRESS OS_FLASH_AMT_COMM_RO_SaleState_ADDRESS + OS_FLASH_AMT_COMM_RO_SaleState_SIZE
#define OS_FLASH_AMT_COMM_RO_SaleState_Reserved_SIZE 16
#define OS_FLASH_AMT_COMM_RO_BANDBITMAP_ADDRESS OS_FLASH_AMT_COMM_RO_SaleState_Reserved_ADDRESS + OS_FLASH_AMT_COMM_RO_SaleState_Reserved_SIZE
#define OS_FLASH_AMT_COMM_RO_BANDBITMAP_SIZE 112
#define OS_FLASH_AMT_COMM_RO_BANDBITMAP_Reserved_ADDRESS OS_FLASH_AMT_COMM_RO_BANDBITMAP_ADDRESS + OS_FLASH_AMT_COMM_RO_BANDBITMAP_SIZE
#define OS_FLASH_AMT_COMM_RO_BANDBITMAP_Reserved_SIZE 40
#define OS_FLASH_AMT_COMM_RO_ETHMAC_ADDRESS OS_FLASH_AMT_COMM_RO_BANDBITMAP_Reserved_ADDRESS + OS_FLASH_AMT_COMM_RO_BANDBITMAP_Reserved_SIZE
#define OS_FLASH_AMT_COMM_RO_ETHMAC_SIZE 20
#define OS_FLASH_AMT_COMM_RO_LockKey_ADDRESS OS_FLASH_AMT_COMM_RO_ETHMAC_ADDRESS + OS_FLASH_AMT_COMM_RO_ETHMAC_SIZE
#define OS_FLASH_AMT_COMM_RO_LockKey_SIZE 20
#define OS_FLASH_AMT_COMM_RO_WIFIMAC2_ADDRESS OS_FLASH_AMT_COMM_RO_LockKey_ADDRESS + OS_FLASH_AMT_COMM_RO_LockKey_SIZE
#define OS_FLASH_AMT_COMM_RO_WIFIMAC2_SIZE 20
#define OS_FLASH_AMT_COMM_RO_USBMAC_ADDRESS OS_FLASH_AMT_COMM_RO_WIFIMAC2_ADDRESS + OS_FLASH_AMT_COMM_RO_WIFIMAC2_SIZE
#define OS_FLASH_AMT_COMM_RO_USBMAC_SIZE 20
#define OS_FLASH_AMT_COMM_RO_GMAC_ADDRESS OS_FLASH_AMT_COMM_RO_USBMAC_ADDRESS + OS_FLASH_AMT_COMM_RO_USBMAC_SIZE
#define OS_FLASH_AMT_COMM_RO_GMAC_SIZE 20
#define OS_FLASH_AMT_COMM_RO_FEATURE_KEY_MD5_ADDRESS OS_FLASH_AMT_COMM_RO_GMAC_ADDRESS + OS_FLASH_AMT_COMM_RO_GMAC_SIZE
#define OS_FLASH_AMT_COMM_RO_FEATURE_KEY_MD5_SIZE 128
#define OS_FLASH_AMT_COMM_RO_AUTH_KEY_ADDRESS OS_FLASH_AMT_COMM_RO_FEATURE_KEY_MD5_ADDRESS + OS_FLASH_AMT_COMM_RO_FEATURE_KEY_MD5_SIZE
#define OS_FLASH_AMT_COMM_RO_AUTH_KEY_SIZE 20
#define OS_FLASH_AMT_COMM_RO_SOFTDOG_CIPHER_TEXT_ADDRESS OS_FLASH_AMT_COMM_RO_AUTH_KEY_ADDRESS + OS_FLASH_AMT_COMM_RO_AUTH_KEY_SIZE
#define OS_FLASH_AMT_COMM_RO_SOFTDOG_CIPHER_TEXT_SIZE 256
// ½ð»úÊý¾Ý£¬¿Éµ¥¶À¼ÆËã
#define OS_FLASH_AMT_COMM_RO_GBDATA_ADDRESS OS_FLASH_AMT_COMM_RO_NONFAC_BASE_ADDR + 0x2800
#define OS_FLASH_AMT_COMM_RO_GBDATA_SIZE 5120
// ÖØÐÂ¹æ»®ÇøÓò,¸ø²Î¿¼Éè¼ÆºÍÍⲿ¿Í»§¸÷·ÖÅä1k×Ö½ÚÓÃÓÚ´æ´¢Êý¾Ý
#define OS_FLASH_AMT_COMM_RO_USER_DEFINE_ADDRESS OS_FLASH_AMT_COMM_RO_NONFAC_BASE_ADDR + 0x7C00
#define OS_FLASH_AMT_COMM_RO_USER_DEFINE_SIZE 0x400
#define OS_FLASH_AMT_COMM_RO_REF_DEFINE_ADDRESS OS_FLASH_AMT_COMM_RO_NONFAC_BASE_ADDR + 0x7800
#define OS_FLASH_AMT_COMM_RO_REF_DEFINE_SIZE 0x400
// ·ÏÆú,²»ÒªÔÙÒýÓÃ,ÈçÐèÒýÓã¬ÇëÖ±½ÓÒýÓöÔÓ¦ÏîµÄXXX_SIZEºê¶¨Òå
#define ZPS_ImeiLen OS_FLASH_AMT_COMM_RO_IMEI_SIZE
#define ZPS_ImeiSvLen OS_FLASH_AMT_COMM_RO_IMEISV_SIZE
#define ZPS_DEV_MSINFO_MAX_BORDNAME_LEN OS_FLASH_AMT_COMM_RO_BOARDNNUM_SIZE
#define ZPS_DEV_MSINFO_MAX_WIFIMAC_LEN OS_FLASH_AMT_COMM_RO_WIFIMAC_SIZE
#define ZPS_DEV_MSINFO_MAX_SOFTVERSION_LEN OS_FLASH_AMT_COMM_RO_SOFTVERSION_SIZE
#define ZPS_DEV_MSINFO_MAX_WIFIMAC2_LEN OS_FLASH_AMT_COMM_RO_WIFIMAC2_SIZE
#define Comm_DEV_MSINFO_MAX_WIFIMAC_Area_Len OS_FLASH_AMT_COMM_RO_WIFIMAC_SIZE
#define Comm_DEV_MSINFO_MAX_WIFIMAC2_Area_Len OS_FLASH_AMT_COMM_RO_WIFIMAC2_SIZE
#define Comm_DEV_MSINFO_MAX_ETHMAC_Area_Len OS_FLASH_AMT_COMM_RO_ETHMAC_SIZE
#define ZPS_DEV_MSINFO_MAX_Keys_LEN OS_FLASH_AMT_COMM_RO_V4Key_SIZE
#define Comm_DEV_MSINFO_Keys_Area_Len OS_FLASH_AMT_COMM_RO_V4Key_SIZE
#define ZPS_DEV_MSINFO_MAX_SaleState_LEN OS_FLASH_AMT_COMM_RO_SaleState_SIZE
typedef enum
{
ABIMEI_NVPARAM, // Ó²¼þÉ豸ºÅ
ABIMEISV_NVPARAM, // Èí¼þ°æ±¾ºÅÒѾ­²»ÔÙʹÓÃ
ABBORDNUm_NVPARAM, // Ö÷°åºÅ
ABMSERIALNUM_NVPARAM, // ´®ºÅ
ABVALIDFLAG_NVPARAM, // MACµØÖ·Ñ¡Ôñָʾλ
ABMAC_INT_NVPARAM, // ÄÚ²¿MACµØÖ·
ABMAC_EXT_NVPARAM, // ÍⲿMACµØÖ·
ABMAC_WIFI_NVPARAM, // WIFI MACµØÖ·
ABNV_VERSION_NVPARAM, // NV°æ±¾ÐÅÏ¢
ABTESTINFO_NVPARAM, // Éú²ú²âÊÔ±ê־λ
ABSOFTVERSION_NVPARAM, // ºóÐøÐèÒªÐÞ¸ÄĿǰÈí¼þ°æ±¾ºÅ²»ÔÚÖ»¶ÁÇø
ABNET_V4KEY_NVPARAM,
ABSALE_STATE_NVPARAM, // MF832S+ÏúÁ¿Í³¼Æ±êÖ¾
ABBANDBITMAP_NVPARAM, // BAND BITMAP
ABMAC_ETH_NVPARAM, // ETH MACµØÖ·
ABNET_LCOKKEY_NVPARAM, // ½âËøÂë
ABMAC_WIFI2_NVPARAM, // MF971ÏîÄ¿Ôö¼ÓµÚ¶þ¸öWIFIµØÖ·
ABMAC_USBMAC_NVPARAM, //USB(Rndis,ECM)MACµØÖ·
ABMAC_GMAC_NVPARAM, //GMAC(PHY/Switch) MACµØÖ·
ABFEATURE_KEY_MD5_NVPARAM, //7520MBBÏîÄ¿·ÀµÁË¢ÌØÕ÷ÂëµÄMD5Öµ
ABAUTH_KEY_NVPARAM, //GD113 ÉÕ¼ÏÞÖÆ¼øÈ¨Âë
ABSOFTDOG_CIPHER_TEXT_NVPARAM, //¶ùͯÊÖ±íÈí¼þ¹·¼ÓÃÜÊý¾Ý
ABGBDATA_NVPARAM, // GBNV data by wong 20150602
MAXABNVPARAM_NVPARAM
} NvParam_AMT;
/*****************************************************************************
* Éú²ú²âÊÔ±ê־λµÄ¶¨Òå *
*****************************************************************************/
typedef enum
{
BOARDTEST_CURRENT = 0, BOARDTEST_AUDIO, BOARDTEST_BT, BOARDTEST_RESERVED, //×Ö½Ú0£¬°å²â
GSM_CAL, GSM_FT, GSM_CPT, GSM_RESERVED, //×Ö½Ú1£¬GSM
GPRS_FT, GPRS_CPT, GPRS_RESERVED1, GPRS_RESERVED2, //×Ö½Ú2£¬GPRS
EDGE_CAL, EDGE_FT, EDGE_CPT, EDGE_RESERVED, //×Ö½Ú3£¬EDGE
CDMA_CAL, CDMA_FT, CDMA_CPT, CDMA_DIV_CPT, //×Ö½Ú4£¬CDMA
EVDO_FT, EVDO_CPT, EVDO_CAL, EVDO_RESERVED2, //×Ö½Ú5£¬EVDO
WCDMA_CAL, WCDMA_FT, WCDMA_CPT, WCDMA_DIV_CPT, //×Ö½Ú6£¬WCDMA
TD_CAL, TD_FT, TD_CPT, TD_RESERVED, //×Ö½Ú7£¬TD
WIMAX_CAL, WIMAX_FT, WIMAX_CPT, WIMAX_RESERVED, //×Ö½Ú8£¬WIMAX
LTE_CAL, LTE_FT, LTE_CPT, LTE_DIV_CPT, //×Ö½Ú9£¬LTE ×¢£ºÔÚË«LTE»úÐÍÉÏÌØÖ¸FDD_LTE
BLUETOOTH_CAL, BLUETOOTH_FT, BLUETOOTH_CPT, BLUETOOTH_FUN, //×Ö½Ú10£¬À¶ÑÀ
WIFI_CAL, WIFI_FT, WIFI_CPT, WIFI_FUN, //×Ö½Ú11£¬WIFI
GPS_FT, GPS_CPT, GPS_FUN, GPS_RESERVED, //×Ö½Ú12£¬GPS
MOBILETV_FT, MOBILETV_CPT, MOBILETV_FUN, MOBILETV_RESERVED, //×Ö½Ú13£¬TV
NFC_FT, NFC_FUN, NFC_RESERVED1, NFC_RESERVED2, //×Ö½Ú14£¬NFC
BASEBAND_CURRENT, BASEBAND_AUDIO, BASEBAND_RESERVED1, BASEBAND_RESERVED2, //×Ö½Ú15£¬Õû»ú»ù´ø
CAC_PREVIEW, CAC_FINALCHECK, CAC_RESERVED2, CAC_RESERVED3, //×Ö½Ú16£¬¹¦ÄܲâÊÔ
HSPA_FT, HSPA_CPT, HSPA_RESERVED1, HSPA_RESERVED2, //×Ö½Ú17£¬HSPA
WCDMA_GSM_FUN, EVDO_CDMA_FUN, TD_GSM_FUN, LTE_TDD_FUN,
LTE_FDD_FUN, FUN_RESERVED1, FUN_RESERVED2, FUN_RESERVED3, //18¡¢19×Ö½Ú£¬¹¦ÄܲâÊÔ
TDD_CAL, TDD_FT, TDD_CPT, TDD_DIV_CPT, //×Ö½Ú20 TDD¡¢FDDË«LTE»úÐ͵ÄTDD±êÖ¾
GSM_2_CAL, GSM_2_FT, GSM_2_CPT, GSM_2_DIV_CPT, //×Ö½Ú21 ÊÊÓÃÓÚGSM Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
GPRS_2_CAL, GPRS_2_FT, GPRS_2_CPT, GPRS_2_DIV_CPT, //×Ö½Ú22 ÊÊÓÃÓÚGPRS Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
EDGE_2_CAL, EDGE_2_FT, EDGE_2_CPT, EDGE_2_DIV_CPT, //×Ö½Ú23 ÊÊÓÃÓÚEDGE Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
WCDMA_2_CAL, WCDMA_2_FT, WCDMA_2_CPT, WCDMA_2_DIV_CPT, //×Ö½Ú24 ÊÊÓÃÓÚWCDMA Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
HSPA_2_CAL, HSPA_2_FT, HSPA_2_CPT, HSPA_2_DIV_CPT, //×Ö½Ú25 ÊÊÓÃÓÚHSPA Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
CDMA_2_CAL, CDMA_2_FT, CDMA_2_CPT, CDMA_2_DIV_CPT, //×Ö½Ú26 ÊÊÓÃÓÚCDMA Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
EVDO_2_CAL, EVDO_2_FT, EVDO_2_CPT, EVDO_2_DIV_CPT, //×Ö½Ú27 ÊÊÓÃÓÚEVDO Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
LTE_2_CAL, LTE_2_FT, LTE_2_CPT, LTE_2_DIV_CPT, //×Ö½Ú28 ÊÊÓÃÓÚLTE Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
ICERA_CONFIG, ICERA_RESERVED1, ICERA_RESERVED2, ICERA_RESERVED3, //29×Ö½Ú£¬ ICERA
LTE_BAND1_CAL, LTE_BAND1_FT, LTE_BAND1_CPT, LTE_BAND1_RESERVED, //30×Ö½Ú£¬ LTE Ƶ¶Î1
LTE_BAND2_CAL, LTE_BAND2_FT, LTE_BAND2_CPT, LTE_BAND2_RESERVED, //31×Ö½Ú£¬ LTE Ƶ¶Î2
LTE_BAND3_CAL, LTE_BAND3_FT, LTE_BAND3_CPT, LTE_BAND3_RESERVED, //32×Ö½Ú£¬ LTE Ƶ¶Î3
LTE_BAND4_CAL, LTE_BAND4_FT, LTE_BAND4_CPT, LTE_BAND4_RESERVED, //33×Ö½Ú£¬ LTE Ƶ¶Î4
LTE_BAND5_CAL, LTE_BAND5_FT, LTE_BAND5_CPT, LTE_BAND5_RESERVED, //34×Ö½Ú£¬ LTE Ƶ¶Î5
LTE_BAND6_CAL, LTE_BAND6_FT, LTE_BAND6_CPT, LTE_BAND6_RESERVED, //35×Ö½Ú£¬ LTE Ƶ¶Î6
LTE_BAND7_CAL, LTE_BAND7_FT, LTE_BAND7_CPT, LTE_BAND7_RESERVED, //36×Ö½Ú£¬ LTE Ƶ¶Î7
LTE_BAND8_CAL, LTE_BAND8_FT, LTE_BAND8_CPT, LTE_BAND8_RESERVED, //37×Ö½Ú£¬ LTE Ƶ¶Î8
LTE_BAND9_CAL, LTE_BAND9_FT, LTE_BAND9_CPT, LTE_BAND9_RESERVED, //38×Ö½Ú£¬ LTE Ƶ¶Î9
LTE_BAND10_CAL, LTE_BAND10_FT, LTE_BAND10_CPT, LTE_BAND10_RESERVED, //39×Ö½Ú£¬ LTE Ƶ¶Î10
TDD_2_CAL, TDD_2_FT, TDD_2_CPT, TDD_2_DIV_CPT, //40×Ö½Ú£¬ÊÊÓÃÓÚTDD_LTE Ë«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾
GPS_2_FT, GPS_2_CPT, GPS_2_FUN, GPS_2_RESERVED, //41×Ö½Ú£¬ÊÊÓÃÓÚGPSË«¹¤Î»»úÐ͵ĵÚ2¸ö¹¤Î»±êÖ¾£¨±±¶·GPS£©
DL_PV, DL_RELEASE, DL_AMT, DL_RESERVED, //42×Ö½Ú£¬ÊÊÓÃÓÚÏÂÔØ
BAND_BIT_MAP_FLAG, BAND_BIT_MAP_RESERVED1, BAND_BIT_MAP_RESERVED2, BAND_BIT_MAP_RESERVED3, //43×Ö½Ú£¬BAND_BIT_MAP_FLAG
/* ÍâÉ蹦ÄܲâÊÔ */
SOFTVERSION_CHECK, TESTINFO_CHECK, BUTTION_CHECK, LCD_BACKLIT_CHECK, //44×Ö½Ú,
MOTOR_CHECK, LCD_TEST, LOUDSPEAKER_CHECK, EARPHONE_CHECK, //45×Ö½Ú,
MICRO_PHONE_CHECK, HEAD_SET_CHECK, FM_CHECK, SIMCARD_CHECK, //46×Ö½Ú,
CHARGING_CHECK, FLASH_LIGHT_CHECK, KEY_LIGHT_CHECK, RESET_CHECK, //47×Ö½Ú,
HEADSET_KEY_CHECK, BATTERT_VOLTAGE_CHECHK, SDCARD_CHECK, CAMERA_BACK_CHECK, //48×Ö½Ú,
IDLE_CURRENT_CHECK, OFF_CURRENT_CHECK, DEVICETEST_RESERVED1, DEVICETEST_RESERVED2, //49×Ö½Ú,
DEVICETEST_RESERVED3, DEVICETEST_RESERVED4, DEVICETEST_RESERVED5, DEVICETEST_RESERVED6, //50×Ö½Ú,
DEVICETEST_RESERVED7, DEVICETEST_RESERVED8, DEVICETEST_RESERVED9, DEVICETEST_RESERVED10, //51×Ö½Ú,
DEVICETEST_RESERVED11, DEVICETEST_RESERVED12, DEVICETEST_RESERVED13, DEVICETEST_RESERVED14, //52×Ö½Ú,
DEVICETEST_RESERVED15, DEVICETEST_RESERVED16, DEVICETEST_RESERVED17, DEVICETEST_RESERVED18, //53×Ö½Ú,
MAXAMTFALGS_NVPARAM = 799, // 200¸ö×Ö½Ú£¬Ò»¸ö×Ö½Ú4¸ö±ê־룬¹²¿É±íʾ0~799¸ö±ê־룬44~199×Ö½ÚÔ¤Áô
} NvParam_AMTFlags;
typedef enum
{
T_INITIAL = 0, //BIT: 00
T_PASSED = 1, //BIT: 01
T_FAILED = 2, //BIT: 10
T_ERRORVALUE = 3
} TestResultAMT;
//} TestResult;
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_NvAMTItemWrite
* ¹¦ÄÜÃèÊö: дһÏîNVÊý¾Ý
* ²ÎÊý˵Ã÷:
(IN)
nvParam: ¸ÃNVÏîÀàÐÍ
NvItemData: дÈëµÄÊý¾Ý
NvItemLen: Êý¾Ý³¤¶È
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
UINT32 zPS_NvAMTItemWrite(NvParam_AMT nvParam,UINT8 *NvItemData, UINT32 NvItemLen);
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_NvAMTItemRead
* ¹¦ÄÜÃèÊö: ¶Á³öÒ»ÏîNVÊý¾Ý
* ²ÎÊý˵Ã÷:
(IN)
nvParam: ¸ÃNVÏîÀàÐÍ
NvItemData: ¶Á³öµÄÊý¾Ý
NvItemLen: Êý¾Ý³¤¶È
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
UINT32 zPS_NvAMTItemRead(NvParam_AMT nvParam,UINT8 *NvItemData, UINT32 NvItemLen);
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_NvAMTFlagsItemWrite
* ¹¦ÄÜÃèÊö:дÉú²ú²âÊÔ±ê־λ
* ²ÎÊý˵Ã÷:
(IN)
nvParam: ¸ÃNVÏîÀàÐÍ
NvItemData: ´ýдµÄÊý¾Ý
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
UINT32 zPS_NvAMTFlagsItemWrite(NvParam_AMTFlags nvParam,UINT8 *NvItemData);
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_NvAMFlagsTItemRead
* ¹¦ÄÜÃèÊö: ¶ÁÉú²ú²âÊÔ±ê־λ
* ²ÎÊý˵Ã÷:
(IN)
nvParam: ¸ÃNVÏîÀàÐÍ
NvItemData: ¶ÁÈ¡µÄÊý¾Ý
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
UINT32 zPS_NvAMFlagsTItemRead(NvParam_AMTFlags nvParam,UINT8 *NvItemData);
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_GetAmtNvBandInfo
* ¹¦ÄÜÃèÊö:¶ÁÉú²ú²âÊÔÆµ¶ÎÐÅÏ¢
* ²ÎÊý˵Ã÷:
(IN)
NvItemData ¶ÁÈ¡ÐÅÏ¢µÄ´æ·Åbuffer
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
UINT32 zPS_GetAmtNvBandInfo(UINT8 *NvItemData);
#if 0
/**************************************************************************
* º¯ÊýÃû³Æ: zPS_LteCalibNvCheck
* ¹¦ÄÜÃèÊö: ¼ì²éLTEУ׼NVÖÐÊÇ·ñ´æÔÚij¸öband£¬Èô²»´æÔÚ£¬Ôò½«Ö¸¶¨Æµ¶ÎÊý¾Ý¸´ÖÆÒ»·Ý
* ²ÎÊý˵Ã÷:
(IN)
dest ´ý¼ì²éµÄÄ¿±êbandºÅ£¬·¶Î§1µ½128
src ÓÃÓÚ¸´ÖƵÄÔ´bandºÅ£¬·¶Î§1µ½128
read ·Ç0±íÊ¾ÖØÐ¶ÁÈ¡Nandµ½Ram£¬0±íʾ²»ÖØÐ¶ÁÈ¡Nandµ½Ram
write ·Ç0±íʾ½«ramÊý¾ÝдÈëNand£¬0±íʾ²»Ð´ÈëNand
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
**************************************************************************/
UINT32 zPS_LteCalibNvCheck(UINT16 dest, UINT16 src, UINT16 read, UINT16 write);
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_NvRoUserWrite
* ¹¦ÄÜÃèÊö: Óû§×Ô¶¨ÒåÇøÓòдº¯Êý
* ²ÎÊý˵Ã÷:
(IN)
dwStart : 0 ~ 1k
dwLen : 0 ~ 1k
from : ´ýдÈëµÄÊý¾Ý
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
SINT32 zPS_NvRoUserWrite(UINT32 dwStart, UINT32 dwLen, UINT8* from);
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_NvRoUserRead
* ¹¦ÄÜÃèÊö: Óû§×Ô¶¨ÒåÇøÓò¶Áº¯Êý
* ²ÎÊý˵Ã÷:
(IN)
dwStart : 0 ~ 1k
dwLen : 0 ~ 1k
to : ·µ»ØµÄÊý¾Ý
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
SINT32 zPS_NvRoUserRead(UINT32 dwStart, UINT32 dwLen, UINT8* to);
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_NvRoRefRead
* ¹¦ÄÜÃèÊö: ²Î¿¼Éè¼Æ×Ô¶¨ÒåÇøÓò¶Áº¯Êý
* ²ÎÊý˵Ã÷:
(IN)
dwStart : 0 ~ 1k
dwLen : 0 ~ 1k
to : ·µ»ØµÄÊý¾Ý
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
SINT32 zPS_NvRoRefRead(UINT32 dwStart, UINT32 dwLen, UINT8* to);
/*****************************************************************************
* º¯ÊýÃû³Æ: zPS_NvRoRefWrite
* ¹¦ÄÜÃèÊö: ²Î¿¼Éè¼Æ×Ô¶¨ÒåÇøÓòдº¯Êý
* ²ÎÊý˵Ã÷:
(IN)
dwStart : 0 ~ 1k
dwLen : 0 ~ 1k
from : ´ýдÈëµÄÊý¾Ý
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
SINT32 zPS_NvRoRefWrite(UINT32 dwStart, UINT32 dwLen, UINT8* from);
#endif
/*****************************************************************************
* º¯ÊýÃû³Æ: zPs_NvCheckBandBitmap
* ¹¦ÄÜÃèÊö: ¼ì²éËùÓÐÖÆÊ½Ð£×¼Êý¾Ý£¬Ñ°ÕÒ´æÔÚУ׼Êý¾ÝµÄËùÓÐband£¬²¢Ð´ÈëbitmapÖÐ
* ²ÎÊý˵Ã÷:
(IN)
NvItemData: ¶Á³öµÄÊý¾Ý
NvItemLen: Êý¾Ý³¤¶È
(OUT)
* ·µ »Ø Öµ: ³É¹¦·µ»ØZOSS_SUCCESS£»Ê§°Ü·µ»ØZOSS_ERROR
* ÆäËü˵Ã÷:
*****************************************************************************/
UINT32 zPs_NvCheckBandBitmap(UINT8 *NvItemData, UINT32 NvItemLen);
/*****************************************************************************
* º¯ÊýÃû³Æ£º zAmt_GetPublicKey
* ¹¦ÄÜÃèÊö£º ·µ»Ø¹«Ô¿
* ²ÎÊý˵Ã÷£º
pE(in/out): ²ÎÊýEÖ¸Õë
pELen(in/out): ²ÎÊýE³¤¶ÈÖ¸Õë
pN(in/out): ²ÎÊýNÖ¸Õë
pModulusLen(in/out): ²ÎÊýN³¤¶ÈÖ¸Õë
* ·µ »Ø Öµ£º³É¹¦·µ»Ø0£¬Ê§°Ü·µ»Ø-1
* ÆäËü˵Ã÷£º
*****************************************************************************/
SINT32 zAmt_GetPublicKey(BYTE *pE, UINT32 *pELen, BYTE *pN, UINT32 *pModulusLen);
/*****************************************************************************
* º¯ÊýÃû³Æ: zAmt_GetCommNvSizeByNvParam
* ¹¦ÄÜÃèÊö: »ñÈ¡comm nvÖÐÿ¸önvÏîµÄ´óС
* ²ÎÊý˵Ã÷:
(IN)
nvParam: comm nvÏî
(OUT)
nvsize
* ·µ »Ø Öµ: ³É¹¦·µ»ØÕæÊµµÄnvsize£»Ê§°Ü·µ»Ø0
* ÆäËü˵Ã÷:
*****************************************************************************/
UINT32 zAmt_GetCommNvSizeByNvParam(NvParam_AMT nvParam);
#endif