lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /**
|
| 2 | * @file ref_nv_def.h
|
| 3 | * @brief ÌṩÁËnvºê¶¨Òå
|
| 4 | *
|
| 5 | * Copyright (C) 2017 Sanechips Technology Co., Ltd.
|
| 6 | * @author
|
| 7 | *
|
| 8 | * This program is free software; you can redistribute it and/or modify
|
| 9 | * it under the terms of the GNU General Public License version 2 as
|
| 10 | * published by the Free Software Foundation.
|
| 11 | *
|
| 12 | */
|
| 13 |
|
| 14 | #ifndef __REF_NV_DEF__
|
| 15 | #define __REF_NV_DEF__
|
| 16 |
|
| 17 | #include "RWNvConfig.h"
|
| 18 | #include "libcpnv.h"
|
| 19 |
|
| 20 | /******************************
|
| 21 | 7520 NVRWÇøÊ×µØÖ·
|
| 22 | *******************************/
|
| 23 | #define ZPS_REF_MSINFO_REFDESIGN_BASE_ADDR (OS_FLASH_REF_DESIGN_RW_OFFSET_FROM_NV)
|
| 24 |
|
| 25 | /******************************
|
| 26 | ²Î¿¼Éè¼ÆÓû§Êý¾ÝÇø£¬3K
|
| 27 | *******************************/
|
| 28 | #define NVRW_REF_NV_USER_OFFSET_SIZE (3 * 1024)
|
| 29 |
|
| 30 | /******************************
|
| 31 | ²Î¿¼Éè¼ÆË½ÓÐÇø£¬8K
|
| 32 | Ïà¶ÔNVRWÇøÆðʼµØÖ·µÄÆ«ÒÆµØÖ·Îª0x100C00
|
| 33 | *******************************/
|
| 34 | #define NVRW_REF_NV_PRIVATE_OFFSET_ADDRESS (ZPS_REF_MSINFO_REFDESIGN_BASE_ADDR + NVRW_REF_NV_USER_OFFSET_SIZE)
|
| 35 | #define NVRW_REF_NV_PRIVATE_OFFSET_SIZE (8 * 1024)
|
| 36 |
|
| 37 |
|
| 38 | /******************************
|
| 39 | ²Î¿¼Éè¼ÆË½ÓÐÇøNV¹æ»®£¬8K
|
| 40 | *******************************/
|
| 41 | #define ZPS_REF_MSINFO_SOFTVERSION_INT_BASE_ADDR (NVRW_REF_NV_PRIVATE_OFFSET_ADDRESS)
|
| 42 | #define ZPS_REF_MSINFO_MAX_SOFTVERSION_INT_LEN (unsigned char)100 /*ÄÚ²¿Èí¼þ°æ±¾ºÅ×î´ó³¤¶È*/
|
| 43 |
|
| 44 | #define ZPS_REF_MSINFO_SOFTVERSION_EXT_BASE_ADDR (ZPS_REF_MSINFO_SOFTVERSION_INT_BASE_ADDR + ZPS_REF_MSINFO_MAX_SOFTVERSION_INT_LEN)
|
| 45 | #define ZPS_REF_MSINFO_MAX_SOFTVERSION_EXT_LEN (unsigned char)100 /*ÍⲿÈí¼þ°æ±¾ºÅ×î´ó³¤¶È*/
|
| 46 |
|
| 47 | #define ZPS_REF_MSINFO_HARDWAREVERSION_BASE_ADDR (ZPS_REF_MSINFO_SOFTVERSION_EXT_BASE_ADDR + ZPS_REF_MSINFO_MAX_SOFTVERSION_EXT_LEN)
|
| 48 | #define ZPS_REF_MSINFO_MAX_HARDWAREVERSION_LEN (unsigned char)100 /*Ó²¼þ°æ±¾ºÅ×î´ó³¤¶È*/
|
| 49 |
|
| 50 | #define ZPS_REF_MSINFO_PHONE_INT_BASE_ADDR (ZPS_REF_MSINFO_HARDWAREVERSION_BASE_ADDR + ZPS_REF_MSINFO_MAX_HARDWAREVERSION_LEN)
|
| 51 | #define ZPS_REF_MSINFO_MAX_PHONE_INT_LEN (unsigned char)32 /*ÄÚ²¿»úÐÍ×î´ó³¤¶È*/
|
| 52 |
|
| 53 | #define ZPS_REF_MSINFO_PHONE_EXT_BASE_ADDR (ZPS_REF_MSINFO_PHONE_INT_BASE_ADDR + ZPS_REF_MSINFO_MAX_PHONE_INT_LEN)
|
| 54 | #define ZPS_REF_MSINFO_MAX_PHONE_EXT_LEN (unsigned char)32 /*Íⲿ»úÐÍ×î´ó³¤¶È*/
|
| 55 |
|
| 56 | #define ZPS_REF_MSINFO_SSID_BASE_ADDR (ZPS_REF_MSINFO_PHONE_EXT_BASE_ADDR + ZPS_REF_MSINFO_MAX_PHONE_EXT_LEN)
|
| 57 | #define ZPS_REF_MSINFO_MAX_SSID_LEN (unsigned char)100 /*ZTE_WIRELESS_MACµØÖ·ºóËÄλ*/
|
| 58 |
|
| 59 | #define ZPS_REF_MSINFO_CGMI_BASE_ADDR (ZPS_REF_MSINFO_SSID_BASE_ADDR + ZPS_REF_MSINFO_MAX_SSID_LEN)
|
| 60 | #define ZPS_REF_MSINFO_MAX_CGMI_LEN (unsigned char)100 /*³§ÉÌÐÅÏ¢*/
|
| 61 |
|
| 62 | #define ZPS_REF_MSINFO_NEWWIFIKEY_BASE_ADDR (ZPS_REF_MSINFO_CGMI_BASE_ADDR + ZPS_REF_MSINFO_MAX_CGMI_LEN)
|
| 63 | #define ZPS_REF_MSINFO_MAX_NEWWIFIKEY_LEN (unsigned char)65 /*wifikey*/
|
| 64 |
|
| 65 | #define ZPS_REF_MSINFO_UNLOCKTIMES_BASE_ADDR (ZPS_REF_MSINFO_NEWWIFIKEY_BASE_ADDR + ZPS_REF_MSINFO_MAX_NEWWIFIKEY_LEN)
|
| 66 | #define ZPS_REF_MSINFO_MAX_UNLOCKTIMES_LEN (unsigned char)4 /*ËøÍø×î´ó½âËø´ÎÊý*/
|
| 67 |
|
| 68 | #define ZPS_REF_MSINFO_PLATFORM_END (ZPS_REF_MSINFO_UNLOCKTIMES_BASE_ADDR + ZPS_REF_MSINFO_MAX_UNLOCKTIMES_LEN)
|
| 69 |
|
| 70 | ///======´Ë´¦NV¶¨ÒåΪƽ̨ÄÚ²¿NV£¬ºóÐøÆäËûÄ£¿éNV¶¨Òå¾ùÔÚ¸÷×ÔÄ£¿éÄÚ²¿Ìí¼Ó¶¨Òå
|
| 71 |
|
| 72 | #define ZPS_REF_MSINFO_VERSIONMODE_BASE_ADDR (ZPS_REF_MSINFO_PLATFORM_END)
|
| 73 | #define ZPS_REF_MSINFO_MAX_VERSIONMODE_LEN (unsigned char)1 /*°æ±¾Ä£Ê½ÀàÐÍ£¬Õý³£°æ±¾/¹Ò²à°æ±¾*/
|
| 74 |
|
| 75 | #define ZPS_REF_MSINFO_ZISMS_BASE_ADDR (ZPS_REF_MSINFO_VERSIONMODE_BASE_ADDR + ZPS_REF_MSINFO_MAX_VERSIONMODE_LEN)
|
| 76 | #define ZPS_REF_MSINFO_MAX_ZISMS_LEN (unsigned char)1 /*ÖÇÄܶÌÐŹ¦ÄÜ¿ª¹Ø*/
|
| 77 |
|
| 78 | #define ZPS_REF_MSINFO_WEBKEY_FLAG_BASE_ADDR (ZPS_REF_MSINFO_ZISMS_BASE_ADDR + ZPS_REF_MSINFO_MAX_ZISMS_LEN)
|
| 79 | #define ZPS_REF_MSINFO_MAX_WEBKEY_FLAG_LEN (unsigned char)1 /*ʹÓÃnvÖÐhttpsÃØÔ¿¿ª¹Ø*/
|
| 80 |
|
| 81 | #define ZPS_REF_MSINFO_WEBKEY_DATA_BASE_ADDR (ZPS_REF_MSINFO_WEBKEY_FLAG_BASE_ADDR + ZPS_REF_MSINFO_MAX_WEBKEY_FLAG_LEN)
|
| 82 | #define ZPS_REF_MSINFO_MAX_WEBKEY_DATA_LEN (unsigned char)2048 /*httpsÃØÔ¿Êý¾Ý*/
|
| 83 |
|
| 84 | #define REF_REF_NV_END (NVRW_REF_NV_PRIVATE_OFFSET_ADDRESS + NVRW_REF_NV_PRIVATE_OFFSET_SIZE - 1)/*¿ØÖƹÜÀíNV½áÊøµØÖ·0x2BFF*/
|
| 85 |
|
| 86 |
|
| 87 | #endif
|
| 88 |
|