| 1 |
#ifndef __BDK_CSRS_PCCBR_H__ |
| 2 |
#define __BDK_CSRS_PCCBR_H__ |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 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 |
| 70 |
uint32_t reserved_23_31 : 9; |
| 71 |
uint32_t dte : 1; |
| 72 |
uint32_t ece : 1; |
| 73 |
uint32_t ufe : 1; |
| 74 |
uint32_t cre : 1; |
| 75 |
uint32_t rre : 1; |
| 76 |
uint32_t tbe : 1; |
| 77 |
uint32_t sve : 1; |
| 78 |
uint32_t ecvs : 8; |
| 79 |
uint32_t reserved_7 : 1; |
| 80 |
uint32_t dt : 1; |
| 81 |
uint32_t ec : 1; |
| 82 |
uint32_t uf : 1; |
| 83 |
uint32_t cr : 1; |
| 84 |
uint32_t rr : 1; |
| 85 |
uint32_t tb : 1; |
| 86 |
uint32_t sv : 1; |
| 87 |
#else |
| 88 |
uint32_t sv : 1; |
| 89 |
uint32_t tb : 1; |
| 90 |
uint32_t rr : 1; |
| 91 |
uint32_t cr : 1; |
| 92 |
uint32_t uf : 1; |
| 93 |
uint32_t ec : 1; |
| 94 |
uint32_t dt : 1; |
| 95 |
uint32_t reserved_7 : 1; |
| 96 |
uint32_t ecvs : 8; |
| 97 |
uint32_t sve : 1; |
| 98 |
uint32_t tbe : 1; |
| 99 |
uint32_t rre : 1; |
| 100 |
uint32_t cre : 1; |
| 101 |
uint32_t ufe : 1; |
| 102 |
uint32_t ece : 1; |
| 103 |
uint32_t dte : 1; |
| 104 |
uint32_t reserved_23_31 : 9; |
| 105 |
#endif |
| 106 |
} s; |
| 107 |
|
| 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 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 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 |
| 138 |
uint32_t nco : 12; |
| 139 |
uint32_t cv : 4; |
| 140 |
uint32_t acsid : 16; |
| 141 |
#else |
| 142 |
uint32_t acsid : 16; |
| 143 |
uint32_t cv : 4; |
| 144 |
uint32_t nco : 12; |
| 145 |
#endif |
| 146 |
} s; |
| 147 |
|
| 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 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 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 |
| 178 |
uint32_t nco : 12; |
| 179 |
uint32_t cv : 4; |
| 180 |
uint32_t ariid : 16; |
| 181 |
#else |
| 182 |
uint32_t ariid : 16; |
| 183 |
uint32_t cv : 4; |
| 184 |
uint32_t nco : 12; |
| 185 |
#endif |
| 186 |
} s; |
| 187 |
|
| 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 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 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 |
| 218 |
uint32_t slt : 8; |
| 219 |
uint32_t subbnum : 8; |
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
uint32_t sbnum : 8; |
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
uint32_t pbnum : 8; |
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
#else |
| 244 |
uint32_t pbnum : 8; |
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
uint32_t sbnum : 8; |
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
uint32_t subbnum : 8; |
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
uint32_t slt : 8; |
| 269 |
#endif |
| 270 |
} s; |
| 271 |
|
| 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 |
|
| 290 |
|
| 291 |
|
| 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 |
| 299 |
uint32_t reserved_8_31 : 24; |
| 300 |
uint32_t cp : 8; |
| 301 |
#else |
| 302 |
uint32_t cp : 8; |
| 303 |
uint32_t reserved_8_31 : 24; |
| 304 |
#endif |
| 305 |
} s; |
| 306 |
|
| 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 |
|
| 325 |
|
| 326 |
|
| 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 |
| 334 |
uint32_t bist : 8; |
| 335 |
uint32_t mfd : 1; |
| 336 |
uint32_t chf : 7; |
| 337 |
uint32_t lt : 8; |
| 338 |
uint32_t cls : 8; |
| 339 |
#else |
| 340 |
uint32_t cls : 8; |
| 341 |
uint32_t lt : 8; |
| 342 |
uint32_t chf : 7; |
| 343 |
uint32_t mfd : 1; |
| 344 |
uint32_t bist : 8; |
| 345 |
#endif |
| 346 |
} s; |
| 347 |
|
| 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 |
|
| 366 |
|
| 367 |
|
| 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 |
| 375 |
uint32_t reserved_21_31 : 11; |
| 376 |
uint32_t cl : 1; |
| 377 |
uint32_t reserved_3_19 : 17; |
| 378 |
uint32_t me : 1; |
| 379 |
|
| 380 |
|
| 381 |
uint32_t msae : 1; |
| 382 |
|
| 383 |
|
| 384 |
uint32_t reserved_0 : 1; |
| 385 |
#else |
| 386 |
uint32_t reserved_0 : 1; |
| 387 |
uint32_t msae : 1; |
| 388 |
|
| 389 |
|
| 390 |
uint32_t me : 1; |
| 391 |
|
| 392 |
|
| 393 |
uint32_t reserved_3_19 : 17; |
| 394 |
uint32_t cl : 1; |
| 395 |
uint32_t reserved_21_31 : 11; |
| 396 |
#endif |
| 397 |
} s; |
| 398 |
|
| 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 |
|
| 417 |
|
| 418 |
|
| 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 |
| 426 |
uint32_t reserved_7_31 : 25; |
| 427 |
uint32_t atomfwd : 1; |
| 428 |
uint32_t arifwd : 1; |
| 429 |
uint32_t reserved_0_4 : 5; |
| 430 |
#else |
| 431 |
uint32_t reserved_0_4 : 5; |
| 432 |
uint32_t arifwd : 1; |
| 433 |
uint32_t atomfwd : 1; |
| 434 |
uint32_t reserved_7_31 : 25; |
| 435 |
#endif |
| 436 |
} s; |
| 437 |
|
| 438 |
|
| 439 |
struct bdk_pccbr_xxx_e_cap2_cn88xx |
| 440 |
{ |
| 441 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 442 |
uint32_t reserved_6_31 : 26; |
| 443 |
uint32_t arifwd : 1; |
| 444 |
uint32_t reserved_0_4 : 5; |
| 445 |
#else |
| 446 |
uint32_t reserved_0_4 : 5; |
| 447 |
uint32_t arifwd : 1; |
| 448 |
uint32_t reserved_6_31 : 26; |
| 449 |
#endif |
| 450 |
} cn88xx; |
| 451 |
|
| 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 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 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 |
| 480 |
uint32_t reserved_24_31 : 8; |
| 481 |
uint32_t porttype : 4; |
| 482 |
uint32_t pciecv : 4; |
| 483 |
uint32_t ncp : 8; |
| 484 |
uint32_t pcieid : 8; |
| 485 |
#else |
| 486 |
uint32_t pcieid : 8; |
| 487 |
uint32_t ncp : 8; |
| 488 |
uint32_t pciecv : 4; |
| 489 |
uint32_t porttype : 4; |
| 490 |
uint32_t reserved_24_31 : 8; |
| 491 |
#endif |
| 492 |
} s; |
| 493 |
|
| 494 |
struct bdk_pccbr_xxx_e_cap_hdr_cn9 |
| 495 |
{ |
| 496 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 497 |
uint32_t reserved_24_31 : 8; |
| 498 |
uint32_t porttype : 4; |
| 499 |
uint32_t pciecv : 4; |
| 500 |
uint32_t ncp : 8; |
| 501 |
uint32_t pcieid : 8; |
| 502 |
#else |
| 503 |
uint32_t pcieid : 8; |
| 504 |
uint32_t ncp : 8; |
| 505 |
uint32_t pciecv : 4; |
| 506 |
uint32_t porttype : 4; |
| 507 |
uint32_t reserved_24_31 : 8; |
| 508 |
#endif |
| 509 |
} cn9; |
| 510 |
|
| 511 |
|
| 512 |
|
| 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 |
|
| 531 |
|
| 532 |
|
| 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 |
| 540 |
uint32_t reserved_16_31 : 16; |
| 541 |
uint32_t rber : 1; |
| 542 |
uint32_t reserved_0_14 : 15; |
| 543 |
#else |
| 544 |
uint32_t reserved_0_14 : 15; |
| 545 |
uint32_t rber : 1; |
| 546 |
uint32_t reserved_16_31 : 16; |
| 547 |
#endif |
| 548 |
} s; |
| 549 |
|
| 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 |
|
| 574 |
|
| 575 |
|
| 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 |
| 583 |
uint32_t reserved_16_31 : 16; |
| 584 |
uint32_t fixed_subbnum : 8; |
| 585 |
|
| 586 |
uint32_t fixed_sbnum : 8; |
| 587 |
|
| 588 |
#else |
| 589 |
uint32_t fixed_sbnum : 8; |
| 590 |
|
| 591 |
uint32_t fixed_subbnum : 8; |
| 592 |
|
| 593 |
uint32_t reserved_16_31 : 16; |
| 594 |
#endif |
| 595 |
} s; |
| 596 |
|
| 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 |
|
| 623 |
|
| 624 |
|
| 625 |
|
| 626 |
|
| 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 |
| 634 |
uint32_t reserved_22_31 : 10; |
| 635 |
uint32_t num_entries : 6; |
| 636 |
uint32_t ncp : 8; |
| 637 |
uint32_t pcieid : 8; |
| 638 |
#else |
| 639 |
uint32_t pcieid : 8; |
| 640 |
uint32_t ncp : 8; |
| 641 |
uint32_t num_entries : 6; |
| 642 |
uint32_t reserved_22_31 : 10; |
| 643 |
#endif |
| 644 |
} s; |
| 645 |
|
| 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 |
|
| 672 |
|
| 673 |
|
| 674 |
|
| 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 |
| 682 |
uint32_t devid : 16; |
| 683 |
uint32_t vendid : 16; |
| 684 |
#else |
| 685 |
uint32_t vendid : 16; |
| 686 |
uint32_t devid : 16; |
| 687 |
#endif |
| 688 |
} s; |
| 689 |
|
| 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 |
|
| 708 |
|
| 709 |
|
| 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 |
| 717 |
uint32_t bcc : 8; |
| 718 |
uint32_t sc : 8; |
| 719 |
uint32_t pi : 8; |
| 720 |
uint32_t rid : 8; |
| 721 |
#else |
| 722 |
uint32_t rid : 8; |
| 723 |
uint32_t pi : 8; |
| 724 |
uint32_t sc : 8; |
| 725 |
uint32_t bcc : 8; |
| 726 |
#endif |
| 727 |
} s; |
| 728 |
|
| 729 |
struct bdk_pccbr_xxx_rev_cn9 |
| 730 |
{ |
| 731 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 732 |
uint32_t bcc : 8; |
| 733 |
uint32_t sc : 8; |
| 734 |
uint32_t pi : 8; |
| 735 |
uint32_t rid : 8; |
| 736 |
#else |
| 737 |
uint32_t rid : 8; |
| 738 |
uint32_t pi : 8; |
| 739 |
uint32_t sc : 8; |
| 740 |
uint32_t bcc : 8; |
| 741 |
#endif |
| 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 |
|
| 761 |
|
| 762 |
|
| 763 |
|
| 764 |
|
| 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 |
| 772 |
uint32_t nco : 12; |
| 773 |
uint32_t cv : 4; |
| 774 |
uint32_t rbareid : 16; |
| 775 |
#else |
| 776 |
uint32_t rbareid : 16; |
| 777 |
uint32_t cv : 4; |
| 778 |
uint32_t nco : 12; |
| 779 |
#endif |
| 780 |
} s; |
| 781 |
|
| 782 |
struct bdk_pccbr_xxx_vsec_cap_hdr_cn9 |
| 783 |
{ |
| 784 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 785 |
uint32_t nco : 12; |
| 786 |
uint32_t cv : 4; |
| 787 |
uint32_t rbareid : 16; |
| 788 |
#else |
| 789 |
uint32_t rbareid : 16; |
| 790 |
uint32_t cv : 4; |
| 791 |
uint32_t nco : 12; |
| 792 |
#endif |
| 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 |
|
| 820 |
|
| 821 |
|
| 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 |
| 829 |
uint32_t reserved_16_31 : 16; |
| 830 |
uint32_t static_subbnum : 8; |
| 831 |
|
| 832 |
uint32_t inst_num : 8; |
| 833 |
|
| 834 |
#else |
| 835 |
uint32_t inst_num : 8; |
| 836 |
|
| 837 |
uint32_t static_subbnum : 8; |
| 838 |
|
| 839 |
uint32_t reserved_16_31 : 16; |
| 840 |
#endif |
| 841 |
} s; |
| 842 |
|
| 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 |
|
| 869 |
|
| 870 |
|
| 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 |
| 878 |
uint32_t len : 12; |
| 879 |
|
| 880 |
|
| 881 |
|
| 882 |
uint32_t rev : 4; |
| 883 |
uint32_t id : 16; |
| 884 |
#else |
| 885 |
uint32_t id : 16; |
| 886 |
uint32_t rev : 4; |
| 887 |
uint32_t len : 12; |
| 888 |
|
| 889 |
|
| 890 |
|
| 891 |
#endif |
| 892 |
} s; |
| 893 |
|
| 894 |
struct bdk_pccbr_xxx_vsec_id_cn9 |
| 895 |
{ |
| 896 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 897 |
uint32_t len : 12; |
| 898 |
|
| 899 |
|
| 900 |
|
| 901 |
uint32_t rev : 4; |
| 902 |
uint32_t id : 16; |
| 903 |
|
| 904 |
#else |
| 905 |
uint32_t id : 16; |
| 906 |
|
| 907 |
uint32_t rev : 4; |
| 908 |
uint32_t len : 12; |
| 909 |
|
| 910 |
|
| 911 |
|
| 912 |
#endif |
| 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 |
|
| 940 |
|
| 941 |
|
| 942 |
|
| 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 |
| 950 |
uint32_t pi : 8; |
| 951 |
|
| 952 |
|
| 953 |
uint32_t rid : 8; |
| 954 |
uint32_t reserved_0_15 : 16; |
| 955 |
#else |
| 956 |
uint32_t reserved_0_15 : 16; |
| 957 |
uint32_t rid : 8; |
| 958 |
uint32_t pi : 8; |
| 959 |
|
| 960 |
|
| 961 |
#endif |
| 962 |
} s; |
| 963 |
struct bdk_pccbr_xxx_vsec_sctl_cn8 |
| 964 |
{ |
| 965 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 966 |
uint32_t reserved_24_31 : 8; |
| 967 |
uint32_t rid : 8; |
| 968 |
uint32_t reserved_0_15 : 16; |
| 969 |
#else |
| 970 |
uint32_t reserved_0_15 : 16; |
| 971 |
uint32_t rid : 8; |
| 972 |
uint32_t reserved_24_31 : 8; |
| 973 |
#endif |
| 974 |
} cn8; |
| 975 |
|
| 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 |