Debian Codegraph @

src/vendorcode/cavium/include/bdk/libbdk-arch/bdk-csrs-fus.h

raw symbols SCIP
1 #ifndef __BDK_CSRS_FUS_H__
2 #define __BDK_CSRS_FUS_H__
3 /* This file is auto-generated. Do not edit */
4
5 /***********************license start***************
6 * Copyright (c) 2003-2017 Cavium Inc. ([email protected]). All rights
7 * reserved.
8 *
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are
12 * met:
13 *
14 * * Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 *
17 * * Redistributions in binary form must reproduce the above
18 * copyright notice, this list of conditions and the following
19 * disclaimer in the documentation and/or other materials provided
20 * with the distribution.
21
22 * * Neither the name of Cavium Inc. nor the names of
23 * its contributors may be used to endorse or promote products
24 * derived from this software without specific prior written
25 * permission.
26
27 * This Software, including technical data, may be subject to U.S. export control
28 * laws, including the U.S. Export Administration Act and its associated
29 * regulations, and may be subject to export or import regulations in other
30 * countries.
31
32 * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
33 * AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR
34 * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO
35 * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR
36 * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM
37 * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE,
38 * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF
39 * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
40 * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR
41 * PERFORMANCE OF THE SOFTWARE LIES WITH YOU.
42 ***********************license end**************************************/
43
44
45 /**
46 * @file
47 *
48 * Configuration and status register (CSR) address and type definitions for
49 * Cavium FUS.
50 *
51 * This file is auto generated. Do not edit.
52 *
53 */
54
55 /**
56 * Enumeration fus_bar_e
57 *
58 * Fuse Base Address Register Enumeration
59 * Enumerates the base address registers.
60 */
61 #define BDK_FUS_BAR_E_FUS_PF_BAR0 (0x87e003000000ll)
62 #define BDK_FUS_BAR_E_FUS_PF_BAR0_SIZE 0x10000ull
63
64 /**
65 * Enumeration fus_fuse_num_e
66 *
67 * INTERNAL: Fuse Number Enumeration
68 *
69 * Enumerates the fuse numbers.
70 */
71 #define BDK_FUS_FUSE_NUM_E_ALT_BANKX(a) (0xf80 + (a))
72 #define BDK_FUS_FUSE_NUM_E_ALT_FUSEX(a) (0x7b + (a))
73 #define BDK_FUS_FUSE_NUM_E_AP_CRIPPLEX(a) (0x180 + (a))
74 #define BDK_FUS_FUSE_NUM_E_AP_NOCRYPTOX(a) (0x200 + (a))
75 #define BDK_FUS_FUSE_NUM_E_AP_POWER_LIMITX(a) (0x259 + (a))
76 #define BDK_FUS_FUSE_NUM_E_BCH_DISABLE (0x202)
77 #define BDK_FUS_FUSE_NUM_E_BISR_FUSED_ONLY (0x53)
78 #define BDK_FUS_FUSE_NUM_E_BSR_LOBE_DISABLEX(a) (0x290 + (a))
79 #define BDK_FUS_FUSE_NUM_E_CGX_CRIPPLEX(a) (0x228 + (a))
80 #define BDK_FUS_FUSE_NUM_E_CHIP_IDX(a) (8 + (a))
81 #define BDK_FUS_FUSE_NUM_E_CHIP_TYPEX(a) (0 + (a))
82 #define BDK_FUS_FUSE_NUM_E_CORE_INIT_MULX(a) (0x43 + (a))
83 #define BDK_FUS_FUSE_NUM_E_CORE_INIT_PLL (0x4a)
84 #define BDK_FUS_FUSE_NUM_E_CORE_MAX_MULX(a) (0x4b + (a))
85 #define BDK_FUS_FUSE_NUM_E_CPT0_NOCRYPTOX(a) (0x255 + (a))
86 #define BDK_FUS_FUSE_NUM_E_CPT1_NOCRYPTOX(a) (0x257 + (a))
87 #define BDK_FUS_FUSE_NUM_E_CPT_EXE_DISABLEX(a) (0x580 + (a))
88 #define BDK_FUS_FUSE_NUM_E_CPT_INIT_MULX(a) (0x5d + (a))
89 #define BDK_FUS_FUSE_NUM_E_CPT_INIT_PLL (0x64)
90 #define BDK_FUS_FUSE_NUM_E_CPT_MAX_MULX(a) (0x65 + (a))
91 #define BDK_FUS_FUSE_NUM_E_DESX(a) (0x540 + (a))
92 #define BDK_FUS_FUSE_NUM_E_DFA_INFO_CLMX(a) (0x220 + (a))
93 #define BDK_FUS_FUSE_NUM_E_DFA_INFO_DTEX(a) (0x21d + (a))
94 #define BDK_FUS_FUSE_NUM_E_DLL0_PD_DELAYX(a) (0x88 + (a))
95 #define BDK_FUS_FUSE_NUM_E_DLL0_SETTINGSX(a) (0x80 + (a))
96 #define BDK_FUS_FUSE_NUM_E_DLL10_PD_DELAYX(a) (0x100 + (a))
97 #define BDK_FUS_FUSE_NUM_E_DLL10_SETTINGSX(a) (0xf8 + (a))
98 #define BDK_FUS_FUSE_NUM_E_DLL11_PD_DELAYX(a) (0x10c + (a))
99 #define BDK_FUS_FUSE_NUM_E_DLL11_SETTINGSX(a) (0x104 + (a))
100 #define BDK_FUS_FUSE_NUM_E_DLL12_PD_DELAYX(a) (0x118 + (a))
101 #define BDK_FUS_FUSE_NUM_E_DLL12_SETTINGSX(a) (0x110 + (a))
102 #define BDK_FUS_FUSE_NUM_E_DLL13_PD_DELAYX(a) (0x124 + (a))
103 #define BDK_FUS_FUSE_NUM_E_DLL13_SETTINGSX(a) (0x11c + (a))
104 #define BDK_FUS_FUSE_NUM_E_DLL14_PD_DELAYX(a) (0x130 + (a))
105 #define BDK_FUS_FUSE_NUM_E_DLL14_SETTINGSX(a) (0x128 + (a))
106 #define BDK_FUS_FUSE_NUM_E_DLL15_PD_DELAYX(a) (0x13c + (a))
107 #define BDK_FUS_FUSE_NUM_E_DLL15_SETTINGSX(a) (0x134 + (a))
108 #define BDK_FUS_FUSE_NUM_E_DLL1_PD_DELAYX(a) (0x94 + (a))
109 #define BDK_FUS_FUSE_NUM_E_DLL1_SETTINGSX(a) (0x8c + (a))
110 #define BDK_FUS_FUSE_NUM_E_DLL2_PD_DELAYX(a) (0xa0 + (a))
111 #define BDK_FUS_FUSE_NUM_E_DLL2_SETTINGSX(a) (0x98 + (a))
112 #define BDK_FUS_FUSE_NUM_E_DLL3_PD_DELAYX(a) (0xac + (a))
113 #define BDK_FUS_FUSE_NUM_E_DLL3_SETTINGSX(a) (0xa4 + (a))
114 #define BDK_FUS_FUSE_NUM_E_DLL4_PD_DELAYX(a) (0xb8 + (a))
115 #define BDK_FUS_FUSE_NUM_E_DLL4_SETTINGSX(a) (0xb0 + (a))
116 #define BDK_FUS_FUSE_NUM_E_DLL5_PD_DELAYX(a) (0xc4 + (a))
117 #define BDK_FUS_FUSE_NUM_E_DLL5_SETTINGSX(a) (0xbc + (a))
118 #define BDK_FUS_FUSE_NUM_E_DLL6_PD_DELAYX(a) (0xd0 + (a))
119 #define BDK_FUS_FUSE_NUM_E_DLL6_SETTINGSX(a) (0xc8 + (a))
120 #define BDK_FUS_FUSE_NUM_E_DLL7_PD_DELAYX(a) (0xdc + (a))
121 #define BDK_FUS_FUSE_NUM_E_DLL7_SETTINGSX(a) (0xd4 + (a))
122 #define BDK_FUS_FUSE_NUM_E_DLL8_PD_DELAYX(a) (0xe8 + (a))
123 #define BDK_FUS_FUSE_NUM_E_DLL8_SETTINGSX(a) (0xe0 + (a))
124 #define BDK_FUS_FUSE_NUM_E_DLL9_PD_DELAYX(a) (0xf4 + (a))
125 #define BDK_FUS_FUSE_NUM_E_DLL9_SETTINGSX(a) (0xec + (a))
126 #define BDK_FUS_FUSE_NUM_E_DLL_INIT_SETTINGSX(a) (0x6c + (a))
127 #define BDK_FUS_FUSE_NUM_E_DLL_LOCK_FREEZE (0x54)
128 #define BDK_FUS_FUSE_NUM_E_DLL_REFRESH_RATEX(a) (0x55 + (a))
129 #define BDK_FUS_FUSE_NUM_E_DRO_CRIPPLE (0x73)
130 #define BDK_FUS_FUSE_NUM_E_EFUS_LCK_CFG (0x78)
131 #define BDK_FUS_FUSE_NUM_E_EFUS_LCK_MAN (0x79)
132 #define BDK_FUS_FUSE_NUM_E_EFUS_LCK_PRD (0x7a)
133 #define BDK_FUS_FUSE_NUM_E_EMA0X(a) (0x10 + (a))
134 #define BDK_FUS_FUSE_NUM_E_EMA1X(a) (0x16 + (a))
135 #define BDK_FUS_FUSE_NUM_E_EMA2X(a) (0x1c + (a))
136 #define BDK_FUS_FUSE_NUM_E_EMA3X(a) (0x23 + (a))
137 #define BDK_FUS_FUSE_NUM_E_EMA4X(a) (0x25 + (a))
138 #define BDK_FUS_FUSE_NUM_E_EMA5 (0x28)
139 #define BDK_FUS_FUSE_NUM_E_FDFX(a) (0xa00 + (a))
140 #define BDK_FUS_FUSE_NUM_E_GSER_ERCX(a) (0xf00 + (a))
141 #define BDK_FUS_FUSE_NUM_E_LLC_CRIPPLEX(a) (0x216 + (a))
142 #define BDK_FUS_FUSE_NUM_E_LMC_CRIPPLEX(a) (0x283 + (a))
143 #define BDK_FUS_FUSE_NUM_E_LMC_HALF (0x203)
144 #define BDK_FUS_FUSE_NUM_E_METAL_FIXX(a) (0x2c + (a))
145 #define BDK_FUS_FUSE_NUM_E_MFG_INFOX(a) (0x400 + (a))
146 #define BDK_FUS_FUSE_NUM_E_MLC_CRIPPLEX(a) (0x219 + (a))
147 #define BDK_FUS_FUSE_NUM_E_NODE1TRAPENA (0x250)
148 #define BDK_FUS_FUSE_NUM_E_NODFA_CP2 (0x21c)
149 #define BDK_FUS_FUSE_NUM_E_NPC_CRIPPLE (0x280)
150 #define BDK_FUS_FUSE_NUM_E_OCX_CRIPPLE (0x227)
151 #define BDK_FUS_FUSE_NUM_E_PDFX(a) (0x640 + (a))
152 #define BDK_FUS_FUSE_NUM_E_PEM_CRIPPLEX(a) (0x230 + (a))
153 #define BDK_FUS_FUSE_NUM_E_PNR_INIT_MULX(a) (0x34 + (a))
154 #define BDK_FUS_FUSE_NUM_E_PNR_INIT_PLL (0x3b)
155 #define BDK_FUS_FUSE_NUM_E_PNR_MAX_MULX(a) (0x3c + (a))
156 #define BDK_FUS_FUSE_NUM_E_POWER_LIMITX(a) (0x225 + (a))
157 #define BDK_FUS_FUSE_NUM_E_PVTX(a) (0x680 + (a))
158 #define BDK_FUS_FUSE_NUM_E_RAID_CRIPPLE (0x224)
159 #define BDK_FUS_FUSE_NUM_E_REFCLK_CHECK (0x52)
160 #define BDK_FUS_FUSE_NUM_E_REPAIRX(a) (0x1000 + (a))
161 #define BDK_FUS_FUSE_NUM_E_ROM_INFOX(a) (0x3f0 + (a))
162 #define BDK_FUS_FUSE_NUM_E_RSVD140X(a) (0x140 + (a))
163 #define BDK_FUS_FUSE_NUM_E_RSVD205 (0x205)
164 #define BDK_FUS_FUSE_NUM_E_RSVD251X(a) (0x251 + (a))
165 #define BDK_FUS_FUSE_NUM_E_RSVD254 (0x254)
166 #define BDK_FUS_FUSE_NUM_E_RSVD25BX(a) (0x25b + (a))
167 #define BDK_FUS_FUSE_NUM_E_RSVD264X(a) (0x264 + (a))
168 #define BDK_FUS_FUSE_NUM_E_RSVD281 (0x281)
169 #define BDK_FUS_FUSE_NUM_E_RSVD282 (0x282)
170 #define BDK_FUS_FUSE_NUM_E_RSVD28B (0x28b)
171 #define BDK_FUS_FUSE_NUM_E_RSVD28F (0x28f)
172 #define BDK_FUS_FUSE_NUM_E_RSVD29X(a) (0x29 + (a))
173 #define BDK_FUS_FUSE_NUM_E_RSVD29DX(a) (0x29d + (a))
174 #define BDK_FUS_FUSE_NUM_E_RSVD31X(a) (0x31 + (a))
175 #define BDK_FUS_FUSE_NUM_E_RSVD74 (0x74)
176 #define BDK_FUS_FUSE_NUM_E_RSVD780X(a) (0x780 + (a))
177 #define BDK_FUS_FUSE_NUM_E_RSVD801X(a) (0x801 + (a))
178 #define BDK_FUS_FUSE_NUM_E_RSVD914X(a) (0x914 + (a))
179 #define BDK_FUS_FUSE_NUM_E_RSVDE00X(a) (0xe00 + (a))
180 #define BDK_FUS_FUSE_NUM_E_RUN_PLATFORMX(a) (0x75 + (a))
181 #define BDK_FUS_FUSE_NUM_E_RVU_CRIPPLE (0x28e)
182 #define BDK_FUS_FUSE_NUM_E_SATA_CRIPPLEX(a) (0x260 + (a))
183 #define BDK_FUS_FUSE_NUM_E_SERIALX(a) (0x500 + (a))
184 #define BDK_FUS_FUSE_NUM_E_SSO_CRIPPLE (0x253)
185 #define BDK_FUS_FUSE_NUM_E_TGGX(a) (0x600 + (a))
186 #define BDK_FUS_FUSE_NUM_E_TS0_M_CX(a) (0x810 + (a))
187 #define BDK_FUS_FUSE_NUM_E_TS0_N_OFFX(a) (0x81c + (a))
188 #define BDK_FUS_FUSE_NUM_E_TS0_STROBE_COMP_DLYX(a) (0x827 + (a))
189 #define BDK_FUS_FUSE_NUM_E_TS1_M_CX(a) (0x82a + (a))
190 #define BDK_FUS_FUSE_NUM_E_TS1_N_OFFX(a) (0x836 + (a))
191 #define BDK_FUS_FUSE_NUM_E_TS1_STROBE_COMP_DLYX(a) (0x841 + (a))
192 #define BDK_FUS_FUSE_NUM_E_TS2_M_CX(a) (0x844 + (a))
193 #define BDK_FUS_FUSE_NUM_E_TS2_N_OFFX(a) (0x850 + (a))
194 #define BDK_FUS_FUSE_NUM_E_TS2_STROBE_COMP_DLYX(a) (0x85b + (a))
195 #define BDK_FUS_FUSE_NUM_E_TS3_M_CX(a) (0x85e + (a))
196 #define BDK_FUS_FUSE_NUM_E_TS3_N_OFFX(a) (0x86a + (a))
197 #define BDK_FUS_FUSE_NUM_E_TS3_STROBE_COMP_DLYX(a) (0x875 + (a))
198 #define BDK_FUS_FUSE_NUM_E_TS4_M_CX(a) (0x878 + (a))
199 #define BDK_FUS_FUSE_NUM_E_TS4_N_OFFX(a) (0x884 + (a))
200 #define BDK_FUS_FUSE_NUM_E_TS4_STROBE_COMP_DLYX(a) (0x88f + (a))
201 #define BDK_FUS_FUSE_NUM_E_TS5_M_CX(a) (0x892 + (a))
202 #define BDK_FUS_FUSE_NUM_E_TS5_N_OFFX(a) (0x89e + (a))
203 #define BDK_FUS_FUSE_NUM_E_TS5_STROBE_COMP_DLYX(a) (0x8a9 + (a))
204 #define BDK_FUS_FUSE_NUM_E_TS6_M_CX(a) (0x8ac + (a))
205 #define BDK_FUS_FUSE_NUM_E_TS6_N_OFFX(a) (0x8b8 + (a))
206 #define BDK_FUS_FUSE_NUM_E_TS6_STROBE_COMP_DLYX(a) (0x8c3 + (a))
207 #define BDK_FUS_FUSE_NUM_E_TS7_M_CX(a) (0x8c6 + (a))
208 #define BDK_FUS_FUSE_NUM_E_TS7_N_OFFX(a) (0x8d2 + (a))
209 #define BDK_FUS_FUSE_NUM_E_TS7_STROBE_COMP_DLYX(a) (0x8dd + (a))
210 #define BDK_FUS_FUSE_NUM_E_TS8_M_CX(a) (0x8e0 + (a))
211 #define BDK_FUS_FUSE_NUM_E_TS8_N_OFFX(a) (0x8ec + (a))
212 #define BDK_FUS_FUSE_NUM_E_TS8_STROBE_COMP_DLYX(a) (0x8f7 + (a))
213 #define BDK_FUS_FUSE_NUM_E_TS9_M_CX(a) (0x8fa + (a))
214 #define BDK_FUS_FUSE_NUM_E_TS9_N_OFFX(a) (0x906 + (a))
215 #define BDK_FUS_FUSE_NUM_E_TS9_STROBE_COMP_DLYX(a) (0x911 + (a))
216 #define BDK_FUS_FUSE_NUM_E_TS_CALBRATED (0x800)
217 #define BDK_FUS_FUSE_NUM_E_USBDRD_CRIPPLEX(a) (0x28c + (a))
218 #define BDK_FUS_FUSE_NUM_E_ZIP_CRIPPLEX(a) (0x206 + (a))
219 #define BDK_FUS_FUSE_NUM_E_ZIP_CTL_DISABLE (0x204)
220
221 /**
222 * Register (RSL) fus_bnk_dat#
223 *
224 * Fuse Bank Store Register
225 * The initial state of FUS_BNK_DAT() is as if bank6 were just read,
226 * i.e. DAT* = fus[895:768].
227 */
228 union bdk_fus_bnk_datx
229 {
230 uint64_t u;
231 struct bdk_fus_bnk_datx_s
232 {
233 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
234 uint64_t dat : 64; /**< [ 63: 0](R/W/H) Efuse bank store. For read operations, [DAT] gets the fus bank last read. For write
235 operations, the [DAT] determines which fuses to blow. */
236 #else /* Word 0 - Little Endian */
237 uint64_t dat : 64; /**< [ 63: 0](R/W/H) Efuse bank store. For read operations, [DAT] gets the fus bank last read. For write
238 operations, the [DAT] determines which fuses to blow. */
239 #endif /* Word 0 - End */
240 } s;
241 /* struct bdk_fus_bnk_datx_s cn; */
242 };
243 typedef union bdk_fus_bnk_datx bdk_fus_bnk_datx_t;
244
245 static inline uint64_t BDK_FUS_BNK_DATX(unsigned long a) __attribute__ ((pure, always_inline));
246 static inline uint64_t BDK_FUS_BNK_DATX(unsigned long a)
247 {
248 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=1))
249 return 0x87e003001520ll + 8ll * ((a) & 0x1);
250 __bdk_csr_fatal("FUS_BNK_DATX", 1, a, 0, 0, 0);
251 }
252
253 #define typedef_BDK_FUS_BNK_DATX(a) bdk_fus_bnk_datx_t
254 #define bustype_BDK_FUS_BNK_DATX(a) BDK_CSR_TYPE_RSL
255 #define basename_BDK_FUS_BNK_DATX(a) "FUS_BNK_DATX"
256 #define device_bar_BDK_FUS_BNK_DATX(a) 0x0 /* PF_BAR0 */
257 #define busnum_BDK_FUS_BNK_DATX(a) (a)
258 #define arguments_BDK_FUS_BNK_DATX(a) (a),-1,-1,-1
259
260 /**
261 * Register (RSL) fus_cache#
262 *
263 * Fuse Cache Register
264 * This register returns the cached state of every fuse, organized into 64-fuse
265 * chunks. Each bit corresponds to a fuse enumerated by FUS_FUSE_NUM_E.
266 */
267 union bdk_fus_cachex
268 {
269 uint64_t u;
270 struct bdk_fus_cachex_s
271 {
272 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
273 uint64_t data : 64; /**< [ 63: 0](RO/H) Reads the cached fuse value.
274 Modifications to the cache will take effect on the next
275 chip domain reset and are lost on a cold domain reset. */
276 #else /* Word 0 - Little Endian */
277 uint64_t data : 64; /**< [ 63: 0](RO/H) Reads the cached fuse value.
278 Modifications to the cache will take effect on the next
279 chip domain reset and are lost on a cold domain reset. */
280 #endif /* Word 0 - End */
281 } s;
282 /* struct bdk_fus_cachex_s cn; */
283 };
284 typedef union bdk_fus_cachex bdk_fus_cachex_t;
285
286 static inline uint64_t BDK_FUS_CACHEX(unsigned long a) __attribute__ ((pure, always_inline));
287 static inline uint64_t BDK_FUS_CACHEX(unsigned long a)
288 {
289 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=63))
290 return 0x87e003001000ll + 8ll * ((a) & 0x3f);
291 __bdk_csr_fatal("FUS_CACHEX", 1, a, 0, 0, 0);
292 }
293
294 #define typedef_BDK_FUS_CACHEX(a) bdk_fus_cachex_t
295 #define bustype_BDK_FUS_CACHEX(a) BDK_CSR_TYPE_RSL
296 #define basename_BDK_FUS_CACHEX(a) "FUS_CACHEX"
297 #define device_bar_BDK_FUS_CACHEX(a) 0x0 /* PF_BAR0 */
298 #define busnum_BDK_FUS_CACHEX(a) (a)
299 #define arguments_BDK_FUS_CACHEX(a) (a),-1,-1,-1
300
301 /**
302 * Register (RSL) fus_const
303 *
304 * Fuse Constants Register
305 */
306 union bdk_fus_const
307 {
308 uint64_t u;
309 struct bdk_fus_const_s
310 {
311 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
312 uint64_t reserved_16_63 : 48;
313 uint64_t repair_banks : 8; /**< [ 15: 8](RO) Number of 128-bit memory repair banks present. */
314 uint64_t fuse_banks : 8; /**< [ 7: 0](RO) Number of 128-bit general purpose fuse banks present. */
315 #else /* Word 0 - Little Endian */
316 uint64_t fuse_banks : 8; /**< [ 7: 0](RO) Number of 128-bit general purpose fuse banks present. */
317 uint64_t repair_banks : 8; /**< [ 15: 8](RO) Number of 128-bit memory repair banks present. */
318 uint64_t reserved_16_63 : 48;
319 #endif /* Word 0 - End */
320 } s;
321 /* struct bdk_fus_const_s cn; */
322 };
323 typedef union bdk_fus_const bdk_fus_const_t;
324
325 #define BDK_FUS_CONST BDK_FUS_CONST_FUNC()
326 static inline uint64_t BDK_FUS_CONST_FUNC(void) __attribute__ ((pure, always_inline));
327 static inline uint64_t BDK_FUS_CONST_FUNC(void)
328 {
329 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
330 return 0x87e003001578ll;
331 __bdk_csr_fatal("FUS_CONST", 0, 0, 0, 0, 0);
332 }
333
334 #define typedef_BDK_FUS_CONST bdk_fus_const_t
335 #define bustype_BDK_FUS_CONST BDK_CSR_TYPE_RSL
336 #define basename_BDK_FUS_CONST "FUS_CONST"
337 #define device_bar_BDK_FUS_CONST 0x0 /* PF_BAR0 */
338 #define busnum_BDK_FUS_CONST 0
339 #define arguments_BDK_FUS_CONST -1,-1,-1,-1
340
341 /**
342 * Register (RSL) fus_prog
343 *
344 * INTERNAL: Fuse Programming Register
345 */
346 union bdk_fus_prog
347 {
348 uint64_t u;
349 struct bdk_fus_prog_s
350 {
351 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
352 uint64_t reserved_16_63 : 48;
353 uint64_t efuse : 1; /**< [ 15: 15](R/W) Efuse storage. When set, the data is written directly to the efuse
354 bank. When cleared, data is soft blown to local storage.
355 A soft blown fuse is subject to lockdown fuses.
356 Soft blown fuses will become active after a chip domain reset
357 but will not persist through a cold domain reset. */
358 uint64_t voltage : 1; /**< [ 14: 14](RO) Efuse programming voltage status. When set, EFUSE banks have
359 programming voltage applied. Required to be set when
360 programming fuses (ie. [EFUSE] and [PROG] set). */
361 uint64_t reserved_13 : 1;
362 uint64_t prog : 1; /**< [ 12: 12](R/W/H) Internal:
363 When written to one by software, blow the fuse bank. Hardware will
364 clear the field when the program operation is complete.
365 To write a bank of fuses, software must write the fuse data into
366 FUS_BNK_DAT(). Then it writes the ADDR and EFUSE fields of this register
367 and sets the PROG bit. Hardware will clear the [PROG] when the write is
368 completed. New fuses will become active after a chip domain reset. */
369 uint64_t reserved_11 : 1;
370 uint64_t addr : 7; /**< [ 10: 4](R/W) Indicates which of the banks of 128 fuses to blow. Software
371 should not change this field while the FUS_PROG[PROG] bit is set. */
372 uint64_t reserved_0_3 : 4;
373 #else /* Word 0 - Little Endian */
374 uint64_t reserved_0_3 : 4;
375 uint64_t addr : 7; /**< [ 10: 4](R/W) Indicates which of the banks of 128 fuses to blow. Software
376 should not change this field while the FUS_PROG[PROG] bit is set. */
377 uint64_t reserved_11 : 1;
378 uint64_t prog : 1; /**< [ 12: 12](R/W/H) Internal:
379 When written to one by software, blow the fuse bank. Hardware will
380 clear the field when the program operation is complete.
381 To write a bank of fuses, software must write the fuse data into
382 FUS_BNK_DAT(). Then it writes the ADDR and EFUSE fields of this register
383 and sets the PROG bit. Hardware will clear the [PROG] when the write is
384 completed. New fuses will become active after a chip domain reset. */
385 uint64_t reserved_13 : 1;
386 uint64_t voltage : 1; /**< [ 14: 14](RO) Efuse programming voltage status. When set, EFUSE banks have
387 programming voltage applied. Required to be set when
388 programming fuses (ie. [EFUSE] and [PROG] set). */
389 uint64_t efuse : 1; /**< [ 15: 15](R/W) Efuse storage. When set, the data is written directly to the efuse
390 bank. When cleared, data is soft blown to local storage.
391 A soft blown fuse is subject to lockdown fuses.
392 Soft blown fuses will become active after a chip domain reset
393 but will not persist through a cold domain reset. */
394 uint64_t reserved_16_63 : 48;
395 #endif /* Word 0 - End */
396 } s;
397 /* struct bdk_fus_prog_s cn; */
398 };
399 typedef union bdk_fus_prog bdk_fus_prog_t;
400
401 #define BDK_FUS_PROG BDK_FUS_PROG_FUNC()
402 static inline uint64_t BDK_FUS_PROG_FUNC(void) __attribute__ ((pure, always_inline));
403 static inline uint64_t BDK_FUS_PROG_FUNC(void)
404 {
405 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
406 return 0x87e003001510ll;
407 __bdk_csr_fatal("FUS_PROG", 0, 0, 0, 0, 0);
408 }
409
410 #define typedef_BDK_FUS_PROG bdk_fus_prog_t
411 #define bustype_BDK_FUS_PROG BDK_CSR_TYPE_RSL
412 #define basename_BDK_FUS_PROG "FUS_PROG"
413 #define device_bar_BDK_FUS_PROG 0x0 /* PF_BAR0 */
414 #define busnum_BDK_FUS_PROG 0
415 #define arguments_BDK_FUS_PROG -1,-1,-1,-1
416
417 /**
418 * Register (RSL) fus_rcmd
419 *
420 * Fuse Read Command Register
421 * Read Fuse Banks.
422 */
423 union bdk_fus_rcmd
424 {
425 uint64_t u;
426 struct bdk_fus_rcmd_s
427 {
428 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
429 uint64_t reserved_16_63 : 48;
430 uint64_t efuse : 1; /**< [ 15: 15](R/W) Efuse storage. When set, the return data is from the efuse
431 bank directly. When cleared data is read from the local storage. */
432 uint64_t voltage : 1; /**< [ 14: 14](RO) Efuse programming voltage status. When set, EFUSE banks have
433 programming voltage applied. Required to be cleared when
434 reading fuses directly (ie. [EFUSE] and [PEND] set). */
435 uint64_t reserved_13 : 1;
436 uint64_t pend : 1; /**< [ 12: 12](R/W/H) Software sets this bit to one on a write operation that starts
437 the fuse read operation. Hardware clears this bit when the read
438 operation is complete and FUS_BNK_DAT() is valid.
439 FUS_READ_TIMES[RDSTB_WH] determines the time for the operation
440 to complete. */
441 uint64_t reserved_11 : 1;
442 uint64_t addr : 7; /**< [ 10: 4](R/W) Address. Specifies the bank address of 128 fuses to read.
443 Software should not change this field while [PEND]
444 is set. It must wait for the hardware to clear it. */
445 uint64_t reserved_0_3 : 4;
446 #else /* Word 0 - Little Endian */
447 uint64_t reserved_0_3 : 4;
448 uint64_t addr : 7; /**< [ 10: 4](R/W) Address. Specifies the bank address of 128 fuses to read.
449 Software should not change this field while [PEND]
450 is set. It must wait for the hardware to clear it. */
451 uint64_t reserved_11 : 1;
452 uint64_t pend : 1; /**< [ 12: 12](R/W/H) Software sets this bit to one on a write operation that starts
453 the fuse read operation. Hardware clears this bit when the read
454 operation is complete and FUS_BNK_DAT() is valid.
455 FUS_READ_TIMES[RDSTB_WH] determines the time for the operation
456 to complete. */
457 uint64_t reserved_13 : 1;
458 uint64_t voltage : 1; /**< [ 14: 14](RO) Efuse programming voltage status. When set, EFUSE banks have
459 programming voltage applied. Required to be cleared when
460 reading fuses directly (ie. [EFUSE] and [PEND] set). */
461 uint64_t efuse : 1; /**< [ 15: 15](R/W) Efuse storage. When set, the return data is from the efuse
462 bank directly. When cleared data is read from the local storage. */
463 uint64_t reserved_16_63 : 48;
464 #endif /* Word 0 - End */
465 } s;
466 /* struct bdk_fus_rcmd_s cn; */
467 };
468 typedef union bdk_fus_rcmd bdk_fus_rcmd_t;
469
470 #define BDK_FUS_RCMD BDK_FUS_RCMD_FUNC()
471 static inline uint64_t BDK_FUS_RCMD_FUNC(void) __attribute__ ((pure, always_inline));
472 static inline uint64_t BDK_FUS_RCMD_FUNC(void)
473 {
474 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
475 return 0x87e003001500ll;
476 __bdk_csr_fatal("FUS_RCMD", 0, 0, 0, 0, 0);
477 }
478
479 #define typedef_BDK_FUS_RCMD bdk_fus_rcmd_t
480 #define bustype_BDK_FUS_RCMD BDK_CSR_TYPE_RSL
481 #define basename_BDK_FUS_RCMD "FUS_RCMD"
482 #define device_bar_BDK_FUS_RCMD 0x0 /* PF_BAR0 */
483 #define busnum_BDK_FUS_RCMD 0
484 #define arguments_BDK_FUS_RCMD -1,-1,-1,-1
485
486 /**
487 * Register (RSL) fus_read_times
488 *
489 * Fuse Read Times Register
490 * The reset values correspond to accesses of internal fuses with PLL reference clock
491 * up to 115 MHz. If any of the formulas below result in a value less than 0x0, the
492 * corresponding timing parameter should be set to zero.
493 *
494 * Prior to issuing a read operation to the fuse banks (via FUS_RCMD),
495 * this register should be written with the timing parameters that will be read.
496 * This register should not be written while FUS_RCMD[PEND] = 1.
497 */
498 union bdk_fus_read_times
499 {
500 uint64_t u;
501 struct bdk_fus_read_times_s
502 {
503 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
504 uint64_t reserved_32_63 : 32;
505 uint64_t done : 4; /**< [ 31: 28](R/W) Hold time of CSB, PGENB, and LOAD with respect to falling edge
506 of STROBE for read and write mode in PLL_REF_CLK + 1 cycles.
507 Timing specs are th_CS = 6 ns, th_PG = 10 ns, th_LD_p = 7 ns.
508 Default of 0x0 yields 8.7 ns at 115 MHz. */
509 uint64_t ahd : 4; /**< [ 27: 24](R/W) Hold time of A with respect to falling edge of STROBE
510 for read and write modes in PLL_REF_CLK + 1 cycles.
511 Timing spec of tsu_A_r and tsu_A_p is 3 ns min.
512 Default of 0x0 yields 8.7 ns at 115MHz. */
513 uint64_t wrstb_wh : 12; /**< [ 23: 12](R/W) Pulse width high of STROBE in write mode in PLL_REF_CLK + 1 cycles.
514 Timing spec of twh_SB_p is 9.8 us max.
515 Default of 0x3E8 yields 8.7 us at 115MHz. */
516 uint64_t rdstb_wh : 4; /**< [ 11: 8](R/W) Pulse width high of STROBE in read mode in PLL_REF_CLK + 1 cycles.
517 Timing spec of twh_SB_p is 20 ns min.
518 Default of 0x2 yields 26.1 ns at 115 MHz. */
519 uint64_t asu : 4; /**< [ 7: 4](R/W) Setup time of A to rising edge of STROBE for read and write
520 modes in PLL_REF_CLK cycles.
521 Timing spec of tsu_A_r and tsu_A_p is 12 ns min.
522 Default of 0x1 yields 17.4 ns at 115 MHz. */
523 uint64_t setup : 4; /**< [ 3: 0](R/W) Setup time of CSB, PGENB, LOAD to rising edge of STROBE
524 in read and write modes in PLL_REF_CLK + 1 cycles.
525 tsu_CS = 16 ns, tsu_PG = 14 ns, tsu_LD_r = 10 ns.
526 Default of 0x0 yields 8.7 ns plus ASU cycles at 115 MHz. */
527 #else /* Word 0 - Little Endian */
528 uint64_t setup : 4; /**< [ 3: 0](R/W) Setup time of CSB, PGENB, LOAD to rising edge of STROBE
529 in read and write modes in PLL_REF_CLK + 1 cycles.
530 tsu_CS = 16 ns, tsu_PG = 14 ns, tsu_LD_r = 10 ns.
531 Default of 0x0 yields 8.7 ns plus ASU cycles at 115 MHz. */
532 uint64_t asu : 4; /**< [ 7: 4](R/W) Setup time of A to rising edge of STROBE for read and write
533 modes in PLL_REF_CLK cycles.
534 Timing spec of tsu_A_r and tsu_A_p is 12 ns min.
535 Default of 0x1 yields 17.4 ns at 115 MHz. */
536 uint64_t rdstb_wh : 4; /**< [ 11: 8](R/W) Pulse width high of STROBE in read mode in PLL_REF_CLK + 1 cycles.
537 Timing spec of twh_SB_p is 20 ns min.
538 Default of 0x2 yields 26.1 ns at 115 MHz. */
539 uint64_t wrstb_wh : 12; /**< [ 23: 12](R/W) Pulse width high of STROBE in write mode in PLL_REF_CLK + 1 cycles.
540 Timing spec of twh_SB_p is 9.8 us max.
541 Default of 0x3E8 yields 8.7 us at 115MHz. */
542 uint64_t ahd : 4; /**< [ 27: 24](R/W) Hold time of A with respect to falling edge of STROBE
543 for read and write modes in PLL_REF_CLK + 1 cycles.
544 Timing spec of tsu_A_r and tsu_A_p is 3 ns min.
545 Default of 0x0 yields 8.7 ns at 115MHz. */
546 uint64_t done : 4; /**< [ 31: 28](R/W) Hold time of CSB, PGENB, and LOAD with respect to falling edge
547 of STROBE for read and write mode in PLL_REF_CLK + 1 cycles.
548 Timing specs are th_CS = 6 ns, th_PG = 10 ns, th_LD_p = 7 ns.
549 Default of 0x0 yields 8.7 ns at 115 MHz. */
550 uint64_t reserved_32_63 : 32;
551 #endif /* Word 0 - End */
552 } s;
553 /* struct bdk_fus_read_times_s cn; */
554 };
555 typedef union bdk_fus_read_times bdk_fus_read_times_t;
556
557 #define BDK_FUS_READ_TIMES BDK_FUS_READ_TIMES_FUNC()
558 static inline uint64_t BDK_FUS_READ_TIMES_FUNC(void) __attribute__ ((pure, always_inline));
559 static inline uint64_t BDK_FUS_READ_TIMES_FUNC(void)
560 {
561 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
562 return 0x87e003001570ll;
563 __bdk_csr_fatal("FUS_READ_TIMES", 0, 0, 0, 0, 0);
564 }
565
566 #define typedef_BDK_FUS_READ_TIMES bdk_fus_read_times_t
567 #define bustype_BDK_FUS_READ_TIMES BDK_CSR_TYPE_RSL
568 #define basename_BDK_FUS_READ_TIMES "FUS_READ_TIMES"
569 #define device_bar_BDK_FUS_READ_TIMES 0x0 /* PF_BAR0 */
570 #define busnum_BDK_FUS_READ_TIMES 0
571 #define arguments_BDK_FUS_READ_TIMES -1,-1,-1,-1
572
573 /**
574 * Register (RSL) fus_soft_repair
575 *
576 * INTERNAL: Fuse Soft Repair Register
577 *
578 * Internal:
579 * Aka `soft blow'. Upon reset fuse repairs are loaded into FUS_FUSE_NUM_E::REPAIR()
580 * fuses as they are loaded into the memories.
581 */
582 union bdk_fus_soft_repair
583 {
584 uint64_t u;
585 struct bdk_fus_soft_repair_s
586 {
587 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
588 uint64_t reserved_48_63 : 16;
589 uint64_t auto_dly : 16; /**< [ 47: 32](R/W/H) Internal:
590 Autoblow Delay. Power supply ramp delay in 1uS increments from enabling
591 [AUTOBLOW] to programming first bit. */
592 uint64_t reserved_18_31 : 14;
593 uint64_t autoblow : 1; /**< [ 17: 17](R/W/H) Internal:
594 Set to initiate burning of defect fuses to fuse macro. Clears when fuses are
595 blown. */
596 uint64_t reserved_16 : 1;
597 uint64_t numdefects : 8; /**< [ 15: 8](RO/H) Internal:
598 After reset/BIST indicates the number of memory defects reported. Defects are
599 stored in fuses FUS_FUSE_NUM_E::REPAIR() from index [NUMREPAIRS]*32 to
600 ([NUMREPAIRS]*32 + [NUMDEFECTS]*32 - 1). */
601 uint64_t numrepairs : 8; /**< [ 7: 0](R/W) Internal:
602 Indicates the number of repairs loaded from repair mem to the memories on
603 the last chip/core/mcp/scp reset. */
604 #else /* Word 0 - Little Endian */
605 uint64_t numrepairs : 8; /**< [ 7: 0](R/W) Internal:
606 Indicates the number of repairs loaded from repair mem to the memories on
607 the last chip/core/mcp/scp reset. */
608 uint64_t numdefects : 8; /**< [ 15: 8](RO/H) Internal:
609 After reset/BIST indicates the number of memory defects reported. Defects are
610 stored in fuses FUS_FUSE_NUM_E::REPAIR() from index [NUMREPAIRS]*32 to
611 ([NUMREPAIRS]*32 + [NUMDEFECTS]*32 - 1). */
612 uint64_t reserved_16 : 1;
613 uint64_t autoblow : 1; /**< [ 17: 17](R/W/H) Internal:
614 Set to initiate burning of defect fuses to fuse macro. Clears when fuses are
615 blown. */
616 uint64_t reserved_18_31 : 14;
617 uint64_t auto_dly : 16; /**< [ 47: 32](R/W/H) Internal:
618 Autoblow Delay. Power supply ramp delay in 1uS increments from enabling
619 [AUTOBLOW] to programming first bit. */
620 uint64_t reserved_48_63 : 16;
621 #endif /* Word 0 - End */
622 } s;
623 /* struct bdk_fus_soft_repair_s cn; */
624 };
625 typedef union bdk_fus_soft_repair bdk_fus_soft_repair_t;
626
627 #define BDK_FUS_SOFT_REPAIR BDK_FUS_SOFT_REPAIR_FUNC()
628 static inline uint64_t BDK_FUS_SOFT_REPAIR_FUNC(void) __attribute__ ((pure, always_inline));
629 static inline uint64_t BDK_FUS_SOFT_REPAIR_FUNC(void)
630 {
631 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
632 return 0x87e003001540ll;
633 __bdk_csr_fatal("FUS_SOFT_REPAIR", 0, 0, 0, 0, 0);
634 }
635
636 #define typedef_BDK_FUS_SOFT_REPAIR bdk_fus_soft_repair_t
637 #define bustype_BDK_FUS_SOFT_REPAIR BDK_CSR_TYPE_RSL
638 #define basename_BDK_FUS_SOFT_REPAIR "FUS_SOFT_REPAIR"
639 #define device_bar_BDK_FUS_SOFT_REPAIR 0x0 /* PF_BAR0 */
640 #define busnum_BDK_FUS_SOFT_REPAIR 0
641 #define arguments_BDK_FUS_SOFT_REPAIR -1,-1,-1,-1
642
643 #endif /* __BDK_CSRS_FUS_H__ */