Debian Codegraph @

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

raw symbols SCIP
1 #ifndef __BDK_CSRS_PCCBR_H__
2 #define __BDK_CSRS_PCCBR_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 PCCBR.
50 *
51 * This file is auto generated. Do not edit.
52 *
53 */
54
55 /**
56 * Register (PCCBR) pccbr_xxx_acs_cap_ctl
57 *
58 * PCC PF ACS Capability and Control Register
59 * This register is the header of the eight-byte PCI access control services
60 * capability structure.
61 *
62 * This register is reset on a chip domain reset.
63 */
64 union bdk_pccbr_xxx_acs_cap_ctl
65 {
66 uint32_t u;
67 struct bdk_pccbr_xxx_acs_cap_ctl_s
68 {
69 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
70 uint32_t reserved_23_31 : 9;
71 uint32_t dte : 1; /**< [ 22: 22](R/W) ACS direct translated P2P enable. Value ignored by hardware. */
72 uint32_t ece : 1; /**< [ 21: 21](RO) ACS P2P egress control enable. Always clear. */
73 uint32_t ufe : 1; /**< [ 20: 20](R/W) ACS upstream forwarding enable. Value ignored by hardware. */
74 uint32_t cre : 1; /**< [ 19: 19](R/W) ACS completion redirect enable. Value ignored by hardware. */
75 uint32_t rre : 1; /**< [ 18: 18](R/W) ACS P2P request redirect enable. Value ignored by hardware. */
76 uint32_t tbe : 1; /**< [ 17: 17](R/W) ACS transaction blocking enable. Value ignored by hardware. */
77 uint32_t sve : 1; /**< [ 16: 16](R/W) ACS source validation enable. Value ignored by hardware. */
78 uint32_t ecvs : 8; /**< [ 15: 8](RO) Egress control vector size. Always zero. */
79 uint32_t reserved_7 : 1;
80 uint32_t dt : 1; /**< [ 6: 6](RO) ACS direct translated P2P. Always set. */
81 uint32_t ec : 1; /**< [ 5: 5](RO) ACS P2P egress control. Always clear. */
82 uint32_t uf : 1; /**< [ 4: 4](RO) ACS upstream forwarding. Always set. */
83 uint32_t cr : 1; /**< [ 3: 3](RO) ACS completion redirect. Always set. */
84 uint32_t rr : 1; /**< [ 2: 2](RO) ACS P2P request redirect. Always set. */
85 uint32_t tb : 1; /**< [ 1: 1](RO) ACS transaction blocking. Always set. */
86 uint32_t sv : 1; /**< [ 0: 0](RO) ACS source validation. Always set. */
87 #else /* Word 0 - Little Endian */
88 uint32_t sv : 1; /**< [ 0: 0](RO) ACS source validation. Always set. */
89 uint32_t tb : 1; /**< [ 1: 1](RO) ACS transaction blocking. Always set. */
90 uint32_t rr : 1; /**< [ 2: 2](RO) ACS P2P request redirect. Always set. */
91 uint32_t cr : 1; /**< [ 3: 3](RO) ACS completion redirect. Always set. */
92 uint32_t uf : 1; /**< [ 4: 4](RO) ACS upstream forwarding. Always set. */
93 uint32_t ec : 1; /**< [ 5: 5](RO) ACS P2P egress control. Always clear. */
94 uint32_t dt : 1; /**< [ 6: 6](RO) ACS direct translated P2P. Always set. */
95 uint32_t reserved_7 : 1;
96 uint32_t ecvs : 8; /**< [ 15: 8](RO) Egress control vector size. Always zero. */
97 uint32_t sve : 1; /**< [ 16: 16](R/W) ACS source validation enable. Value ignored by hardware. */
98 uint32_t tbe : 1; /**< [ 17: 17](R/W) ACS transaction blocking enable. Value ignored by hardware. */
99 uint32_t rre : 1; /**< [ 18: 18](R/W) ACS P2P request redirect enable. Value ignored by hardware. */
100 uint32_t cre : 1; /**< [ 19: 19](R/W) ACS completion redirect enable. Value ignored by hardware. */
101 uint32_t ufe : 1; /**< [ 20: 20](R/W) ACS upstream forwarding enable. Value ignored by hardware. */
102 uint32_t ece : 1; /**< [ 21: 21](RO) ACS P2P egress control enable. Always clear. */
103 uint32_t dte : 1; /**< [ 22: 22](R/W) ACS direct translated P2P enable. Value ignored by hardware. */
104 uint32_t reserved_23_31 : 9;
105 #endif /* Word 0 - End */
106 } s;
107 /* struct bdk_pccbr_xxx_acs_cap_ctl_s cn; */
108 };
109 typedef union bdk_pccbr_xxx_acs_cap_ctl bdk_pccbr_xxx_acs_cap_ctl_t;
110
111 #define BDK_PCCBR_XXX_ACS_CAP_CTL BDK_PCCBR_XXX_ACS_CAP_CTL_FUNC()
112 static inline uint64_t BDK_PCCBR_XXX_ACS_CAP_CTL_FUNC(void) __attribute__ ((pure, always_inline));
113 static inline uint64_t BDK_PCCBR_XXX_ACS_CAP_CTL_FUNC(void)
114 {
115 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
116 return 0x144;
117 __bdk_csr_fatal("PCCBR_XXX_ACS_CAP_CTL", 0, 0, 0, 0, 0);
118 }
119
120 #define typedef_BDK_PCCBR_XXX_ACS_CAP_CTL bdk_pccbr_xxx_acs_cap_ctl_t
121 #define bustype_BDK_PCCBR_XXX_ACS_CAP_CTL BDK_CSR_TYPE_PCCBR
122 #define basename_BDK_PCCBR_XXX_ACS_CAP_CTL "PCCBR_XXX_ACS_CAP_CTL"
123 #define busnum_BDK_PCCBR_XXX_ACS_CAP_CTL 0
124 #define arguments_BDK_PCCBR_XXX_ACS_CAP_CTL -1,-1,-1,-1
125
126 /**
127 * Register (PCCBR) pccbr_xxx_acs_cap_hdr
128 *
129 * PCC PF ACS Capability Header Register
130 * This register is the header of the eight-byte PCI ACS capability structure.
131 */
132 union bdk_pccbr_xxx_acs_cap_hdr
133 {
134 uint32_t u;
135 struct bdk_pccbr_xxx_acs_cap_hdr_s
136 {
137 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
138 uint32_t nco : 12; /**< [ 31: 20](RO) Next capability offset. None. */
139 uint32_t cv : 4; /**< [ 19: 16](RO) Capability version. */
140 uint32_t acsid : 16; /**< [ 15: 0](RO) PCIE extended capability. Indicates ACS capability. */
141 #else /* Word 0 - Little Endian */
142 uint32_t acsid : 16; /**< [ 15: 0](RO) PCIE extended capability. Indicates ACS capability. */
143 uint32_t cv : 4; /**< [ 19: 16](RO) Capability version. */
144 uint32_t nco : 12; /**< [ 31: 20](RO) Next capability offset. None. */
145 #endif /* Word 0 - End */
146 } s;
147 /* struct bdk_pccbr_xxx_acs_cap_hdr_s cn; */
148 };
149 typedef union bdk_pccbr_xxx_acs_cap_hdr bdk_pccbr_xxx_acs_cap_hdr_t;
150
151 #define BDK_PCCBR_XXX_ACS_CAP_HDR BDK_PCCBR_XXX_ACS_CAP_HDR_FUNC()
152 static inline uint64_t BDK_PCCBR_XXX_ACS_CAP_HDR_FUNC(void) __attribute__ ((pure, always_inline));
153 static inline uint64_t BDK_PCCBR_XXX_ACS_CAP_HDR_FUNC(void)
154 {
155 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
156 return 0x140;
157 __bdk_csr_fatal("PCCBR_XXX_ACS_CAP_HDR", 0, 0, 0, 0, 0);
158 }
159
160 #define typedef_BDK_PCCBR_XXX_ACS_CAP_HDR bdk_pccbr_xxx_acs_cap_hdr_t
161 #define bustype_BDK_PCCBR_XXX_ACS_CAP_HDR BDK_CSR_TYPE_PCCBR
162 #define basename_BDK_PCCBR_XXX_ACS_CAP_HDR "PCCBR_XXX_ACS_CAP_HDR"
163 #define busnum_BDK_PCCBR_XXX_ACS_CAP_HDR 0
164 #define arguments_BDK_PCCBR_XXX_ACS_CAP_HDR -1,-1,-1,-1
165
166 /**
167 * Register (PCCBR) pccbr_xxx_ari_cap_hdr
168 *
169 * PCC Bridge ARI Capability Header Register
170 * This register is the header of the 8-byte PCI ARI capability structure.
171 */
172 union bdk_pccbr_xxx_ari_cap_hdr
173 {
174 uint32_t u;
175 struct bdk_pccbr_xxx_ari_cap_hdr_s
176 {
177 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
178 uint32_t nco : 12; /**< [ 31: 20](RO) Next capability offset. Points to PCCBR_XXX_VSEC_CAP_HDR. */
179 uint32_t cv : 4; /**< [ 19: 16](RO) Capability version. */
180 uint32_t ariid : 16; /**< [ 15: 0](RO) PCIE extended capability. */
181 #else /* Word 0 - Little Endian */
182 uint32_t ariid : 16; /**< [ 15: 0](RO) PCIE extended capability. */
183 uint32_t cv : 4; /**< [ 19: 16](RO) Capability version. */
184 uint32_t nco : 12; /**< [ 31: 20](RO) Next capability offset. Points to PCCBR_XXX_VSEC_CAP_HDR. */
185 #endif /* Word 0 - End */
186 } s;
187 /* struct bdk_pccbr_xxx_ari_cap_hdr_s cn; */
188 };
189 typedef union bdk_pccbr_xxx_ari_cap_hdr bdk_pccbr_xxx_ari_cap_hdr_t;
190
191 #define BDK_PCCBR_XXX_ARI_CAP_HDR BDK_PCCBR_XXX_ARI_CAP_HDR_FUNC()
192 static inline uint64_t BDK_PCCBR_XXX_ARI_CAP_HDR_FUNC(void) __attribute__ ((pure, always_inline));
193 static inline uint64_t BDK_PCCBR_XXX_ARI_CAP_HDR_FUNC(void)
194 {
195 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
196 return 0x100;
197 __bdk_csr_fatal("PCCBR_XXX_ARI_CAP_HDR", 0, 0, 0, 0, 0);
198 }
199
200 #define typedef_BDK_PCCBR_XXX_ARI_CAP_HDR bdk_pccbr_xxx_ari_cap_hdr_t
201 #define bustype_BDK_PCCBR_XXX_ARI_CAP_HDR BDK_CSR_TYPE_PCCBR
202 #define basename_BDK_PCCBR_XXX_ARI_CAP_HDR "PCCBR_XXX_ARI_CAP_HDR"
203 #define busnum_BDK_PCCBR_XXX_ARI_CAP_HDR 0
204 #define arguments_BDK_PCCBR_XXX_ARI_CAP_HDR -1,-1,-1,-1
205
206 /**
207 * Register (PCCBR) pccbr_xxx_bus
208 *
209 * PCC Bridge Bus Register
210 * This register is reset on a chip domain reset.
211 */
212 union bdk_pccbr_xxx_bus
213 {
214 uint32_t u;
215 struct bdk_pccbr_xxx_bus_s
216 {
217 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
218 uint32_t slt : 8; /**< [ 31: 24](RO) Secondary latency timer. Not applicable to PCI Express, hardwired to 0x0. */
219 uint32_t subbnum : 8; /**< [ 23: 16](R/W) Subordinate bus number. Resets to PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM].
220 If 0x0 no configuration accesses are forwarded to the secondary bus.
221
222 If PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM] != 0, this field is read-write only for software;
223 hardware has a fixed topology below this bridge and will always act as if this field is
224 programmed to the value in PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM].
225
226 If PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM] = 0, which is true only for PCCBR_PCIEP, this field
227 operates as specified by PCIe to direct which configuration transactions are presented to
228 downstream busses. */
229 uint32_t sbnum : 8; /**< [ 15: 8](R/W) Secondary bus number. Resets to PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM].
230 If 0x0 no configuration accesses are forwarded to the secondary bus.
231
232 If PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM] != 0, this field is read-write only for software;
233 hardware has a fixed topology below this bridge and will always act as if this field is
234 programmed to the value in PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM].
235
236 If PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM] = 0, which is true only for PCCBR_PCIEP, this field
237 operates as specified by PCIe to direct which configuration transactions are presented to
238 downstream busses. */
239 uint32_t pbnum : 8; /**< [ 7: 0](R/W) Primary bus number.
240 This field is read-write only for software;
241 hardware has a fixed topology where all PCCBR's are always off primary bus number
242 zero, and does not use this register for configuration decoding. */
243 #else /* Word 0 - Little Endian */
244 uint32_t pbnum : 8; /**< [ 7: 0](R/W) Primary bus number.
245 This field is read-write only for software;
246 hardware has a fixed topology where all PCCBR's are always off primary bus number
247 zero, and does not use this register for configuration decoding. */
248 uint32_t sbnum : 8; /**< [ 15: 8](R/W) Secondary bus number. Resets to PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM].
249 If 0x0 no configuration accesses are forwarded to the secondary bus.
250
251 If PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM] != 0, this field is read-write only for software;
252 hardware has a fixed topology below this bridge and will always act as if this field is
253 programmed to the value in PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM].
254
255 If PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM] = 0, which is true only for PCCBR_PCIEP, this field
256 operates as specified by PCIe to direct which configuration transactions are presented to
257 downstream busses. */
258 uint32_t subbnum : 8; /**< [ 23: 16](R/W) Subordinate bus number. Resets to PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM].
259 If 0x0 no configuration accesses are forwarded to the secondary bus.
260
261 If PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM] != 0, this field is read-write only for software;
262 hardware has a fixed topology below this bridge and will always act as if this field is
263 programmed to the value in PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM].
264
265 If PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM] = 0, which is true only for PCCBR_PCIEP, this field
266 operates as specified by PCIe to direct which configuration transactions are presented to
267 downstream busses. */
268 uint32_t slt : 8; /**< [ 31: 24](RO) Secondary latency timer. Not applicable to PCI Express, hardwired to 0x0. */
269 #endif /* Word 0 - End */
270 } s;
271 /* struct bdk_pccbr_xxx_bus_s cn; */
272 };
273 typedef union bdk_pccbr_xxx_bus bdk_pccbr_xxx_bus_t;
274
275 #define BDK_PCCBR_XXX_BUS BDK_PCCBR_XXX_BUS_FUNC()
276 static inline uint64_t BDK_PCCBR_XXX_BUS_FUNC(void) __attribute__ ((pure, always_inline));
277 static inline uint64_t BDK_PCCBR_XXX_BUS_FUNC(void)
278 {
279 return 0x18;
280 }
281
282 #define typedef_BDK_PCCBR_XXX_BUS bdk_pccbr_xxx_bus_t
283 #define bustype_BDK_PCCBR_XXX_BUS BDK_CSR_TYPE_PCCBR
284 #define basename_BDK_PCCBR_XXX_BUS "PCCBR_XXX_BUS"
285 #define busnum_BDK_PCCBR_XXX_BUS 0
286 #define arguments_BDK_PCCBR_XXX_BUS -1,-1,-1,-1
287
288 /**
289 * Register (PCCBR) pccbr_xxx_cap_ptr
290 *
291 * PCC Bridge Capability Pointer Register
292 */
293 union bdk_pccbr_xxx_cap_ptr
294 {
295 uint32_t u;
296 struct bdk_pccbr_xxx_cap_ptr_s
297 {
298 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
299 uint32_t reserved_8_31 : 24;
300 uint32_t cp : 8; /**< [ 7: 0](RO) First capability pointer. Points to PCCBR_XXX_E_CAP_HDR. */
301 #else /* Word 0 - Little Endian */
302 uint32_t cp : 8; /**< [ 7: 0](RO) First capability pointer. Points to PCCBR_XXX_E_CAP_HDR. */
303 uint32_t reserved_8_31 : 24;
304 #endif /* Word 0 - End */
305 } s;
306 /* struct bdk_pccbr_xxx_cap_ptr_s cn; */
307 };
308 typedef union bdk_pccbr_xxx_cap_ptr bdk_pccbr_xxx_cap_ptr_t;
309
310 #define BDK_PCCBR_XXX_CAP_PTR BDK_PCCBR_XXX_CAP_PTR_FUNC()
311 static inline uint64_t BDK_PCCBR_XXX_CAP_PTR_FUNC(void) __attribute__ ((pure, always_inline));
312 static inline uint64_t BDK_PCCBR_XXX_CAP_PTR_FUNC(void)
313 {
314 return 0x34;
315 }
316
317 #define typedef_BDK_PCCBR_XXX_CAP_PTR bdk_pccbr_xxx_cap_ptr_t
318 #define bustype_BDK_PCCBR_XXX_CAP_PTR BDK_CSR_TYPE_PCCBR
319 #define basename_BDK_PCCBR_XXX_CAP_PTR "PCCBR_XXX_CAP_PTR"
320 #define busnum_BDK_PCCBR_XXX_CAP_PTR 0
321 #define arguments_BDK_PCCBR_XXX_CAP_PTR -1,-1,-1,-1
322
323 /**
324 * Register (PCCBR) pccbr_xxx_clsize
325 *
326 * PCC Bridge Cache Line Size Register
327 */
328 union bdk_pccbr_xxx_clsize
329 {
330 uint32_t u;
331 struct bdk_pccbr_xxx_clsize_s
332 {
333 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
334 uint32_t bist : 8; /**< [ 31: 24](RO) BIST. */
335 uint32_t mfd : 1; /**< [ 23: 23](RO) Multi function device. */
336 uint32_t chf : 7; /**< [ 22: 16](RO) Configuration header format. Hardwired to 0x1 for type 1, bridge. */
337 uint32_t lt : 8; /**< [ 15: 8](RO) Master latency timer. Not applicable for PCI Express, hardwired to 0x0. */
338 uint32_t cls : 8; /**< [ 7: 0](RO) Cache line size. Not implemented. */
339 #else /* Word 0 - Little Endian */
340 uint32_t cls : 8; /**< [ 7: 0](RO) Cache line size. Not implemented. */
341 uint32_t lt : 8; /**< [ 15: 8](RO) Master latency timer. Not applicable for PCI Express, hardwired to 0x0. */
342 uint32_t chf : 7; /**< [ 22: 16](RO) Configuration header format. Hardwired to 0x1 for type 1, bridge. */
343 uint32_t mfd : 1; /**< [ 23: 23](RO) Multi function device. */
344 uint32_t bist : 8; /**< [ 31: 24](RO) BIST. */
345 #endif /* Word 0 - End */
346 } s;
347 /* struct bdk_pccbr_xxx_clsize_s cn; */
348 };
349 typedef union bdk_pccbr_xxx_clsize bdk_pccbr_xxx_clsize_t;
350
351 #define BDK_PCCBR_XXX_CLSIZE BDK_PCCBR_XXX_CLSIZE_FUNC()
352 static inline uint64_t BDK_PCCBR_XXX_CLSIZE_FUNC(void) __attribute__ ((pure, always_inline));
353 static inline uint64_t BDK_PCCBR_XXX_CLSIZE_FUNC(void)
354 {
355 return 0xc;
356 }
357
358 #define typedef_BDK_PCCBR_XXX_CLSIZE bdk_pccbr_xxx_clsize_t
359 #define bustype_BDK_PCCBR_XXX_CLSIZE BDK_CSR_TYPE_PCCBR
360 #define basename_BDK_PCCBR_XXX_CLSIZE "PCCBR_XXX_CLSIZE"
361 #define busnum_BDK_PCCBR_XXX_CLSIZE 0
362 #define arguments_BDK_PCCBR_XXX_CLSIZE -1,-1,-1,-1
363
364 /**
365 * Register (PCCBR) pccbr_xxx_cmd
366 *
367 * PCC Bridge Command/Status Register
368 */
369 union bdk_pccbr_xxx_cmd
370 {
371 uint32_t u;
372 struct bdk_pccbr_xxx_cmd_s
373 {
374 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
375 uint32_t reserved_21_31 : 11;
376 uint32_t cl : 1; /**< [ 20: 20](RO) Capabilities list. Indicates presence of an extended capability item. */
377 uint32_t reserved_3_19 : 17;
378 uint32_t me : 1; /**< [ 2: 2](RO) Master enable.
379 Internal:
380 For simplicity always one; we do not disable NCB transactions. */
381 uint32_t msae : 1; /**< [ 1: 1](RO) Memory space access enable.
382 Internal:
383 NCB/RSL always decoded; have hardcoded BARs. */
384 uint32_t reserved_0 : 1;
385 #else /* Word 0 - Little Endian */
386 uint32_t reserved_0 : 1;
387 uint32_t msae : 1; /**< [ 1: 1](RO) Memory space access enable.
388 Internal:
389 NCB/RSL always decoded; have hardcoded BARs. */
390 uint32_t me : 1; /**< [ 2: 2](RO) Master enable.
391 Internal:
392 For simplicity always one; we do not disable NCB transactions. */
393 uint32_t reserved_3_19 : 17;
394 uint32_t cl : 1; /**< [ 20: 20](RO) Capabilities list. Indicates presence of an extended capability item. */
395 uint32_t reserved_21_31 : 11;
396 #endif /* Word 0 - End */
397 } s;
398 /* struct bdk_pccbr_xxx_cmd_s cn; */
399 };
400 typedef union bdk_pccbr_xxx_cmd bdk_pccbr_xxx_cmd_t;
401
402 #define BDK_PCCBR_XXX_CMD BDK_PCCBR_XXX_CMD_FUNC()
403 static inline uint64_t BDK_PCCBR_XXX_CMD_FUNC(void) __attribute__ ((pure, always_inline));
404 static inline uint64_t BDK_PCCBR_XXX_CMD_FUNC(void)
405 {
406 return 4;
407 }
408
409 #define typedef_BDK_PCCBR_XXX_CMD bdk_pccbr_xxx_cmd_t
410 #define bustype_BDK_PCCBR_XXX_CMD BDK_CSR_TYPE_PCCBR
411 #define basename_BDK_PCCBR_XXX_CMD "PCCBR_XXX_CMD"
412 #define busnum_BDK_PCCBR_XXX_CMD 0
413 #define arguments_BDK_PCCBR_XXX_CMD -1,-1,-1,-1
414
415 /**
416 * Register (PCCBR) pccbr_xxx_e_cap2
417 *
418 * PCC Bridge PCI Express Capabilities 2 Register
419 */
420 union bdk_pccbr_xxx_e_cap2
421 {
422 uint32_t u;
423 struct bdk_pccbr_xxx_e_cap2_s
424 {
425 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
426 uint32_t reserved_7_31 : 25;
427 uint32_t atomfwd : 1; /**< [ 6: 6](RO) Atomic operation forwarding. The bridge does forwarding. */
428 uint32_t arifwd : 1; /**< [ 5: 5](RO) ARI forwarding. The bridge does forwarding. */
429 uint32_t reserved_0_4 : 5;
430 #else /* Word 0 - Little Endian */
431 uint32_t reserved_0_4 : 5;
432 uint32_t arifwd : 1; /**< [ 5: 5](RO) ARI forwarding. The bridge does forwarding. */
433 uint32_t atomfwd : 1; /**< [ 6: 6](RO) Atomic operation forwarding. The bridge does forwarding. */
434 uint32_t reserved_7_31 : 25;
435 #endif /* Word 0 - End */
436 } s;
437 /* struct bdk_pccbr_xxx_e_cap2_s cn9; */
438 /* struct bdk_pccbr_xxx_e_cap2_s cn81xx; */
439 struct bdk_pccbr_xxx_e_cap2_cn88xx
440 {
441 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
442 uint32_t reserved_6_31 : 26;
443 uint32_t arifwd : 1; /**< [ 5: 5](RO) ARI forwarding. The bridge does forwarding. */
444 uint32_t reserved_0_4 : 5;
445 #else /* Word 0 - Little Endian */
446 uint32_t reserved_0_4 : 5;
447 uint32_t arifwd : 1; /**< [ 5: 5](RO) ARI forwarding. The bridge does forwarding. */
448 uint32_t reserved_6_31 : 26;
449 #endif /* Word 0 - End */
450 } cn88xx;
451 /* struct bdk_pccbr_xxx_e_cap2_s cn83xx; */
452 };
453 typedef union bdk_pccbr_xxx_e_cap2 bdk_pccbr_xxx_e_cap2_t;
454
455 #define BDK_PCCBR_XXX_E_CAP2 BDK_PCCBR_XXX_E_CAP2_FUNC()
456 static inline uint64_t BDK_PCCBR_XXX_E_CAP2_FUNC(void) __attribute__ ((pure, always_inline));
457 static inline uint64_t BDK_PCCBR_XXX_E_CAP2_FUNC(void)
458 {
459 return 0x94;
460 }
461
462 #define typedef_BDK_PCCBR_XXX_E_CAP2 bdk_pccbr_xxx_e_cap2_t
463 #define bustype_BDK_PCCBR_XXX_E_CAP2 BDK_CSR_TYPE_PCCBR
464 #define basename_BDK_PCCBR_XXX_E_CAP2 "PCCBR_XXX_E_CAP2"
465 #define busnum_BDK_PCCBR_XXX_E_CAP2 0
466 #define arguments_BDK_PCCBR_XXX_E_CAP2 -1,-1,-1,-1
467
468 /**
469 * Register (PCCBR) pccbr_xxx_e_cap_hdr
470 *
471 * PCC Bridge PCI Express Capabilities Register
472 * This register is the header of the 64-byte PCIe capability header.
473 */
474 union bdk_pccbr_xxx_e_cap_hdr
475 {
476 uint32_t u;
477 struct bdk_pccbr_xxx_e_cap_hdr_s
478 {
479 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
480 uint32_t reserved_24_31 : 8;
481 uint32_t porttype : 4; /**< [ 23: 20](RO) Indicates a root port of a PCIe root complex. */
482 uint32_t pciecv : 4; /**< [ 19: 16](RO) PCIe capability version. */
483 uint32_t ncp : 8; /**< [ 15: 8](RO) Next capability pointer. No additional PCI capabilities. */
484 uint32_t pcieid : 8; /**< [ 7: 0](RO) PCIe capability ID. */
485 #else /* Word 0 - Little Endian */
486 uint32_t pcieid : 8; /**< [ 7: 0](RO) PCIe capability ID. */
487 uint32_t ncp : 8; /**< [ 15: 8](RO) Next capability pointer. No additional PCI capabilities. */
488 uint32_t pciecv : 4; /**< [ 19: 16](RO) PCIe capability version. */
489 uint32_t porttype : 4; /**< [ 23: 20](RO) Indicates a root port of a PCIe root complex. */
490 uint32_t reserved_24_31 : 8;
491 #endif /* Word 0 - End */
492 } s;
493 /* struct bdk_pccbr_xxx_e_cap_hdr_s cn88xxp1; */
494 struct bdk_pccbr_xxx_e_cap_hdr_cn9
495 {
496 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
497 uint32_t reserved_24_31 : 8;
498 uint32_t porttype : 4; /**< [ 23: 20](RO) Indicates a root port of a PCIe root complex. */
499 uint32_t pciecv : 4; /**< [ 19: 16](RO) PCIe capability version. */
500 uint32_t ncp : 8; /**< [ 15: 8](RO) Next capability pointer. Points to PCCBR_XXX_EA_CAP_HDR. */
501 uint32_t pcieid : 8; /**< [ 7: 0](RO) PCIe capability ID. */
502 #else /* Word 0 - Little Endian */
503 uint32_t pcieid : 8; /**< [ 7: 0](RO) PCIe capability ID. */
504 uint32_t ncp : 8; /**< [ 15: 8](RO) Next capability pointer. Points to PCCBR_XXX_EA_CAP_HDR. */
505 uint32_t pciecv : 4; /**< [ 19: 16](RO) PCIe capability version. */
506 uint32_t porttype : 4; /**< [ 23: 20](RO) Indicates a root port of a PCIe root complex. */
507 uint32_t reserved_24_31 : 8;
508 #endif /* Word 0 - End */
509 } cn9;
510 /* struct bdk_pccbr_xxx_e_cap_hdr_cn9 cn81xx; */
511 /* struct bdk_pccbr_xxx_e_cap_hdr_cn9 cn83xx; */
512 /* struct bdk_pccbr_xxx_e_cap_hdr_cn9 cn88xxp2; */
513 };
514 typedef union bdk_pccbr_xxx_e_cap_hdr bdk_pccbr_xxx_e_cap_hdr_t;
515
516 #define BDK_PCCBR_XXX_E_CAP_HDR BDK_PCCBR_XXX_E_CAP_HDR_FUNC()
517 static inline uint64_t BDK_PCCBR_XXX_E_CAP_HDR_FUNC(void) __attribute__ ((pure, always_inline));
518 static inline uint64_t BDK_PCCBR_XXX_E_CAP_HDR_FUNC(void)
519 {
520 return 0x70;
521 }
522
523 #define typedef_BDK_PCCBR_XXX_E_CAP_HDR bdk_pccbr_xxx_e_cap_hdr_t
524 #define bustype_BDK_PCCBR_XXX_E_CAP_HDR BDK_CSR_TYPE_PCCBR
525 #define basename_BDK_PCCBR_XXX_E_CAP_HDR "PCCBR_XXX_E_CAP_HDR"
526 #define busnum_BDK_PCCBR_XXX_E_CAP_HDR 0
527 #define arguments_BDK_PCCBR_XXX_E_CAP_HDR -1,-1,-1,-1
528
529 /**
530 * Register (PCCBR) pccbr_xxx_e_dev_cap
531 *
532 * PCC Bridge PCI Express Device Capabilities Register
533 */
534 union bdk_pccbr_xxx_e_dev_cap
535 {
536 uint32_t u;
537 struct bdk_pccbr_xxx_e_dev_cap_s
538 {
539 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
540 uint32_t reserved_16_31 : 16;
541 uint32_t rber : 1; /**< [ 15: 15](RO) Role-based error reporting. Required to be set by PCIe 3.1. */
542 uint32_t reserved_0_14 : 15;
543 #else /* Word 0 - Little Endian */
544 uint32_t reserved_0_14 : 15;
545 uint32_t rber : 1; /**< [ 15: 15](RO) Role-based error reporting. Required to be set by PCIe 3.1. */
546 uint32_t reserved_16_31 : 16;
547 #endif /* Word 0 - End */
548 } s;
549 /* struct bdk_pccbr_xxx_e_dev_cap_s cn; */
550 };
551 typedef union bdk_pccbr_xxx_e_dev_cap bdk_pccbr_xxx_e_dev_cap_t;
552
553 #define BDK_PCCBR_XXX_E_DEV_CAP BDK_PCCBR_XXX_E_DEV_CAP_FUNC()
554 static inline uint64_t BDK_PCCBR_XXX_E_DEV_CAP_FUNC(void) __attribute__ ((pure, always_inline));
555 static inline uint64_t BDK_PCCBR_XXX_E_DEV_CAP_FUNC(void)
556 {
557 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
558 return 0x74;
559 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
560 return 0x74;
561 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
562 return 0x74;
563 __bdk_csr_fatal("PCCBR_XXX_E_DEV_CAP", 0, 0, 0, 0, 0);
564 }
565
566 #define typedef_BDK_PCCBR_XXX_E_DEV_CAP bdk_pccbr_xxx_e_dev_cap_t
567 #define bustype_BDK_PCCBR_XXX_E_DEV_CAP BDK_CSR_TYPE_PCCBR
568 #define basename_BDK_PCCBR_XXX_E_DEV_CAP "PCCBR_XXX_E_DEV_CAP"
569 #define busnum_BDK_PCCBR_XXX_E_DEV_CAP 0
570 #define arguments_BDK_PCCBR_XXX_E_DEV_CAP -1,-1,-1,-1
571
572 /**
573 * Register (PCCBR) pccbr_xxx_ea_br
574 *
575 * PCC Bridge PCI Enhanced Allocation Bridge Register
576 */
577 union bdk_pccbr_xxx_ea_br
578 {
579 uint32_t u;
580 struct bdk_pccbr_xxx_ea_br_s
581 {
582 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
583 uint32_t reserved_16_31 : 16;
584 uint32_t fixed_subbnum : 8; /**< [ 15: 8](RO) PCI bus segment to which the subordinate interface is connected.
585 Resets to PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM]. */
586 uint32_t fixed_sbnum : 8; /**< [ 7: 0](RO) PCI bus segment to which the secondary interface is connected.
587 Resets to PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM]. */
588 #else /* Word 0 - Little Endian */
589 uint32_t fixed_sbnum : 8; /**< [ 7: 0](RO) PCI bus segment to which the secondary interface is connected.
590 Resets to PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM]. */
591 uint32_t fixed_subbnum : 8; /**< [ 15: 8](RO) PCI bus segment to which the subordinate interface is connected.
592 Resets to PCCBR_XXX_VSEC_CTL[STATIC_SUBBNUM]. */
593 uint32_t reserved_16_31 : 16;
594 #endif /* Word 0 - End */
595 } s;
596 /* struct bdk_pccbr_xxx_ea_br_s cn; */
597 };
598 typedef union bdk_pccbr_xxx_ea_br bdk_pccbr_xxx_ea_br_t;
599
600 #define BDK_PCCBR_XXX_EA_BR BDK_PCCBR_XXX_EA_BR_FUNC()
601 static inline uint64_t BDK_PCCBR_XXX_EA_BR_FUNC(void) __attribute__ ((pure, always_inline));
602 static inline uint64_t BDK_PCCBR_XXX_EA_BR_FUNC(void)
603 {
604 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
605 return 0xb4;
606 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
607 return 0xb4;
608 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX_PASS2_X))
609 return 0xb4;
610 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
611 return 0xb4;
612 __bdk_csr_fatal("PCCBR_XXX_EA_BR", 0, 0, 0, 0, 0);
613 }
614
615 #define typedef_BDK_PCCBR_XXX_EA_BR bdk_pccbr_xxx_ea_br_t
616 #define bustype_BDK_PCCBR_XXX_EA_BR BDK_CSR_TYPE_PCCBR
617 #define basename_BDK_PCCBR_XXX_EA_BR "PCCBR_XXX_EA_BR"
618 #define busnum_BDK_PCCBR_XXX_EA_BR 0
619 #define arguments_BDK_PCCBR_XXX_EA_BR -1,-1,-1,-1
620
621 /**
622 * Register (PCCBR) pccbr_xxx_ea_cap_hdr
623 *
624 * PCC Bridge PCI Enhanced Allocation Capabilities Register
625 * This register is the header of the 8-byte PCI enhanced allocation capability
626 * structure for type 1 bridges.
627 */
628 union bdk_pccbr_xxx_ea_cap_hdr
629 {
630 uint32_t u;
631 struct bdk_pccbr_xxx_ea_cap_hdr_s
632 {
633 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
634 uint32_t reserved_22_31 : 10;
635 uint32_t num_entries : 6; /**< [ 21: 16](RO) Number of enhanced entries. */
636 uint32_t ncp : 8; /**< [ 15: 8](RO) Next capability pointer. No additional PCI capabilities. */
637 uint32_t pcieid : 8; /**< [ 7: 0](RO) Enhanced allocation capability ID. */
638 #else /* Word 0 - Little Endian */
639 uint32_t pcieid : 8; /**< [ 7: 0](RO) Enhanced allocation capability ID. */
640 uint32_t ncp : 8; /**< [ 15: 8](RO) Next capability pointer. No additional PCI capabilities. */
641 uint32_t num_entries : 6; /**< [ 21: 16](RO) Number of enhanced entries. */
642 uint32_t reserved_22_31 : 10;
643 #endif /* Word 0 - End */
644 } s;
645 /* struct bdk_pccbr_xxx_ea_cap_hdr_s cn; */
646 };
647 typedef union bdk_pccbr_xxx_ea_cap_hdr bdk_pccbr_xxx_ea_cap_hdr_t;
648
649 #define BDK_PCCBR_XXX_EA_CAP_HDR BDK_PCCBR_XXX_EA_CAP_HDR_FUNC()
650 static inline uint64_t BDK_PCCBR_XXX_EA_CAP_HDR_FUNC(void) __attribute__ ((pure, always_inline));
651 static inline uint64_t BDK_PCCBR_XXX_EA_CAP_HDR_FUNC(void)
652 {
653 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
654 return 0xb0;
655 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
656 return 0xb0;
657 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX_PASS2_X))
658 return 0xb0;
659 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
660 return 0xb0;
661 __bdk_csr_fatal("PCCBR_XXX_EA_CAP_HDR", 0, 0, 0, 0, 0);
662 }
663
664 #define typedef_BDK_PCCBR_XXX_EA_CAP_HDR bdk_pccbr_xxx_ea_cap_hdr_t
665 #define bustype_BDK_PCCBR_XXX_EA_CAP_HDR BDK_CSR_TYPE_PCCBR
666 #define basename_BDK_PCCBR_XXX_EA_CAP_HDR "PCCBR_XXX_EA_CAP_HDR"
667 #define busnum_BDK_PCCBR_XXX_EA_CAP_HDR 0
668 #define arguments_BDK_PCCBR_XXX_EA_CAP_HDR -1,-1,-1,-1
669
670 /**
671 * Register (PCCBR) pccbr_xxx_id
672 *
673 * PCC Bridge Vendor and Device ID Register
674 * This register is the header of the 64-byte PCI type 1 configuration structure.
675 */
676 union bdk_pccbr_xxx_id
677 {
678 uint32_t u;
679 struct bdk_pccbr_xxx_id_s
680 {
681 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
682 uint32_t devid : 16; /**< [ 31: 16](RO) Device ID. \<15:8\> is PCC_PROD_E::GEN. \<7:0\> is PCC_DEV_IDL_E::PCCBR. */
683 uint32_t vendid : 16; /**< [ 15: 0](RO) Cavium's vendor ID. Enumerated by PCC_VENDOR_E::CAVIUM. */
684 #else /* Word 0 - Little Endian */
685 uint32_t vendid : 16; /**< [ 15: 0](RO) Cavium's vendor ID. Enumerated by PCC_VENDOR_E::CAVIUM. */
686 uint32_t devid : 16; /**< [ 31: 16](RO) Device ID. \<15:8\> is PCC_PROD_E::GEN. \<7:0\> is PCC_DEV_IDL_E::PCCBR. */
687 #endif /* Word 0 - End */
688 } s;
689 /* struct bdk_pccbr_xxx_id_s cn; */
690 };
691 typedef union bdk_pccbr_xxx_id bdk_pccbr_xxx_id_t;
692
693 #define BDK_PCCBR_XXX_ID BDK_PCCBR_XXX_ID_FUNC()
694 static inline uint64_t BDK_PCCBR_XXX_ID_FUNC(void) __attribute__ ((pure, always_inline));
695 static inline uint64_t BDK_PCCBR_XXX_ID_FUNC(void)
696 {
697 return 0;
698 }
699
700 #define typedef_BDK_PCCBR_XXX_ID bdk_pccbr_xxx_id_t
701 #define bustype_BDK_PCCBR_XXX_ID BDK_CSR_TYPE_PCCBR
702 #define basename_BDK_PCCBR_XXX_ID "PCCBR_XXX_ID"
703 #define busnum_BDK_PCCBR_XXX_ID 0
704 #define arguments_BDK_PCCBR_XXX_ID -1,-1,-1,-1
705
706 /**
707 * Register (PCCBR) pccbr_xxx_rev
708 *
709 * PCC Bridge Class Code/Revision ID Register
710 */
711 union bdk_pccbr_xxx_rev
712 {
713 uint32_t u;
714 struct bdk_pccbr_xxx_rev_s
715 {
716 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
717 uint32_t bcc : 8; /**< [ 31: 24](RO) Base class code. */
718 uint32_t sc : 8; /**< [ 23: 16](RO) Subclass code. */
719 uint32_t pi : 8; /**< [ 15: 8](RO) Programming interface. */
720 uint32_t rid : 8; /**< [ 7: 0](RO/H) Revision ID. Read only version of PCCBR_XXX_VSEC_SCTL[RID]. */
721 #else /* Word 0 - Little Endian */
722 uint32_t rid : 8; /**< [ 7: 0](RO/H) Revision ID. Read only version of PCCBR_XXX_VSEC_SCTL[RID]. */
723 uint32_t pi : 8; /**< [ 15: 8](RO) Programming interface. */
724 uint32_t sc : 8; /**< [ 23: 16](RO) Subclass code. */
725 uint32_t bcc : 8; /**< [ 31: 24](RO) Base class code. */
726 #endif /* Word 0 - End */
727 } s;
728 /* struct bdk_pccbr_xxx_rev_s cn8; */
729 struct bdk_pccbr_xxx_rev_cn9
730 {
731 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
732 uint32_t bcc : 8; /**< [ 31: 24](RO) Base class code. */
733 uint32_t sc : 8; /**< [ 23: 16](RO) Subclass code. */
734 uint32_t pi : 8; /**< [ 15: 8](RO/H) Programming interface. Read only version of PCCBR_XXX_VSEC_SCTL[PI]. */
735 uint32_t rid : 8; /**< [ 7: 0](RO/H) Revision ID. Read only version of PCCBR_XXX_VSEC_SCTL[RID]. */
736 #else /* Word 0 - Little Endian */
737 uint32_t rid : 8; /**< [ 7: 0](RO/H) Revision ID. Read only version of PCCBR_XXX_VSEC_SCTL[RID]. */
738 uint32_t pi : 8; /**< [ 15: 8](RO/H) Programming interface. Read only version of PCCBR_XXX_VSEC_SCTL[PI]. */
739 uint32_t sc : 8; /**< [ 23: 16](RO) Subclass code. */
740 uint32_t bcc : 8; /**< [ 31: 24](RO) Base class code. */
741 #endif /* Word 0 - End */
742 } cn9;
743 };
744 typedef union bdk_pccbr_xxx_rev bdk_pccbr_xxx_rev_t;
745
746 #define BDK_PCCBR_XXX_REV BDK_PCCBR_XXX_REV_FUNC()
747 static inline uint64_t BDK_PCCBR_XXX_REV_FUNC(void) __attribute__ ((pure, always_inline));
748 static inline uint64_t BDK_PCCBR_XXX_REV_FUNC(void)
749 {
750 return 8;
751 }
752
753 #define typedef_BDK_PCCBR_XXX_REV bdk_pccbr_xxx_rev_t
754 #define bustype_BDK_PCCBR_XXX_REV BDK_CSR_TYPE_PCCBR
755 #define basename_BDK_PCCBR_XXX_REV "PCCBR_XXX_REV"
756 #define busnum_BDK_PCCBR_XXX_REV 0
757 #define arguments_BDK_PCCBR_XXX_REV -1,-1,-1,-1
758
759 /**
760 * Register (PCCBR) pccbr_xxx_vsec_cap_hdr
761 *
762 * PCC Bridge Vendor-Specific Capability Header Register
763 * This register is the header of the 16-byte {ProductLine} family bridge capability
764 * structure.
765 */
766 union bdk_pccbr_xxx_vsec_cap_hdr
767 {
768 uint32_t u;
769 struct bdk_pccbr_xxx_vsec_cap_hdr_s
770 {
771 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
772 uint32_t nco : 12; /**< [ 31: 20](RO) Next capability offset. None. */
773 uint32_t cv : 4; /**< [ 19: 16](RO) Capability version. */
774 uint32_t rbareid : 16; /**< [ 15: 0](RO) PCIE extended capability. */
775 #else /* Word 0 - Little Endian */
776 uint32_t rbareid : 16; /**< [ 15: 0](RO) PCIE extended capability. */
777 uint32_t cv : 4; /**< [ 19: 16](RO) Capability version. */
778 uint32_t nco : 12; /**< [ 31: 20](RO) Next capability offset. None. */
779 #endif /* Word 0 - End */
780 } s;
781 /* struct bdk_pccbr_xxx_vsec_cap_hdr_s cn8; */
782 struct bdk_pccbr_xxx_vsec_cap_hdr_cn9
783 {
784 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
785 uint32_t nco : 12; /**< [ 31: 20](RO) Next capability offset. Points to PCCBR_XXX_ACS_CAP_HDR. */
786 uint32_t cv : 4; /**< [ 19: 16](RO) Capability version. */
787 uint32_t rbareid : 16; /**< [ 15: 0](RO) PCIE extended capability. */
788 #else /* Word 0 - Little Endian */
789 uint32_t rbareid : 16; /**< [ 15: 0](RO) PCIE extended capability. */
790 uint32_t cv : 4; /**< [ 19: 16](RO) Capability version. */
791 uint32_t nco : 12; /**< [ 31: 20](RO) Next capability offset. Points to PCCBR_XXX_ACS_CAP_HDR. */
792 #endif /* Word 0 - End */
793 } cn9;
794 };
795 typedef union bdk_pccbr_xxx_vsec_cap_hdr bdk_pccbr_xxx_vsec_cap_hdr_t;
796
797 #define BDK_PCCBR_XXX_VSEC_CAP_HDR BDK_PCCBR_XXX_VSEC_CAP_HDR_FUNC()
798 static inline uint64_t BDK_PCCBR_XXX_VSEC_CAP_HDR_FUNC(void) __attribute__ ((pure, always_inline));
799 static inline uint64_t BDK_PCCBR_XXX_VSEC_CAP_HDR_FUNC(void)
800 {
801 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
802 return 0x100;
803 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
804 return 0x100;
805 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
806 return 0x108;
807 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
808 return 0x100;
809 __bdk_csr_fatal("PCCBR_XXX_VSEC_CAP_HDR", 0, 0, 0, 0, 0);
810 }
811
812 #define typedef_BDK_PCCBR_XXX_VSEC_CAP_HDR bdk_pccbr_xxx_vsec_cap_hdr_t
813 #define bustype_BDK_PCCBR_XXX_VSEC_CAP_HDR BDK_CSR_TYPE_PCCBR
814 #define basename_BDK_PCCBR_XXX_VSEC_CAP_HDR "PCCBR_XXX_VSEC_CAP_HDR"
815 #define busnum_BDK_PCCBR_XXX_VSEC_CAP_HDR 0
816 #define arguments_BDK_PCCBR_XXX_VSEC_CAP_HDR -1,-1,-1,-1
817
818 /**
819 * Register (PCCBR) pccbr_xxx_vsec_ctl
820 *
821 * PCC Bridge Vendor-Specific Control Register
822 */
823 union bdk_pccbr_xxx_vsec_ctl
824 {
825 uint32_t u;
826 struct bdk_pccbr_xxx_vsec_ctl_s
827 {
828 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
829 uint32_t reserved_16_31 : 16;
830 uint32_t static_subbnum : 8; /**< [ 15: 8](RO) Static bus number. If nonzero, downstream block expects
831 PCCBR_XXX_BUS[SUBBNUM] and PCCBR_XXX_BUS[SBNUM] to match this value. */
832 uint32_t inst_num : 8; /**< [ 7: 0](RO) Instance number. For blocks with multiple instances, indicates which instance number,
833 otherwise 0x0; may be used to form Linux device numbers. For example for UART(1) is 0x1. */
834 #else /* Word 0 - Little Endian */
835 uint32_t inst_num : 8; /**< [ 7: 0](RO) Instance number. For blocks with multiple instances, indicates which instance number,
836 otherwise 0x0; may be used to form Linux device numbers. For example for UART(1) is 0x1. */
837 uint32_t static_subbnum : 8; /**< [ 15: 8](RO) Static bus number. If nonzero, downstream block expects
838 PCCBR_XXX_BUS[SUBBNUM] and PCCBR_XXX_BUS[SBNUM] to match this value. */
839 uint32_t reserved_16_31 : 16;
840 #endif /* Word 0 - End */
841 } s;
842 /* struct bdk_pccbr_xxx_vsec_ctl_s cn; */
843 };
844 typedef union bdk_pccbr_xxx_vsec_ctl bdk_pccbr_xxx_vsec_ctl_t;
845
846 #define BDK_PCCBR_XXX_VSEC_CTL BDK_PCCBR_XXX_VSEC_CTL_FUNC()
847 static inline uint64_t BDK_PCCBR_XXX_VSEC_CTL_FUNC(void) __attribute__ ((pure, always_inline));
848 static inline uint64_t BDK_PCCBR_XXX_VSEC_CTL_FUNC(void)
849 {
850 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
851 return 0x108;
852 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
853 return 0x108;
854 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
855 return 0x110;
856 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
857 return 0x108;
858 __bdk_csr_fatal("PCCBR_XXX_VSEC_CTL", 0, 0, 0, 0, 0);
859 }
860
861 #define typedef_BDK_PCCBR_XXX_VSEC_CTL bdk_pccbr_xxx_vsec_ctl_t
862 #define bustype_BDK_PCCBR_XXX_VSEC_CTL BDK_CSR_TYPE_PCCBR
863 #define basename_BDK_PCCBR_XXX_VSEC_CTL "PCCBR_XXX_VSEC_CTL"
864 #define busnum_BDK_PCCBR_XXX_VSEC_CTL 0
865 #define arguments_BDK_PCCBR_XXX_VSEC_CTL -1,-1,-1,-1
866
867 /**
868 * Register (PCCBR) pccbr_xxx_vsec_id
869 *
870 * PCC Bridge Vendor-Specific Identification Register
871 */
872 union bdk_pccbr_xxx_vsec_id
873 {
874 uint32_t u;
875 struct bdk_pccbr_xxx_vsec_id_s
876 {
877 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
878 uint32_t len : 12; /**< [ 31: 20](RO) Number of bytes in the entire VSEC structure including PCCBR_XXX_VSEC_CAP_HDR.
879 Internal:
880 Matches PCCPF_XXX_VSEC_ID[LEN], so extra bytes allocated and unused at the end
881 of the structure. */
882 uint32_t rev : 4; /**< [ 19: 16](RO) Vendor-specific revision. */
883 uint32_t id : 16; /**< [ 15: 0](RO) Vendor-specific ID. Indicates the {ProductLine} family bridge VSEC ID. */
884 #else /* Word 0 - Little Endian */
885 uint32_t id : 16; /**< [ 15: 0](RO) Vendor-specific ID. Indicates the {ProductLine} family bridge VSEC ID. */
886 uint32_t rev : 4; /**< [ 19: 16](RO) Vendor-specific revision. */
887 uint32_t len : 12; /**< [ 31: 20](RO) Number of bytes in the entire VSEC structure including PCCBR_XXX_VSEC_CAP_HDR.
888 Internal:
889 Matches PCCPF_XXX_VSEC_ID[LEN], so extra bytes allocated and unused at the end
890 of the structure. */
891 #endif /* Word 0 - End */
892 } s;
893 /* struct bdk_pccbr_xxx_vsec_id_s cn8; */
894 struct bdk_pccbr_xxx_vsec_id_cn9
895 {
896 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
897 uint32_t len : 12; /**< [ 31: 20](RO) Number of bytes in the entire VSEC structure including PCCBR_XXX_VSEC_CAP_HDR.
898 Internal:
899 Matches PCCPF_XXX_VSEC_ID[LEN], so extra bytes allocated and unused at the end
900 of the structure. */
901 uint32_t rev : 4; /**< [ 19: 16](RO) Vendor-specific revision. */
902 uint32_t id : 16; /**< [ 15: 0](RO) Vendor-specific ID. Indicates the {ProductLine} family bridge VSEC ID.
903 Enumerated by PCC_VSECID_E. */
904 #else /* Word 0 - Little Endian */
905 uint32_t id : 16; /**< [ 15: 0](RO) Vendor-specific ID. Indicates the {ProductLine} family bridge VSEC ID.
906 Enumerated by PCC_VSECID_E. */
907 uint32_t rev : 4; /**< [ 19: 16](RO) Vendor-specific revision. */
908 uint32_t len : 12; /**< [ 31: 20](RO) Number of bytes in the entire VSEC structure including PCCBR_XXX_VSEC_CAP_HDR.
909 Internal:
910 Matches PCCPF_XXX_VSEC_ID[LEN], so extra bytes allocated and unused at the end
911 of the structure. */
912 #endif /* Word 0 - End */
913 } cn9;
914 };
915 typedef union bdk_pccbr_xxx_vsec_id bdk_pccbr_xxx_vsec_id_t;
916
917 #define BDK_PCCBR_XXX_VSEC_ID BDK_PCCBR_XXX_VSEC_ID_FUNC()
918 static inline uint64_t BDK_PCCBR_XXX_VSEC_ID_FUNC(void) __attribute__ ((pure, always_inline));
919 static inline uint64_t BDK_PCCBR_XXX_VSEC_ID_FUNC(void)
920 {
921 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
922 return 0x104;
923 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
924 return 0x104;
925 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
926 return 0x10c;
927 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
928 return 0x104;
929 __bdk_csr_fatal("PCCBR_XXX_VSEC_ID", 0, 0, 0, 0, 0);
930 }
931
932 #define typedef_BDK_PCCBR_XXX_VSEC_ID bdk_pccbr_xxx_vsec_id_t
933 #define bustype_BDK_PCCBR_XXX_VSEC_ID BDK_CSR_TYPE_PCCBR
934 #define basename_BDK_PCCBR_XXX_VSEC_ID "PCCBR_XXX_VSEC_ID"
935 #define busnum_BDK_PCCBR_XXX_VSEC_ID 0
936 #define arguments_BDK_PCCBR_XXX_VSEC_ID -1,-1,-1,-1
937
938 /**
939 * Register (PCCBR) pccbr_xxx_vsec_sctl
940 *
941 * PCC Bridge Vendor-Specific Secure Control Register
942 * This register is reset on a chip domain reset.
943 */
944 union bdk_pccbr_xxx_vsec_sctl
945 {
946 uint32_t u;
947 struct bdk_pccbr_xxx_vsec_sctl_s
948 {
949 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
950 uint32_t pi : 8; /**< [ 31: 24](SR/W) Programming interface. R/W version of the value to be presented in
951 PCCBR_XXX_REV[PI]. Reset value 0x1 indicates transparent bridge
952 (subtractive decode). */
953 uint32_t rid : 8; /**< [ 23: 16](SR/W) Revision ID. R/W version of the value to be presented in PCCBR_XXX_REV[RID]. */
954 uint32_t reserved_0_15 : 16;
955 #else /* Word 0 - Little Endian */
956 uint32_t reserved_0_15 : 16;
957 uint32_t rid : 8; /**< [ 23: 16](SR/W) Revision ID. R/W version of the value to be presented in PCCBR_XXX_REV[RID]. */
958 uint32_t pi : 8; /**< [ 31: 24](SR/W) Programming interface. R/W version of the value to be presented in
959 PCCBR_XXX_REV[PI]. Reset value 0x1 indicates transparent bridge
960 (subtractive decode). */
961 #endif /* Word 0 - End */
962 } s;
963 struct bdk_pccbr_xxx_vsec_sctl_cn8
964 {
965 #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */
966 uint32_t reserved_24_31 : 8;
967 uint32_t rid : 8; /**< [ 23: 16](SR/W) Revision ID. R/W version of the value to be presented in PCCBR_XXX_REV[RID]. */
968 uint32_t reserved_0_15 : 16;
969 #else /* Word 0 - Little Endian */
970 uint32_t reserved_0_15 : 16;
971 uint32_t rid : 8; /**< [ 23: 16](SR/W) Revision ID. R/W version of the value to be presented in PCCBR_XXX_REV[RID]. */
972 uint32_t reserved_24_31 : 8;
973 #endif /* Word 0 - End */
974 } cn8;
975 /* struct bdk_pccbr_xxx_vsec_sctl_s cn9; */
976 };
977 typedef union bdk_pccbr_xxx_vsec_sctl bdk_pccbr_xxx_vsec_sctl_t;
978
979 #define BDK_PCCBR_XXX_VSEC_SCTL BDK_PCCBR_XXX_VSEC_SCTL_FUNC()
980 static inline uint64_t BDK_PCCBR_XXX_VSEC_SCTL_FUNC(void) __attribute__ ((pure, always_inline));
981 static inline uint64_t BDK_PCCBR_XXX_VSEC_SCTL_FUNC(void)
982 {
983 if (CAVIUM_IS_MODEL(CAVIUM_CN81XX))
984 return 0x10c;
985 if (CAVIUM_IS_MODEL(CAVIUM_CN83XX))
986 return 0x10c;
987 if (CAVIUM_IS_MODEL(CAVIUM_CN88XX))
988 return 0x114;
989 if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX))
990 return 0x10c;
991 __bdk_csr_fatal("PCCBR_XXX_VSEC_SCTL", 0, 0, 0, 0, 0);
992 }
993
994 #define typedef_BDK_PCCBR_XXX_VSEC_SCTL bdk_pccbr_xxx_vsec_sctl_t
995 #define bustype_BDK_PCCBR_XXX_VSEC_SCTL BDK_CSR_TYPE_PCCBR
996 #define basename_BDK_PCCBR_XXX_VSEC_SCTL "PCCBR_XXX_VSEC_SCTL"
997 #define busnum_BDK_PCCBR_XXX_VSEC_SCTL 0
998 #define arguments_BDK_PCCBR_XXX_VSEC_SCTL -1,-1,-1,-1
999
1000 #endif /* __BDK_CSRS_PCCBR_H__ */