• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: NV - key_id.
15  */
16 
17 #ifndef __KEY_ID_H__
18 #define __KEY_ID_H__
19 
20 #define REGION_KEY_NUMS 0x1000 /* 每个区域容纳key_id的个数 */
21 
22 /* Please use the format of NV_ID_XXX */
23 
24 /* system factory key_id [0x0001,0x1000) */
25 #define NV_ID_SYSTEM_FACTORY_AREA_START    0x0001 /* Not a real key_id , just used for region determination. */
26 #define NV_ID_SYSTEM_FACTORY_MAC           0x0005 /* Not a real key_id , just used for region determination. */
27 #define NV_ID_SYSTEM_XO_TRIM_TEMP_SW       0x0006 /* Temp comp switch for xo trim. */
28 #define NV_ID_SYSTEM_XO_TRIM_TEMP_PARAM    0x0007 /* Temp comp fine code for xo trim. */
29 
30 /* user factory key_id [0x1000,0x2000) */
31 #define NV_ID_USER_FACTORY_AREA_START      0x1000 /* Not a real key_id , just used for region determination. */
32 
33 /* system normal key_id [0x2000,0x3000) */
34 #define NV_ID_SYSTEM_NORMAL_AREA_START     0x2000 /* Not a real key_id , just used for region determination. */
35 #define NV_ID_SECURE_CONN                  0x2001 /* secure connect */
36 #define NV_ID_OFFLINELOG_ENBALE_FLAG       0x2002 /* Offline log enable flag */
37 #define NV_ID_COUNTRY_CODE                 0x2003 /* Country code */
38 #define NV_ID_DATA_SAMPLE                  0x2004 /* Enable data sample */
39 #define NV_ID_ROAM_ENABLE                  0x2005 /* Enable roam */
40 #define NV_ID_ROAM_OVER_DS_ENABLE          0x2006 /* Enable roam */
41 #define NV_ID_SU_BFEE                      0x2007 /* Enable su bfee */
42 #define NV_ID_TX_LDPC                      0x2008 /* Enable tx ldpc */
43 #define NV_ID_RX_STBC                      0x2009 /* Enable rx stbc */
44 #define NV_ID_ER_SU_DISABLE                0x200A /* Enable er su disable */
45 #define NV_ID_DCM_CONSTELLATION_TX         0x200B /* Enable dcm constellation tx */
46 #define NV_ID_BANDWIDTH_EXTENDED_RANGE     0x200C /* Enable bandwidth extended range */
47 #define NV_ID_AMSDU_TX_NUM                 0x200D /* amsdu tx max num */
48 #define NV_ID_AMSDU_TX_ON                  0x200E /* Enable amsdu tx */
49 #define NV_ID_AMPDU_AMSDU_TX_ON            0x200F /* Enable ampdu amsdu tx */
50 #define NV_ID_AMPDU_TX_MAX_MPDU_NUM        0x2010 /* ampdu tx max mpdu num */
51 #define NV_ID_AMPDU_RX_MAX_MPDU_NUM        0x2011 /* ampdu rx max mpdu num */
52 #define NV_ID_AMPDU_TX_BAW_SIZE            0x2012 /* ampdu tx baw size */
53 #define NV_ID_MAX_USER_NUM                 0x2013 /* max user num */
54 #define NV_ID_PA_AL_ON_ENABLE              0x2014 /* pa always on */
55 #define NV_ID_CLR_IP_DISABLE               0x2015 /* Disable report lwip clr ip when disconn */
56 #define NV_ID_LINKLOSS_DISABLE             0x2016 /* Disable linkloss */
57 #define NV_ID_SOFTAP_FIX_DSPS              0x2017 /* Set Softap DSPS */
58 
59 #define NV_ID_FE_RX_INSERT_LOSS            0x2050 /* RF RX insert loss */
60 #define NV_ID_FE_CALI_MASK                 0x2051 /* RF cali mask */
61 #define NV_ID_FE_CALI_DATA_MASK            0x2052 /* RF cali data mask */
62 #define NV_ID_FE_TX_POWER_FCC              0x2053 /* RF TX power for FCC */
63 #define NV_ID_FE_TX_POWER_ETSI             0x2054 /* RF TX power for ETSI */
64 #define NV_ID_FE_TX_POWER_JAPAN            0x2055 /* RF TX power for JAPAN */
65 #define NV_ID_FE_TX_POWER_COMMON           0x2056 /* RF TX power for COMMON */
66 #define NV_ID_FE_RX_RSSI_COMP              0x2057 /* RF RX rssi comp */
67 #define NV_ID_FE_TX_REF_POWER              0x2058 /* RF TX reference power */
68 #define NV_ID_FE_TX_POWER_CURVE_HIGH       0x2059 /* RF TX power curve for high level */
69 #define NV_ID_FE_TX_POWER_CURVE_LOW        0x205A /* RF TX power curve for low level */
70 #define NV_ID_FE_TX_CURVE_FACTOR           0x205B /* RF TX curve factor */
71 #define NV_ID_FE_CALI_DATA                 0x205C /* RF cali data */
72 #define NV_ID_FE_CTA_COEF_SWITCH           0x205D /* RF cta special coef switch */
73 
74 #define NV_ID_BTC_TXPOWER_CFG              0x20A0 /* btc tx power cfg */
75 
76 #define NV_ID_RADAR_1M_HOME_STA_PLATSIC    0x2100
77 #define NV_ID_RADAR_1M_HALL_STA_PLATSIC    0x2101
78 #define NV_ID_RADAR_1M_HOME_AP_PLATSIC     0x2102
79 #define NV_ID_RADAR_1M_HALL_AP_PLATSIC     0x2103
80 #define NV_ID_RADAR_2M_HOME_STA_PLATSIC    0x2104
81 #define NV_ID_RADAR_2M_HALL_STA_PLATSIC    0x2105
82 #define NV_ID_RADAR_2M_HOME_AP_PLATSIC     0x2106
83 #define NV_ID_RADAR_2M_HALL_AP_PLATSIC     0x2107
84 #define NV_ID_RADAR_3M_HOME_STA_PLATSIC    0x2108
85 #define NV_ID_RADAR_3M_HALL_STA_PLATSIC    0x2109
86 #define NV_ID_RADAR_3M_HOME_AP_PLATSIC     0x210A
87 #define NV_ID_RADAR_3M_HALL_AP_PLATSIC     0x210B
88 #define NV_ID_RADAR_1M_HOME_STA_PCB        0x210C
89 #define NV_ID_RADAR_1M_HALL_STA_PCB        0x210D
90 #define NV_ID_RADAR_1M_HOME_AP_PCB         0x210E
91 #define NV_ID_RADAR_1M_HALL_AP_PCB         0x210F
92 #define NV_ID_RADAR_2M_HOME_STA_PCB        0x2110
93 #define NV_ID_RADAR_2M_HALL_STA_PCB        0x2111
94 #define NV_ID_RADAR_2M_HOME_AP_PCB         0x2112
95 #define NV_ID_RADAR_2M_HALL_AP_PCB         0x2113
96 #define NV_ID_RADAR_3M_HOME_STA_PCB        0x2114
97 #define NV_ID_RADAR_3M_HALL_STA_PCB        0x2115
98 #define NV_ID_RADAR_3M_HOME_AP_PCB         0x2116
99 #define NV_ID_RADAR_3M_HALL_AP_PCB         0x2117
100 #define NV_ID_RADAR_RCV1                   0x2118
101 #define NV_ID_RADAR_RCV2                   0x2119
102 #define NV_ID_RADAR_RCV3                   0x211A
103 #define NV_ID_RADAR_RCV4                   0x211B
104 #define NV_ID_RADAR_RCV5                   0x211C
105 #define NV_ID_RADAR_RCV6                   0x211D
106 #define NV_ID_RADAR_RCV7                   0x211E
107 #define NV_ID_RADAR_RCV8                   0x211F
108 #define NV_ID_RADAR_CTRL                   0x2140
109 
110 #define NV_ID_HILINK_ENTRY_MODE            0x2150 /* hilink entry mode */
111 #define NV_ID_HILINK_CONNECT_INFO          0x2151 /* hilink connect info */
112 /* system stable key_id [0x3000,0x4000) */
113 #define NV_ID_SYSTEM_STABLE_AREA_START     0x3000 /* Not a real key_id , just used for region determination. */
114 
115 /* user stable key_id [0x4000,0x5000) */
116 #define NV_ID_USER_STABLE_AREA_START       0x4000 /* Not a real key_id , just used for region determination. */
117 
118 /* user normal key_id [0x5000,0xFFFF) */
119 #define NV_ID_USER_NORMAL_AREA_START      0x5000 /* Not a real key_id , just used for region determination. */
120 #define NV_ID_RESTORE_ENABLE              0xA000 /* NV restore factory region flag */
121 
122 #endif /* __KEY_ID_H__ */
123