| 1 |
#ifndef __BDK_CSRS_OCX_H__ |
| 2 |
#define __BDK_CSRS_OCX_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 |
#define BDK_OCX_BAR_E_OCX_PF_BAR0 (0x87e011000000ll) |
| 62 |
#define BDK_OCX_BAR_E_OCX_PF_BAR0_SIZE 0x800000ull |
| 63 |
#define BDK_OCX_BAR_E_OCX_PF_BAR4 (0x87e011f00000ll) |
| 64 |
#define BDK_OCX_BAR_E_OCX_PF_BAR4_SIZE 0x100000ull |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
#define BDK_OCX_INT_VEC_E_COM_INTS (3) |
| 73 |
#define BDK_OCX_INT_VEC_E_LNK_INTSX(a) (0 + (a)) |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
union bdk_ocx_com_bist_status |
| 84 |
{ |
| 85 |
uint64_t u; |
| 86 |
struct bdk_ocx_com_bist_status_s |
| 87 |
{ |
| 88 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 89 |
uint64_t reserved_36_63 : 28; |
| 90 |
uint64_t status : 36; |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
#else |
| 111 |
uint64_t status : 36; |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
uint64_t reserved_36_63 : 28; |
| 132 |
#endif |
| 133 |
} s; |
| 134 |
|
| 135 |
}; |
| 136 |
typedef union bdk_ocx_com_bist_status bdk_ocx_com_bist_status_t; |
| 137 |
|
| 138 |
#define BDK_OCX_COM_BIST_STATUS BDK_OCX_COM_BIST_STATUS_FUNC() |
| 139 |
static inline uint64_t BDK_OCX_COM_BIST_STATUS_FUNC(void) __attribute__ ((pure, always_inline)); |
| 140 |
static inline uint64_t BDK_OCX_COM_BIST_STATUS_FUNC(void) |
| 141 |
{ |
| 142 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 143 |
return 0x87e0110000f0ll; |
| 144 |
__bdk_csr_fatal("OCX_COM_BIST_STATUS", 0, 0, 0, 0, 0); |
| 145 |
} |
| 146 |
|
| 147 |
#define typedef_BDK_OCX_COM_BIST_STATUS bdk_ocx_com_bist_status_t |
| 148 |
#define bustype_BDK_OCX_COM_BIST_STATUS BDK_CSR_TYPE_RSL |
| 149 |
#define basename_BDK_OCX_COM_BIST_STATUS "OCX_COM_BIST_STATUS" |
| 150 |
#define device_bar_BDK_OCX_COM_BIST_STATUS 0x0 |
| 151 |
#define busnum_BDK_OCX_COM_BIST_STATUS 0 |
| 152 |
#define arguments_BDK_OCX_COM_BIST_STATUS -1,-1,-1,-1 |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
union bdk_ocx_com_dual_sort |
| 160 |
{ |
| 161 |
uint64_t u; |
| 162 |
struct bdk_ocx_com_dual_sort_s |
| 163 |
{ |
| 164 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 165 |
uint64_t reserved_2_63 : 62; |
| 166 |
uint64_t sort : 2; |
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
#else |
| 172 |
uint64_t sort : 2; |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
uint64_t reserved_2_63 : 62; |
| 178 |
#endif |
| 179 |
} s; |
| 180 |
|
| 181 |
}; |
| 182 |
typedef union bdk_ocx_com_dual_sort bdk_ocx_com_dual_sort_t; |
| 183 |
|
| 184 |
#define BDK_OCX_COM_DUAL_SORT BDK_OCX_COM_DUAL_SORT_FUNC() |
| 185 |
static inline uint64_t BDK_OCX_COM_DUAL_SORT_FUNC(void) __attribute__ ((pure, always_inline)); |
| 186 |
static inline uint64_t BDK_OCX_COM_DUAL_SORT_FUNC(void) |
| 187 |
{ |
| 188 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 189 |
return 0x87e011000008ll; |
| 190 |
__bdk_csr_fatal("OCX_COM_DUAL_SORT", 0, 0, 0, 0, 0); |
| 191 |
} |
| 192 |
|
| 193 |
#define typedef_BDK_OCX_COM_DUAL_SORT bdk_ocx_com_dual_sort_t |
| 194 |
#define bustype_BDK_OCX_COM_DUAL_SORT BDK_CSR_TYPE_RSL |
| 195 |
#define basename_BDK_OCX_COM_DUAL_SORT "OCX_COM_DUAL_SORT" |
| 196 |
#define device_bar_BDK_OCX_COM_DUAL_SORT 0x0 |
| 197 |
#define busnum_BDK_OCX_COM_DUAL_SORT 0 |
| 198 |
#define arguments_BDK_OCX_COM_DUAL_SORT -1,-1,-1,-1 |
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
union bdk_ocx_com_int |
| 206 |
{ |
| 207 |
uint64_t u; |
| 208 |
struct bdk_ocx_com_int_s |
| 209 |
{ |
| 210 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 211 |
uint64_t reserved_55_63 : 9; |
| 212 |
uint64_t io_badid : 1; |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
uint64_t mem_badid : 1; |
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
uint64_t copr_badid : 1; |
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
uint64_t win_req_badid : 1; |
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
uint64_t win_req_tout : 1; |
| 232 |
|
| 233 |
|
| 234 |
uint64_t win_req_xmit : 1; |
| 235 |
|
| 236 |
|
| 237 |
uint64_t win_rsp : 1; |
| 238 |
|
| 239 |
uint64_t reserved_24_47 : 24; |
| 240 |
uint64_t rx_lane : 24; |
| 241 |
#else |
| 242 |
uint64_t rx_lane : 24; |
| 243 |
uint64_t reserved_24_47 : 24; |
| 244 |
uint64_t win_rsp : 1; |
| 245 |
|
| 246 |
uint64_t win_req_xmit : 1; |
| 247 |
|
| 248 |
|
| 249 |
uint64_t win_req_tout : 1; |
| 250 |
|
| 251 |
|
| 252 |
uint64_t win_req_badid : 1; |
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
uint64_t copr_badid : 1; |
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
uint64_t mem_badid : 1; |
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
uint64_t io_badid : 1; |
| 268 |
|
| 269 |
|
| 270 |
|
| 271 |
uint64_t reserved_55_63 : 9; |
| 272 |
#endif |
| 273 |
} s; |
| 274 |
|
| 275 |
}; |
| 276 |
typedef union bdk_ocx_com_int bdk_ocx_com_int_t; |
| 277 |
|
| 278 |
#define BDK_OCX_COM_INT BDK_OCX_COM_INT_FUNC() |
| 279 |
static inline uint64_t BDK_OCX_COM_INT_FUNC(void) __attribute__ ((pure, always_inline)); |
| 280 |
static inline uint64_t BDK_OCX_COM_INT_FUNC(void) |
| 281 |
{ |
| 282 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 283 |
return 0x87e011000100ll; |
| 284 |
__bdk_csr_fatal("OCX_COM_INT", 0, 0, 0, 0, 0); |
| 285 |
} |
| 286 |
|
| 287 |
#define typedef_BDK_OCX_COM_INT bdk_ocx_com_int_t |
| 288 |
#define bustype_BDK_OCX_COM_INT BDK_CSR_TYPE_RSL |
| 289 |
#define basename_BDK_OCX_COM_INT "OCX_COM_INT" |
| 290 |
#define device_bar_BDK_OCX_COM_INT 0x0 |
| 291 |
#define busnum_BDK_OCX_COM_INT 0 |
| 292 |
#define arguments_BDK_OCX_COM_INT -1,-1,-1,-1 |
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
union bdk_ocx_com_int_ena_w1c |
| 301 |
{ |
| 302 |
uint64_t u; |
| 303 |
struct bdk_ocx_com_int_ena_w1c_s |
| 304 |
{ |
| 305 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 306 |
uint64_t reserved_55_63 : 9; |
| 307 |
uint64_t io_badid : 1; |
| 308 |
uint64_t mem_badid : 1; |
| 309 |
uint64_t copr_badid : 1; |
| 310 |
uint64_t win_req_badid : 1; |
| 311 |
uint64_t win_req_tout : 1; |
| 312 |
uint64_t win_req_xmit : 1; |
| 313 |
uint64_t win_rsp : 1; |
| 314 |
uint64_t reserved_24_47 : 24; |
| 315 |
uint64_t rx_lane : 24; |
| 316 |
#else |
| 317 |
uint64_t rx_lane : 24; |
| 318 |
uint64_t reserved_24_47 : 24; |
| 319 |
uint64_t win_rsp : 1; |
| 320 |
uint64_t win_req_xmit : 1; |
| 321 |
uint64_t win_req_tout : 1; |
| 322 |
uint64_t win_req_badid : 1; |
| 323 |
uint64_t copr_badid : 1; |
| 324 |
uint64_t mem_badid : 1; |
| 325 |
uint64_t io_badid : 1; |
| 326 |
uint64_t reserved_55_63 : 9; |
| 327 |
#endif |
| 328 |
} s; |
| 329 |
|
| 330 |
}; |
| 331 |
typedef union bdk_ocx_com_int_ena_w1c bdk_ocx_com_int_ena_w1c_t; |
| 332 |
|
| 333 |
#define BDK_OCX_COM_INT_ENA_W1C BDK_OCX_COM_INT_ENA_W1C_FUNC() |
| 334 |
static inline uint64_t BDK_OCX_COM_INT_ENA_W1C_FUNC(void) __attribute__ ((pure, always_inline)); |
| 335 |
static inline uint64_t BDK_OCX_COM_INT_ENA_W1C_FUNC(void) |
| 336 |
{ |
| 337 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 338 |
return 0x87e011000118ll; |
| 339 |
__bdk_csr_fatal("OCX_COM_INT_ENA_W1C", 0, 0, 0, 0, 0); |
| 340 |
} |
| 341 |
|
| 342 |
#define typedef_BDK_OCX_COM_INT_ENA_W1C bdk_ocx_com_int_ena_w1c_t |
| 343 |
#define bustype_BDK_OCX_COM_INT_ENA_W1C BDK_CSR_TYPE_RSL |
| 344 |
#define basename_BDK_OCX_COM_INT_ENA_W1C "OCX_COM_INT_ENA_W1C" |
| 345 |
#define device_bar_BDK_OCX_COM_INT_ENA_W1C 0x0 |
| 346 |
#define busnum_BDK_OCX_COM_INT_ENA_W1C 0 |
| 347 |
#define arguments_BDK_OCX_COM_INT_ENA_W1C -1,-1,-1,-1 |
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
|
| 355 |
union bdk_ocx_com_int_ena_w1s |
| 356 |
{ |
| 357 |
uint64_t u; |
| 358 |
struct bdk_ocx_com_int_ena_w1s_s |
| 359 |
{ |
| 360 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 361 |
uint64_t reserved_55_63 : 9; |
| 362 |
uint64_t io_badid : 1; |
| 363 |
uint64_t mem_badid : 1; |
| 364 |
uint64_t copr_badid : 1; |
| 365 |
uint64_t win_req_badid : 1; |
| 366 |
uint64_t win_req_tout : 1; |
| 367 |
uint64_t win_req_xmit : 1; |
| 368 |
uint64_t win_rsp : 1; |
| 369 |
uint64_t reserved_24_47 : 24; |
| 370 |
uint64_t rx_lane : 24; |
| 371 |
#else |
| 372 |
uint64_t rx_lane : 24; |
| 373 |
uint64_t reserved_24_47 : 24; |
| 374 |
uint64_t win_rsp : 1; |
| 375 |
uint64_t win_req_xmit : 1; |
| 376 |
uint64_t win_req_tout : 1; |
| 377 |
uint64_t win_req_badid : 1; |
| 378 |
uint64_t copr_badid : 1; |
| 379 |
uint64_t mem_badid : 1; |
| 380 |
uint64_t io_badid : 1; |
| 381 |
uint64_t reserved_55_63 : 9; |
| 382 |
#endif |
| 383 |
} s; |
| 384 |
|
| 385 |
}; |
| 386 |
typedef union bdk_ocx_com_int_ena_w1s bdk_ocx_com_int_ena_w1s_t; |
| 387 |
|
| 388 |
#define BDK_OCX_COM_INT_ENA_W1S BDK_OCX_COM_INT_ENA_W1S_FUNC() |
| 389 |
static inline uint64_t BDK_OCX_COM_INT_ENA_W1S_FUNC(void) __attribute__ ((pure, always_inline)); |
| 390 |
static inline uint64_t BDK_OCX_COM_INT_ENA_W1S_FUNC(void) |
| 391 |
{ |
| 392 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 393 |
return 0x87e011000110ll; |
| 394 |
__bdk_csr_fatal("OCX_COM_INT_ENA_W1S", 0, 0, 0, 0, 0); |
| 395 |
} |
| 396 |
|
| 397 |
#define typedef_BDK_OCX_COM_INT_ENA_W1S bdk_ocx_com_int_ena_w1s_t |
| 398 |
#define bustype_BDK_OCX_COM_INT_ENA_W1S BDK_CSR_TYPE_RSL |
| 399 |
#define basename_BDK_OCX_COM_INT_ENA_W1S "OCX_COM_INT_ENA_W1S" |
| 400 |
#define device_bar_BDK_OCX_COM_INT_ENA_W1S 0x0 |
| 401 |
#define busnum_BDK_OCX_COM_INT_ENA_W1S 0 |
| 402 |
#define arguments_BDK_OCX_COM_INT_ENA_W1S -1,-1,-1,-1 |
| 403 |
|
| 404 |
|
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
union bdk_ocx_com_int_w1s |
| 411 |
{ |
| 412 |
uint64_t u; |
| 413 |
struct bdk_ocx_com_int_w1s_s |
| 414 |
{ |
| 415 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 416 |
uint64_t reserved_55_63 : 9; |
| 417 |
uint64_t io_badid : 1; |
| 418 |
uint64_t mem_badid : 1; |
| 419 |
uint64_t copr_badid : 1; |
| 420 |
uint64_t win_req_badid : 1; |
| 421 |
uint64_t win_req_tout : 1; |
| 422 |
uint64_t win_req_xmit : 1; |
| 423 |
uint64_t win_rsp : 1; |
| 424 |
uint64_t reserved_24_47 : 24; |
| 425 |
uint64_t rx_lane : 24; |
| 426 |
#else |
| 427 |
uint64_t rx_lane : 24; |
| 428 |
uint64_t reserved_24_47 : 24; |
| 429 |
uint64_t win_rsp : 1; |
| 430 |
uint64_t win_req_xmit : 1; |
| 431 |
uint64_t win_req_tout : 1; |
| 432 |
uint64_t win_req_badid : 1; |
| 433 |
uint64_t copr_badid : 1; |
| 434 |
uint64_t mem_badid : 1; |
| 435 |
uint64_t io_badid : 1; |
| 436 |
uint64_t reserved_55_63 : 9; |
| 437 |
#endif |
| 438 |
} s; |
| 439 |
|
| 440 |
}; |
| 441 |
typedef union bdk_ocx_com_int_w1s bdk_ocx_com_int_w1s_t; |
| 442 |
|
| 443 |
#define BDK_OCX_COM_INT_W1S BDK_OCX_COM_INT_W1S_FUNC() |
| 444 |
static inline uint64_t BDK_OCX_COM_INT_W1S_FUNC(void) __attribute__ ((pure, always_inline)); |
| 445 |
static inline uint64_t BDK_OCX_COM_INT_W1S_FUNC(void) |
| 446 |
{ |
| 447 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 448 |
return 0x87e011000108ll; |
| 449 |
__bdk_csr_fatal("OCX_COM_INT_W1S", 0, 0, 0, 0, 0); |
| 450 |
} |
| 451 |
|
| 452 |
#define typedef_BDK_OCX_COM_INT_W1S bdk_ocx_com_int_w1s_t |
| 453 |
#define bustype_BDK_OCX_COM_INT_W1S BDK_CSR_TYPE_RSL |
| 454 |
#define basename_BDK_OCX_COM_INT_W1S "OCX_COM_INT_W1S" |
| 455 |
#define device_bar_BDK_OCX_COM_INT_W1S 0x0 |
| 456 |
#define busnum_BDK_OCX_COM_INT_W1S 0 |
| 457 |
#define arguments_BDK_OCX_COM_INT_W1S -1,-1,-1,-1 |
| 458 |
|
| 459 |
|
| 460 |
|
| 461 |
|
| 462 |
|
| 463 |
|
| 464 |
|
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
|
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
|
| 476 |
union bdk_ocx_com_linkx_ctl |
| 477 |
{ |
| 478 |
uint64_t u; |
| 479 |
struct bdk_ocx_com_linkx_ctl_s |
| 480 |
{ |
| 481 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 482 |
uint64_t reserved_10_63 : 54; |
| 483 |
uint64_t cclk_dis : 1; |
| 484 |
|
| 485 |
|
| 486 |
|
| 487 |
uint64_t loopback : 1; |
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
|
| 492 |
uint64_t reinit : 1; |
| 493 |
|
| 494 |
|
| 495 |
uint64_t reserved_6 : 1; |
| 496 |
uint64_t auto_clr : 1; |
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
uint64_t drop : 1; |
| 501 |
|
| 502 |
|
| 503 |
uint64_t up : 1; |
| 504 |
uint64_t valid : 1; |
| 505 |
|
| 506 |
uint64_t id : 2; |
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
#else |
| 512 |
uint64_t id : 2; |
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
uint64_t valid : 1; |
| 518 |
|
| 519 |
uint64_t up : 1; |
| 520 |
uint64_t drop : 1; |
| 521 |
|
| 522 |
|
| 523 |
uint64_t auto_clr : 1; |
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
uint64_t reserved_6 : 1; |
| 528 |
uint64_t reinit : 1; |
| 529 |
|
| 530 |
|
| 531 |
uint64_t loopback : 1; |
| 532 |
|
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
uint64_t cclk_dis : 1; |
| 537 |
|
| 538 |
|
| 539 |
|
| 540 |
uint64_t reserved_10_63 : 54; |
| 541 |
#endif |
| 542 |
} s; |
| 543 |
|
| 544 |
}; |
| 545 |
typedef union bdk_ocx_com_linkx_ctl bdk_ocx_com_linkx_ctl_t; |
| 546 |
|
| 547 |
static inline uint64_t BDK_OCX_COM_LINKX_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 548 |
static inline uint64_t BDK_OCX_COM_LINKX_CTL(unsigned long a) |
| 549 |
{ |
| 550 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 551 |
return 0x87e011000020ll + 8ll * ((a) & 0x3); |
| 552 |
__bdk_csr_fatal("OCX_COM_LINKX_CTL", 1, a, 0, 0, 0); |
| 553 |
} |
| 554 |
|
| 555 |
#define typedef_BDK_OCX_COM_LINKX_CTL(a) bdk_ocx_com_linkx_ctl_t |
| 556 |
#define bustype_BDK_OCX_COM_LINKX_CTL(a) BDK_CSR_TYPE_RSL |
| 557 |
#define basename_BDK_OCX_COM_LINKX_CTL(a) "OCX_COM_LINKX_CTL" |
| 558 |
#define device_bar_BDK_OCX_COM_LINKX_CTL(a) 0x0 |
| 559 |
#define busnum_BDK_OCX_COM_LINKX_CTL(a) (a) |
| 560 |
#define arguments_BDK_OCX_COM_LINKX_CTL(a) (a),-1,-1,-1 |
| 561 |
|
| 562 |
|
| 563 |
|
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
union bdk_ocx_com_linkx_int |
| 568 |
{ |
| 569 |
uint64_t u; |
| 570 |
struct bdk_ocx_com_linkx_int_s |
| 571 |
{ |
| 572 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 573 |
uint64_t reserved_14_63 : 50; |
| 574 |
uint64_t bad_word : 1; |
| 575 |
|
| 576 |
|
| 577 |
uint64_t align_fail : 1; |
| 578 |
|
| 579 |
|
| 580 |
uint64_t align_done : 1; |
| 581 |
|
| 582 |
|
| 583 |
uint64_t up : 1; |
| 584 |
|
| 585 |
|
| 586 |
uint64_t stop : 1; |
| 587 |
|
| 588 |
|
| 589 |
|
| 590 |
uint64_t blk_err : 1; |
| 591 |
|
| 592 |
|
| 593 |
uint64_t reinit : 1; |
| 594 |
|
| 595 |
uint64_t lnk_data : 1; |
| 596 |
|
| 597 |
uint64_t rxfifo_dbe : 1; |
| 598 |
uint64_t rxfifo_sbe : 1; |
| 599 |
|
| 600 |
uint64_t txfifo_dbe : 1; |
| 601 |
uint64_t txfifo_sbe : 1; |
| 602 |
|
| 603 |
uint64_t replay_dbe : 1; |
| 604 |
uint64_t replay_sbe : 1; |
| 605 |
|
| 606 |
#else |
| 607 |
uint64_t replay_sbe : 1; |
| 608 |
|
| 609 |
uint64_t replay_dbe : 1; |
| 610 |
uint64_t txfifo_sbe : 1; |
| 611 |
|
| 612 |
uint64_t txfifo_dbe : 1; |
| 613 |
uint64_t rxfifo_sbe : 1; |
| 614 |
|
| 615 |
uint64_t rxfifo_dbe : 1; |
| 616 |
uint64_t lnk_data : 1; |
| 617 |
|
| 618 |
uint64_t reinit : 1; |
| 619 |
|
| 620 |
uint64_t blk_err : 1; |
| 621 |
|
| 622 |
|
| 623 |
uint64_t stop : 1; |
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
uint64_t up : 1; |
| 628 |
|
| 629 |
|
| 630 |
uint64_t align_done : 1; |
| 631 |
|
| 632 |
|
| 633 |
uint64_t align_fail : 1; |
| 634 |
|
| 635 |
|
| 636 |
uint64_t bad_word : 1; |
| 637 |
|
| 638 |
|
| 639 |
uint64_t reserved_14_63 : 50; |
| 640 |
#endif |
| 641 |
} s; |
| 642 |
|
| 643 |
}; |
| 644 |
typedef union bdk_ocx_com_linkx_int bdk_ocx_com_linkx_int_t; |
| 645 |
|
| 646 |
static inline uint64_t BDK_OCX_COM_LINKX_INT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 647 |
static inline uint64_t BDK_OCX_COM_LINKX_INT(unsigned long a) |
| 648 |
{ |
| 649 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 650 |
return 0x87e011000120ll + 8ll * ((a) & 0x3); |
| 651 |
__bdk_csr_fatal("OCX_COM_LINKX_INT", 1, a, 0, 0, 0); |
| 652 |
} |
| 653 |
|
| 654 |
#define typedef_BDK_OCX_COM_LINKX_INT(a) bdk_ocx_com_linkx_int_t |
| 655 |
#define bustype_BDK_OCX_COM_LINKX_INT(a) BDK_CSR_TYPE_RSL |
| 656 |
#define basename_BDK_OCX_COM_LINKX_INT(a) "OCX_COM_LINKX_INT" |
| 657 |
#define device_bar_BDK_OCX_COM_LINKX_INT(a) 0x0 |
| 658 |
#define busnum_BDK_OCX_COM_LINKX_INT(a) (a) |
| 659 |
#define arguments_BDK_OCX_COM_LINKX_INT(a) (a),-1,-1,-1 |
| 660 |
|
| 661 |
|
| 662 |
|
| 663 |
|
| 664 |
|
| 665 |
|
| 666 |
|
| 667 |
union bdk_ocx_com_linkx_int_ena_w1c |
| 668 |
{ |
| 669 |
uint64_t u; |
| 670 |
struct bdk_ocx_com_linkx_int_ena_w1c_s |
| 671 |
{ |
| 672 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 673 |
uint64_t reserved_14_63 : 50; |
| 674 |
uint64_t bad_word : 1; |
| 675 |
uint64_t align_fail : 1; |
| 676 |
uint64_t align_done : 1; |
| 677 |
uint64_t up : 1; |
| 678 |
uint64_t stop : 1; |
| 679 |
uint64_t blk_err : 1; |
| 680 |
uint64_t reinit : 1; |
| 681 |
uint64_t lnk_data : 1; |
| 682 |
uint64_t rxfifo_dbe : 1; |
| 683 |
uint64_t rxfifo_sbe : 1; |
| 684 |
uint64_t txfifo_dbe : 1; |
| 685 |
uint64_t txfifo_sbe : 1; |
| 686 |
uint64_t replay_dbe : 1; |
| 687 |
uint64_t replay_sbe : 1; |
| 688 |
#else |
| 689 |
uint64_t replay_sbe : 1; |
| 690 |
uint64_t replay_dbe : 1; |
| 691 |
uint64_t txfifo_sbe : 1; |
| 692 |
uint64_t txfifo_dbe : 1; |
| 693 |
uint64_t rxfifo_sbe : 1; |
| 694 |
uint64_t rxfifo_dbe : 1; |
| 695 |
uint64_t lnk_data : 1; |
| 696 |
uint64_t reinit : 1; |
| 697 |
uint64_t blk_err : 1; |
| 698 |
uint64_t stop : 1; |
| 699 |
uint64_t up : 1; |
| 700 |
uint64_t align_done : 1; |
| 701 |
uint64_t align_fail : 1; |
| 702 |
uint64_t bad_word : 1; |
| 703 |
uint64_t reserved_14_63 : 50; |
| 704 |
#endif |
| 705 |
} s; |
| 706 |
|
| 707 |
}; |
| 708 |
typedef union bdk_ocx_com_linkx_int_ena_w1c bdk_ocx_com_linkx_int_ena_w1c_t; |
| 709 |
|
| 710 |
static inline uint64_t BDK_OCX_COM_LINKX_INT_ENA_W1C(unsigned long a) __attribute__ ((pure, always_inline)); |
| 711 |
static inline uint64_t BDK_OCX_COM_LINKX_INT_ENA_W1C(unsigned long a) |
| 712 |
{ |
| 713 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 714 |
return 0x87e011000180ll + 8ll * ((a) & 0x3); |
| 715 |
__bdk_csr_fatal("OCX_COM_LINKX_INT_ENA_W1C", 1, a, 0, 0, 0); |
| 716 |
} |
| 717 |
|
| 718 |
#define typedef_BDK_OCX_COM_LINKX_INT_ENA_W1C(a) bdk_ocx_com_linkx_int_ena_w1c_t |
| 719 |
#define bustype_BDK_OCX_COM_LINKX_INT_ENA_W1C(a) BDK_CSR_TYPE_RSL |
| 720 |
#define basename_BDK_OCX_COM_LINKX_INT_ENA_W1C(a) "OCX_COM_LINKX_INT_ENA_W1C" |
| 721 |
#define device_bar_BDK_OCX_COM_LINKX_INT_ENA_W1C(a) 0x0 |
| 722 |
#define busnum_BDK_OCX_COM_LINKX_INT_ENA_W1C(a) (a) |
| 723 |
#define arguments_BDK_OCX_COM_LINKX_INT_ENA_W1C(a) (a),-1,-1,-1 |
| 724 |
|
| 725 |
|
| 726 |
|
| 727 |
|
| 728 |
|
| 729 |
|
| 730 |
|
| 731 |
union bdk_ocx_com_linkx_int_ena_w1s |
| 732 |
{ |
| 733 |
uint64_t u; |
| 734 |
struct bdk_ocx_com_linkx_int_ena_w1s_s |
| 735 |
{ |
| 736 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 737 |
uint64_t reserved_14_63 : 50; |
| 738 |
uint64_t bad_word : 1; |
| 739 |
uint64_t align_fail : 1; |
| 740 |
uint64_t align_done : 1; |
| 741 |
uint64_t up : 1; |
| 742 |
uint64_t stop : 1; |
| 743 |
uint64_t blk_err : 1; |
| 744 |
uint64_t reinit : 1; |
| 745 |
uint64_t lnk_data : 1; |
| 746 |
uint64_t rxfifo_dbe : 1; |
| 747 |
uint64_t rxfifo_sbe : 1; |
| 748 |
uint64_t txfifo_dbe : 1; |
| 749 |
uint64_t txfifo_sbe : 1; |
| 750 |
uint64_t replay_dbe : 1; |
| 751 |
uint64_t replay_sbe : 1; |
| 752 |
#else |
| 753 |
uint64_t replay_sbe : 1; |
| 754 |
uint64_t replay_dbe : 1; |
| 755 |
uint64_t txfifo_sbe : 1; |
| 756 |
uint64_t txfifo_dbe : 1; |
| 757 |
uint64_t rxfifo_sbe : 1; |
| 758 |
uint64_t rxfifo_dbe : 1; |
| 759 |
uint64_t lnk_data : 1; |
| 760 |
uint64_t reinit : 1; |
| 761 |
uint64_t blk_err : 1; |
| 762 |
uint64_t stop : 1; |
| 763 |
uint64_t up : 1; |
| 764 |
uint64_t align_done : 1; |
| 765 |
uint64_t align_fail : 1; |
| 766 |
uint64_t bad_word : 1; |
| 767 |
uint64_t reserved_14_63 : 50; |
| 768 |
#endif |
| 769 |
} s; |
| 770 |
|
| 771 |
}; |
| 772 |
typedef union bdk_ocx_com_linkx_int_ena_w1s bdk_ocx_com_linkx_int_ena_w1s_t; |
| 773 |
|
| 774 |
static inline uint64_t BDK_OCX_COM_LINKX_INT_ENA_W1S(unsigned long a) __attribute__ ((pure, always_inline)); |
| 775 |
static inline uint64_t BDK_OCX_COM_LINKX_INT_ENA_W1S(unsigned long a) |
| 776 |
{ |
| 777 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 778 |
return 0x87e011000160ll + 8ll * ((a) & 0x3); |
| 779 |
__bdk_csr_fatal("OCX_COM_LINKX_INT_ENA_W1S", 1, a, 0, 0, 0); |
| 780 |
} |
| 781 |
|
| 782 |
#define typedef_BDK_OCX_COM_LINKX_INT_ENA_W1S(a) bdk_ocx_com_linkx_int_ena_w1s_t |
| 783 |
#define bustype_BDK_OCX_COM_LINKX_INT_ENA_W1S(a) BDK_CSR_TYPE_RSL |
| 784 |
#define basename_BDK_OCX_COM_LINKX_INT_ENA_W1S(a) "OCX_COM_LINKX_INT_ENA_W1S" |
| 785 |
#define device_bar_BDK_OCX_COM_LINKX_INT_ENA_W1S(a) 0x0 |
| 786 |
#define busnum_BDK_OCX_COM_LINKX_INT_ENA_W1S(a) (a) |
| 787 |
#define arguments_BDK_OCX_COM_LINKX_INT_ENA_W1S(a) (a),-1,-1,-1 |
| 788 |
|
| 789 |
|
| 790 |
|
| 791 |
|
| 792 |
|
| 793 |
|
| 794 |
|
| 795 |
union bdk_ocx_com_linkx_int_w1s |
| 796 |
{ |
| 797 |
uint64_t u; |
| 798 |
struct bdk_ocx_com_linkx_int_w1s_s |
| 799 |
{ |
| 800 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 801 |
uint64_t reserved_14_63 : 50; |
| 802 |
uint64_t bad_word : 1; |
| 803 |
uint64_t align_fail : 1; |
| 804 |
uint64_t align_done : 1; |
| 805 |
uint64_t up : 1; |
| 806 |
uint64_t stop : 1; |
| 807 |
uint64_t blk_err : 1; |
| 808 |
uint64_t reinit : 1; |
| 809 |
uint64_t lnk_data : 1; |
| 810 |
uint64_t rxfifo_dbe : 1; |
| 811 |
uint64_t rxfifo_sbe : 1; |
| 812 |
uint64_t txfifo_dbe : 1; |
| 813 |
uint64_t txfifo_sbe : 1; |
| 814 |
uint64_t replay_dbe : 1; |
| 815 |
uint64_t replay_sbe : 1; |
| 816 |
#else |
| 817 |
uint64_t replay_sbe : 1; |
| 818 |
uint64_t replay_dbe : 1; |
| 819 |
uint64_t txfifo_sbe : 1; |
| 820 |
uint64_t txfifo_dbe : 1; |
| 821 |
uint64_t rxfifo_sbe : 1; |
| 822 |
uint64_t rxfifo_dbe : 1; |
| 823 |
uint64_t lnk_data : 1; |
| 824 |
uint64_t reinit : 1; |
| 825 |
uint64_t blk_err : 1; |
| 826 |
uint64_t stop : 1; |
| 827 |
uint64_t up : 1; |
| 828 |
uint64_t align_done : 1; |
| 829 |
uint64_t align_fail : 1; |
| 830 |
uint64_t bad_word : 1; |
| 831 |
uint64_t reserved_14_63 : 50; |
| 832 |
#endif |
| 833 |
} s; |
| 834 |
|
| 835 |
}; |
| 836 |
typedef union bdk_ocx_com_linkx_int_w1s bdk_ocx_com_linkx_int_w1s_t; |
| 837 |
|
| 838 |
static inline uint64_t BDK_OCX_COM_LINKX_INT_W1S(unsigned long a) __attribute__ ((pure, always_inline)); |
| 839 |
static inline uint64_t BDK_OCX_COM_LINKX_INT_W1S(unsigned long a) |
| 840 |
{ |
| 841 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 842 |
return 0x87e011000140ll + 8ll * ((a) & 0x3); |
| 843 |
__bdk_csr_fatal("OCX_COM_LINKX_INT_W1S", 1, a, 0, 0, 0); |
| 844 |
} |
| 845 |
|
| 846 |
#define typedef_BDK_OCX_COM_LINKX_INT_W1S(a) bdk_ocx_com_linkx_int_w1s_t |
| 847 |
#define bustype_BDK_OCX_COM_LINKX_INT_W1S(a) BDK_CSR_TYPE_RSL |
| 848 |
#define basename_BDK_OCX_COM_LINKX_INT_W1S(a) "OCX_COM_LINKX_INT_W1S" |
| 849 |
#define device_bar_BDK_OCX_COM_LINKX_INT_W1S(a) 0x0 |
| 850 |
#define busnum_BDK_OCX_COM_LINKX_INT_W1S(a) (a) |
| 851 |
#define arguments_BDK_OCX_COM_LINKX_INT_W1S(a) (a),-1,-1,-1 |
| 852 |
|
| 853 |
|
| 854 |
|
| 855 |
|
| 856 |
|
| 857 |
|
| 858 |
union bdk_ocx_com_link_timer |
| 859 |
{ |
| 860 |
uint64_t u; |
| 861 |
struct bdk_ocx_com_link_timer_s |
| 862 |
{ |
| 863 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 864 |
uint64_t reserved_24_63 : 40; |
| 865 |
uint64_t tout : 24; |
| 866 |
|
| 867 |
#else |
| 868 |
uint64_t tout : 24; |
| 869 |
|
| 870 |
uint64_t reserved_24_63 : 40; |
| 871 |
#endif |
| 872 |
} s; |
| 873 |
|
| 874 |
}; |
| 875 |
typedef union bdk_ocx_com_link_timer bdk_ocx_com_link_timer_t; |
| 876 |
|
| 877 |
#define BDK_OCX_COM_LINK_TIMER BDK_OCX_COM_LINK_TIMER_FUNC() |
| 878 |
static inline uint64_t BDK_OCX_COM_LINK_TIMER_FUNC(void) __attribute__ ((pure, always_inline)); |
| 879 |
static inline uint64_t BDK_OCX_COM_LINK_TIMER_FUNC(void) |
| 880 |
{ |
| 881 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 882 |
return 0x87e011000010ll; |
| 883 |
__bdk_csr_fatal("OCX_COM_LINK_TIMER", 0, 0, 0, 0, 0); |
| 884 |
} |
| 885 |
|
| 886 |
#define typedef_BDK_OCX_COM_LINK_TIMER bdk_ocx_com_link_timer_t |
| 887 |
#define bustype_BDK_OCX_COM_LINK_TIMER BDK_CSR_TYPE_RSL |
| 888 |
#define basename_BDK_OCX_COM_LINK_TIMER "OCX_COM_LINK_TIMER" |
| 889 |
#define device_bar_BDK_OCX_COM_LINK_TIMER 0x0 |
| 890 |
#define busnum_BDK_OCX_COM_LINK_TIMER 0 |
| 891 |
#define arguments_BDK_OCX_COM_LINK_TIMER -1,-1,-1,-1 |
| 892 |
|
| 893 |
|
| 894 |
|
| 895 |
|
| 896 |
|
| 897 |
|
| 898 |
union bdk_ocx_com_node |
| 899 |
{ |
| 900 |
uint64_t u; |
| 901 |
struct bdk_ocx_com_node_s |
| 902 |
{ |
| 903 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 904 |
uint64_t reserved_4_63 : 60; |
| 905 |
uint64_t fixed_pin : 1; |
| 906 |
uint64_t fixed : 1; |
| 907 |
|
| 908 |
|
| 909 |
|
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
uint64_t id : 2; |
| 914 |
|
| 915 |
|
| 916 |
|
| 917 |
|
| 918 |
|
| 919 |
|
| 920 |
|
| 921 |
#else |
| 922 |
uint64_t id : 2; |
| 923 |
|
| 924 |
|
| 925 |
|
| 926 |
|
| 927 |
|
| 928 |
|
| 929 |
|
| 930 |
uint64_t fixed : 1; |
| 931 |
|
| 932 |
|
| 933 |
|
| 934 |
|
| 935 |
|
| 936 |
|
| 937 |
uint64_t fixed_pin : 1; |
| 938 |
uint64_t reserved_4_63 : 60; |
| 939 |
#endif |
| 940 |
} s; |
| 941 |
|
| 942 |
}; |
| 943 |
typedef union bdk_ocx_com_node bdk_ocx_com_node_t; |
| 944 |
|
| 945 |
#define BDK_OCX_COM_NODE BDK_OCX_COM_NODE_FUNC() |
| 946 |
static inline uint64_t BDK_OCX_COM_NODE_FUNC(void) __attribute__ ((pure, always_inline)); |
| 947 |
static inline uint64_t BDK_OCX_COM_NODE_FUNC(void) |
| 948 |
{ |
| 949 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 950 |
return 0x87e011000000ll; |
| 951 |
__bdk_csr_fatal("OCX_COM_NODE", 0, 0, 0, 0, 0); |
| 952 |
} |
| 953 |
|
| 954 |
#define typedef_BDK_OCX_COM_NODE bdk_ocx_com_node_t |
| 955 |
#define bustype_BDK_OCX_COM_NODE BDK_CSR_TYPE_RSL |
| 956 |
#define basename_BDK_OCX_COM_NODE "OCX_COM_NODE" |
| 957 |
#define device_bar_BDK_OCX_COM_NODE 0x0 |
| 958 |
#define busnum_BDK_OCX_COM_NODE 0 |
| 959 |
#define arguments_BDK_OCX_COM_NODE -1,-1,-1,-1 |
| 960 |
|
| 961 |
|
| 962 |
|
| 963 |
|
| 964 |
|
| 965 |
|
| 966 |
|
| 967 |
|
| 968 |
union bdk_ocx_dllx_status |
| 969 |
{ |
| 970 |
uint64_t u; |
| 971 |
struct bdk_ocx_dllx_status_s |
| 972 |
{ |
| 973 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 974 |
uint64_t reserved_60_63 : 4; |
| 975 |
uint64_t max_dll_setting : 12; |
| 976 |
uint64_t min_dll_setting : 12; |
| 977 |
uint64_t pd_pos_rclk_refclk : 1; |
| 978 |
uint64_t pdl_rclk_refclk : 1; |
| 979 |
uint64_t pdr_rclk_refclk : 1; |
| 980 |
uint64_t reserved_32 : 1; |
| 981 |
uint64_t dly_elem_enable : 16; |
| 982 |
uint64_t dll_setting : 12; |
| 983 |
uint64_t reserved_1_3 : 3; |
| 984 |
uint64_t dll_lock : 1; |
| 985 |
#else |
| 986 |
uint64_t dll_lock : 1; |
| 987 |
uint64_t reserved_1_3 : 3; |
| 988 |
uint64_t dll_setting : 12; |
| 989 |
uint64_t dly_elem_enable : 16; |
| 990 |
uint64_t reserved_32 : 1; |
| 991 |
uint64_t pdr_rclk_refclk : 1; |
| 992 |
uint64_t pdl_rclk_refclk : 1; |
| 993 |
uint64_t pd_pos_rclk_refclk : 1; |
| 994 |
uint64_t min_dll_setting : 12; |
| 995 |
uint64_t max_dll_setting : 12; |
| 996 |
uint64_t reserved_60_63 : 4; |
| 997 |
#endif |
| 998 |
} s; |
| 999 |
|
| 1000 |
}; |
| 1001 |
typedef union bdk_ocx_dllx_status bdk_ocx_dllx_status_t; |
| 1002 |
|
| 1003 |
static inline uint64_t BDK_OCX_DLLX_STATUS(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1004 |
static inline uint64_t BDK_OCX_DLLX_STATUS(unsigned long a) |
| 1005 |
{ |
| 1006 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=1)) |
| 1007 |
return 0x87e011000080ll + 8ll * ((a) & 0x1); |
| 1008 |
__bdk_csr_fatal("OCX_DLLX_STATUS", 1, a, 0, 0, 0); |
| 1009 |
} |
| 1010 |
|
| 1011 |
#define typedef_BDK_OCX_DLLX_STATUS(a) bdk_ocx_dllx_status_t |
| 1012 |
#define bustype_BDK_OCX_DLLX_STATUS(a) BDK_CSR_TYPE_RSL |
| 1013 |
#define basename_BDK_OCX_DLLX_STATUS(a) "OCX_DLLX_STATUS" |
| 1014 |
#define device_bar_BDK_OCX_DLLX_STATUS(a) 0x0 |
| 1015 |
#define busnum_BDK_OCX_DLLX_STATUS(a) (a) |
| 1016 |
#define arguments_BDK_OCX_DLLX_STATUS(a) (a),-1,-1,-1 |
| 1017 |
|
| 1018 |
|
| 1019 |
|
| 1020 |
|
| 1021 |
|
| 1022 |
|
| 1023 |
union bdk_ocx_frcx_stat0 |
| 1024 |
{ |
| 1025 |
uint64_t u; |
| 1026 |
struct bdk_ocx_frcx_stat0_s |
| 1027 |
{ |
| 1028 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1029 |
uint64_t reserved_21_63 : 43; |
| 1030 |
uint64_t align_cnt : 21; |
| 1031 |
|
| 1032 |
#else |
| 1033 |
uint64_t align_cnt : 21; |
| 1034 |
|
| 1035 |
uint64_t reserved_21_63 : 43; |
| 1036 |
#endif |
| 1037 |
} s; |
| 1038 |
|
| 1039 |
}; |
| 1040 |
typedef union bdk_ocx_frcx_stat0 bdk_ocx_frcx_stat0_t; |
| 1041 |
|
| 1042 |
static inline uint64_t BDK_OCX_FRCX_STAT0(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1043 |
static inline uint64_t BDK_OCX_FRCX_STAT0(unsigned long a) |
| 1044 |
{ |
| 1045 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=5)) |
| 1046 |
return 0x87e01100fa00ll + 8ll * ((a) & 0x7); |
| 1047 |
__bdk_csr_fatal("OCX_FRCX_STAT0", 1, a, 0, 0, 0); |
| 1048 |
} |
| 1049 |
|
| 1050 |
#define typedef_BDK_OCX_FRCX_STAT0(a) bdk_ocx_frcx_stat0_t |
| 1051 |
#define bustype_BDK_OCX_FRCX_STAT0(a) BDK_CSR_TYPE_RSL |
| 1052 |
#define basename_BDK_OCX_FRCX_STAT0(a) "OCX_FRCX_STAT0" |
| 1053 |
#define device_bar_BDK_OCX_FRCX_STAT0(a) 0x0 |
| 1054 |
#define busnum_BDK_OCX_FRCX_STAT0(a) (a) |
| 1055 |
#define arguments_BDK_OCX_FRCX_STAT0(a) (a),-1,-1,-1 |
| 1056 |
|
| 1057 |
|
| 1058 |
|
| 1059 |
|
| 1060 |
|
| 1061 |
|
| 1062 |
union bdk_ocx_frcx_stat1 |
| 1063 |
{ |
| 1064 |
uint64_t u; |
| 1065 |
struct bdk_ocx_frcx_stat1_s |
| 1066 |
{ |
| 1067 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1068 |
uint64_t reserved_21_63 : 43; |
| 1069 |
uint64_t align_err_cnt : 21; |
| 1070 |
|
| 1071 |
#else |
| 1072 |
uint64_t align_err_cnt : 21; |
| 1073 |
|
| 1074 |
uint64_t reserved_21_63 : 43; |
| 1075 |
#endif |
| 1076 |
} s; |
| 1077 |
|
| 1078 |
}; |
| 1079 |
typedef union bdk_ocx_frcx_stat1 bdk_ocx_frcx_stat1_t; |
| 1080 |
|
| 1081 |
static inline uint64_t BDK_OCX_FRCX_STAT1(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1082 |
static inline uint64_t BDK_OCX_FRCX_STAT1(unsigned long a) |
| 1083 |
{ |
| 1084 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=5)) |
| 1085 |
return 0x87e01100fa80ll + 8ll * ((a) & 0x7); |
| 1086 |
__bdk_csr_fatal("OCX_FRCX_STAT1", 1, a, 0, 0, 0); |
| 1087 |
} |
| 1088 |
|
| 1089 |
#define typedef_BDK_OCX_FRCX_STAT1(a) bdk_ocx_frcx_stat1_t |
| 1090 |
#define bustype_BDK_OCX_FRCX_STAT1(a) BDK_CSR_TYPE_RSL |
| 1091 |
#define basename_BDK_OCX_FRCX_STAT1(a) "OCX_FRCX_STAT1" |
| 1092 |
#define device_bar_BDK_OCX_FRCX_STAT1(a) 0x0 |
| 1093 |
#define busnum_BDK_OCX_FRCX_STAT1(a) (a) |
| 1094 |
#define arguments_BDK_OCX_FRCX_STAT1(a) (a),-1,-1,-1 |
| 1095 |
|
| 1096 |
|
| 1097 |
|
| 1098 |
|
| 1099 |
|
| 1100 |
|
| 1101 |
union bdk_ocx_frcx_stat2 |
| 1102 |
{ |
| 1103 |
uint64_t u; |
| 1104 |
struct bdk_ocx_frcx_stat2_s |
| 1105 |
{ |
| 1106 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1107 |
uint64_t reserved_21_63 : 43; |
| 1108 |
uint64_t align_done : 21; |
| 1109 |
#else |
| 1110 |
uint64_t align_done : 21; |
| 1111 |
uint64_t reserved_21_63 : 43; |
| 1112 |
#endif |
| 1113 |
} s; |
| 1114 |
|
| 1115 |
}; |
| 1116 |
typedef union bdk_ocx_frcx_stat2 bdk_ocx_frcx_stat2_t; |
| 1117 |
|
| 1118 |
static inline uint64_t BDK_OCX_FRCX_STAT2(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1119 |
static inline uint64_t BDK_OCX_FRCX_STAT2(unsigned long a) |
| 1120 |
{ |
| 1121 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=5)) |
| 1122 |
return 0x87e01100fb00ll + 8ll * ((a) & 0x7); |
| 1123 |
__bdk_csr_fatal("OCX_FRCX_STAT2", 1, a, 0, 0, 0); |
| 1124 |
} |
| 1125 |
|
| 1126 |
#define typedef_BDK_OCX_FRCX_STAT2(a) bdk_ocx_frcx_stat2_t |
| 1127 |
#define bustype_BDK_OCX_FRCX_STAT2(a) BDK_CSR_TYPE_RSL |
| 1128 |
#define basename_BDK_OCX_FRCX_STAT2(a) "OCX_FRCX_STAT2" |
| 1129 |
#define device_bar_BDK_OCX_FRCX_STAT2(a) 0x0 |
| 1130 |
#define busnum_BDK_OCX_FRCX_STAT2(a) (a) |
| 1131 |
#define arguments_BDK_OCX_FRCX_STAT2(a) (a),-1,-1,-1 |
| 1132 |
|
| 1133 |
|
| 1134 |
|
| 1135 |
|
| 1136 |
|
| 1137 |
|
| 1138 |
union bdk_ocx_frcx_stat3 |
| 1139 |
{ |
| 1140 |
uint64_t u; |
| 1141 |
struct bdk_ocx_frcx_stat3_s |
| 1142 |
{ |
| 1143 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1144 |
uint64_t reserved_21_63 : 43; |
| 1145 |
uint64_t align_fail : 21; |
| 1146 |
#else |
| 1147 |
uint64_t align_fail : 21; |
| 1148 |
uint64_t reserved_21_63 : 43; |
| 1149 |
#endif |
| 1150 |
} s; |
| 1151 |
|
| 1152 |
}; |
| 1153 |
typedef union bdk_ocx_frcx_stat3 bdk_ocx_frcx_stat3_t; |
| 1154 |
|
| 1155 |
static inline uint64_t BDK_OCX_FRCX_STAT3(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1156 |
static inline uint64_t BDK_OCX_FRCX_STAT3(unsigned long a) |
| 1157 |
{ |
| 1158 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=5)) |
| 1159 |
return 0x87e01100fb80ll + 8ll * ((a) & 0x7); |
| 1160 |
__bdk_csr_fatal("OCX_FRCX_STAT3", 1, a, 0, 0, 0); |
| 1161 |
} |
| 1162 |
|
| 1163 |
#define typedef_BDK_OCX_FRCX_STAT3(a) bdk_ocx_frcx_stat3_t |
| 1164 |
#define bustype_BDK_OCX_FRCX_STAT3(a) BDK_CSR_TYPE_RSL |
| 1165 |
#define basename_BDK_OCX_FRCX_STAT3(a) "OCX_FRCX_STAT3" |
| 1166 |
#define device_bar_BDK_OCX_FRCX_STAT3(a) 0x0 |
| 1167 |
#define busnum_BDK_OCX_FRCX_STAT3(a) (a) |
| 1168 |
#define arguments_BDK_OCX_FRCX_STAT3(a) (a),-1,-1,-1 |
| 1169 |
|
| 1170 |
|
| 1171 |
|
| 1172 |
|
| 1173 |
|
| 1174 |
|
| 1175 |
union bdk_ocx_lnex_bad_cnt |
| 1176 |
{ |
| 1177 |
uint64_t u; |
| 1178 |
struct bdk_ocx_lnex_bad_cnt_s |
| 1179 |
{ |
| 1180 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1181 |
uint64_t reserved_12_63 : 52; |
| 1182 |
uint64_t tx_bad_crc32 : 1; |
| 1183 |
|
| 1184 |
uint64_t tx_bad_6467_cnt : 5; |
| 1185 |
uint64_t tx_bad_sync_cnt : 3; |
| 1186 |
uint64_t tx_bad_scram_cnt : 3; |
| 1187 |
#else |
| 1188 |
uint64_t tx_bad_scram_cnt : 3; |
| 1189 |
uint64_t tx_bad_sync_cnt : 3; |
| 1190 |
uint64_t tx_bad_6467_cnt : 5; |
| 1191 |
uint64_t tx_bad_crc32 : 1; |
| 1192 |
|
| 1193 |
uint64_t reserved_12_63 : 52; |
| 1194 |
#endif |
| 1195 |
} s; |
| 1196 |
|
| 1197 |
}; |
| 1198 |
typedef union bdk_ocx_lnex_bad_cnt bdk_ocx_lnex_bad_cnt_t; |
| 1199 |
|
| 1200 |
static inline uint64_t BDK_OCX_LNEX_BAD_CNT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1201 |
static inline uint64_t BDK_OCX_LNEX_BAD_CNT(unsigned long a) |
| 1202 |
{ |
| 1203 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1204 |
return 0x87e011008028ll + 0x100ll * ((a) & 0x1f); |
| 1205 |
__bdk_csr_fatal("OCX_LNEX_BAD_CNT", 1, a, 0, 0, 0); |
| 1206 |
} |
| 1207 |
|
| 1208 |
#define typedef_BDK_OCX_LNEX_BAD_CNT(a) bdk_ocx_lnex_bad_cnt_t |
| 1209 |
#define bustype_BDK_OCX_LNEX_BAD_CNT(a) BDK_CSR_TYPE_RSL |
| 1210 |
#define basename_BDK_OCX_LNEX_BAD_CNT(a) "OCX_LNEX_BAD_CNT" |
| 1211 |
#define device_bar_BDK_OCX_LNEX_BAD_CNT(a) 0x0 |
| 1212 |
#define busnum_BDK_OCX_LNEX_BAD_CNT(a) (a) |
| 1213 |
#define arguments_BDK_OCX_LNEX_BAD_CNT(a) (a),-1,-1,-1 |
| 1214 |
|
| 1215 |
|
| 1216 |
|
| 1217 |
|
| 1218 |
|
| 1219 |
|
| 1220 |
union bdk_ocx_lnex_cfg |
| 1221 |
{ |
| 1222 |
uint64_t u; |
| 1223 |
struct bdk_ocx_lnex_cfg_s |
| 1224 |
{ |
| 1225 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1226 |
uint64_t reserved_9_63 : 55; |
| 1227 |
uint64_t rx_bdry_lock_dis : 1; |
| 1228 |
|
| 1229 |
uint64_t reserved_3_7 : 5; |
| 1230 |
uint64_t rx_stat_wrap_dis : 1; |
| 1231 |
uint64_t rx_stat_rdclr : 1; |
| 1232 |
uint64_t rx_stat_ena : 1; |
| 1233 |
#else |
| 1234 |
uint64_t rx_stat_ena : 1; |
| 1235 |
uint64_t rx_stat_rdclr : 1; |
| 1236 |
uint64_t rx_stat_wrap_dis : 1; |
| 1237 |
uint64_t reserved_3_7 : 5; |
| 1238 |
uint64_t rx_bdry_lock_dis : 1; |
| 1239 |
|
| 1240 |
uint64_t reserved_9_63 : 55; |
| 1241 |
#endif |
| 1242 |
} s; |
| 1243 |
|
| 1244 |
}; |
| 1245 |
typedef union bdk_ocx_lnex_cfg bdk_ocx_lnex_cfg_t; |
| 1246 |
|
| 1247 |
static inline uint64_t BDK_OCX_LNEX_CFG(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1248 |
static inline uint64_t BDK_OCX_LNEX_CFG(unsigned long a) |
| 1249 |
{ |
| 1250 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1251 |
return 0x87e011008000ll + 0x100ll * ((a) & 0x1f); |
| 1252 |
__bdk_csr_fatal("OCX_LNEX_CFG", 1, a, 0, 0, 0); |
| 1253 |
} |
| 1254 |
|
| 1255 |
#define typedef_BDK_OCX_LNEX_CFG(a) bdk_ocx_lnex_cfg_t |
| 1256 |
#define bustype_BDK_OCX_LNEX_CFG(a) BDK_CSR_TYPE_RSL |
| 1257 |
#define basename_BDK_OCX_LNEX_CFG(a) "OCX_LNEX_CFG" |
| 1258 |
#define device_bar_BDK_OCX_LNEX_CFG(a) 0x0 |
| 1259 |
#define busnum_BDK_OCX_LNEX_CFG(a) (a) |
| 1260 |
#define arguments_BDK_OCX_LNEX_CFG(a) (a),-1,-1,-1 |
| 1261 |
|
| 1262 |
|
| 1263 |
|
| 1264 |
|
| 1265 |
|
| 1266 |
|
| 1267 |
union bdk_ocx_lnex_int |
| 1268 |
{ |
| 1269 |
uint64_t u; |
| 1270 |
struct bdk_ocx_lnex_int_s |
| 1271 |
{ |
| 1272 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1273 |
uint64_t reserved_10_63 : 54; |
| 1274 |
uint64_t disp_err : 1; |
| 1275 |
|
| 1276 |
|
| 1277 |
|
| 1278 |
uint64_t bad_64b67b : 1; |
| 1279 |
|
| 1280 |
|
| 1281 |
|
| 1282 |
|
| 1283 |
uint64_t stat_cnt_ovfl : 1; |
| 1284 |
uint64_t stat_msg : 1; |
| 1285 |
|
| 1286 |
|
| 1287 |
uint64_t dskew_fifo_ovfl : 1; |
| 1288 |
|
| 1289 |
|
| 1290 |
uint64_t scrm_sync_loss : 1; |
| 1291 |
|
| 1292 |
|
| 1293 |
|
| 1294 |
|
| 1295 |
uint64_t ukwn_cntl_word : 1; |
| 1296 |
|
| 1297 |
|
| 1298 |
|
| 1299 |
uint64_t crc32_err : 1; |
| 1300 |
|
| 1301 |
|
| 1302 |
|
| 1303 |
uint64_t bdry_sync_loss : 1; |
| 1304 |
|
| 1305 |
|
| 1306 |
|
| 1307 |
uint64_t serdes_lock_loss : 1; |
| 1308 |
|
| 1309 |
#else |
| 1310 |
uint64_t serdes_lock_loss : 1; |
| 1311 |
|
| 1312 |
uint64_t bdry_sync_loss : 1; |
| 1313 |
|
| 1314 |
|
| 1315 |
|
| 1316 |
uint64_t crc32_err : 1; |
| 1317 |
|
| 1318 |
|
| 1319 |
|
| 1320 |
uint64_t ukwn_cntl_word : 1; |
| 1321 |
|
| 1322 |
|
| 1323 |
|
| 1324 |
uint64_t scrm_sync_loss : 1; |
| 1325 |
|
| 1326 |
|
| 1327 |
|
| 1328 |
|
| 1329 |
uint64_t dskew_fifo_ovfl : 1; |
| 1330 |
|
| 1331 |
|
| 1332 |
uint64_t stat_msg : 1; |
| 1333 |
|
| 1334 |
|
| 1335 |
uint64_t stat_cnt_ovfl : 1; |
| 1336 |
uint64_t bad_64b67b : 1; |
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
|
| 1341 |
uint64_t disp_err : 1; |
| 1342 |
|
| 1343 |
|
| 1344 |
|
| 1345 |
uint64_t reserved_10_63 : 54; |
| 1346 |
#endif |
| 1347 |
} s; |
| 1348 |
|
| 1349 |
}; |
| 1350 |
typedef union bdk_ocx_lnex_int bdk_ocx_lnex_int_t; |
| 1351 |
|
| 1352 |
static inline uint64_t BDK_OCX_LNEX_INT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1353 |
static inline uint64_t BDK_OCX_LNEX_INT(unsigned long a) |
| 1354 |
{ |
| 1355 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1356 |
return 0x87e011008018ll + 0x100ll * ((a) & 0x1f); |
| 1357 |
__bdk_csr_fatal("OCX_LNEX_INT", 1, a, 0, 0, 0); |
| 1358 |
} |
| 1359 |
|
| 1360 |
#define typedef_BDK_OCX_LNEX_INT(a) bdk_ocx_lnex_int_t |
| 1361 |
#define bustype_BDK_OCX_LNEX_INT(a) BDK_CSR_TYPE_RSL |
| 1362 |
#define basename_BDK_OCX_LNEX_INT(a) "OCX_LNEX_INT" |
| 1363 |
#define device_bar_BDK_OCX_LNEX_INT(a) 0x0 |
| 1364 |
#define busnum_BDK_OCX_LNEX_INT(a) (a) |
| 1365 |
#define arguments_BDK_OCX_LNEX_INT(a) (a),-1,-1,-1 |
| 1366 |
|
| 1367 |
|
| 1368 |
|
| 1369 |
|
| 1370 |
|
| 1371 |
|
| 1372 |
union bdk_ocx_lnex_int_en |
| 1373 |
{ |
| 1374 |
uint64_t u; |
| 1375 |
struct bdk_ocx_lnex_int_en_s |
| 1376 |
{ |
| 1377 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1378 |
uint64_t reserved_10_63 : 54; |
| 1379 |
uint64_t disp_err : 1; |
| 1380 |
uint64_t bad_64b67b : 1; |
| 1381 |
uint64_t stat_cnt_ovfl : 1; |
| 1382 |
uint64_t stat_msg : 1; |
| 1383 |
uint64_t dskew_fifo_ovfl : 1; |
| 1384 |
uint64_t scrm_sync_loss : 1; |
| 1385 |
uint64_t ukwn_cntl_word : 1; |
| 1386 |
|
| 1387 |
uint64_t crc32_err : 1; |
| 1388 |
uint64_t bdry_sync_loss : 1; |
| 1389 |
uint64_t serdes_lock_loss : 1; |
| 1390 |
#else |
| 1391 |
uint64_t serdes_lock_loss : 1; |
| 1392 |
uint64_t bdry_sync_loss : 1; |
| 1393 |
uint64_t crc32_err : 1; |
| 1394 |
uint64_t ukwn_cntl_word : 1; |
| 1395 |
|
| 1396 |
uint64_t scrm_sync_loss : 1; |
| 1397 |
uint64_t dskew_fifo_ovfl : 1; |
| 1398 |
uint64_t stat_msg : 1; |
| 1399 |
uint64_t stat_cnt_ovfl : 1; |
| 1400 |
uint64_t bad_64b67b : 1; |
| 1401 |
uint64_t disp_err : 1; |
| 1402 |
uint64_t reserved_10_63 : 54; |
| 1403 |
#endif |
| 1404 |
} s; |
| 1405 |
|
| 1406 |
struct bdk_ocx_lnex_int_en_cn88xxp2 |
| 1407 |
{ |
| 1408 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1409 |
uint64_t reserved_10_63 : 54; |
| 1410 |
uint64_t disp_err : 1; |
| 1411 |
uint64_t bad_64b67b : 1; |
| 1412 |
uint64_t stat_cnt_ovfl : 1; |
| 1413 |
uint64_t stat_msg : 1; |
| 1414 |
uint64_t dskew_fifo_ovfl : 1; |
| 1415 |
uint64_t scrm_sync_loss : 1; |
| 1416 |
uint64_t ukwn_cntl_word : 1; |
| 1417 |
|
| 1418 |
uint64_t crc32_err : 1; |
| 1419 |
uint64_t bdry_sync_loss : 1; |
| 1420 |
uint64_t serdes_lock_loss : 1; |
| 1421 |
#else |
| 1422 |
uint64_t serdes_lock_loss : 1; |
| 1423 |
uint64_t bdry_sync_loss : 1; |
| 1424 |
uint64_t crc32_err : 1; |
| 1425 |
uint64_t ukwn_cntl_word : 1; |
| 1426 |
|
| 1427 |
uint64_t scrm_sync_loss : 1; |
| 1428 |
uint64_t dskew_fifo_ovfl : 1; |
| 1429 |
uint64_t stat_msg : 1; |
| 1430 |
uint64_t stat_cnt_ovfl : 1; |
| 1431 |
uint64_t bad_64b67b : 1; |
| 1432 |
uint64_t disp_err : 1; |
| 1433 |
uint64_t reserved_10_63 : 54; |
| 1434 |
#endif |
| 1435 |
} cn88xxp2; |
| 1436 |
}; |
| 1437 |
typedef union bdk_ocx_lnex_int_en bdk_ocx_lnex_int_en_t; |
| 1438 |
|
| 1439 |
static inline uint64_t BDK_OCX_LNEX_INT_EN(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1440 |
static inline uint64_t BDK_OCX_LNEX_INT_EN(unsigned long a) |
| 1441 |
{ |
| 1442 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1443 |
return 0x87e011008020ll + 0x100ll * ((a) & 0x1f); |
| 1444 |
__bdk_csr_fatal("OCX_LNEX_INT_EN", 1, a, 0, 0, 0); |
| 1445 |
} |
| 1446 |
|
| 1447 |
#define typedef_BDK_OCX_LNEX_INT_EN(a) bdk_ocx_lnex_int_en_t |
| 1448 |
#define bustype_BDK_OCX_LNEX_INT_EN(a) BDK_CSR_TYPE_RSL |
| 1449 |
#define basename_BDK_OCX_LNEX_INT_EN(a) "OCX_LNEX_INT_EN" |
| 1450 |
#define device_bar_BDK_OCX_LNEX_INT_EN(a) 0x0 |
| 1451 |
#define busnum_BDK_OCX_LNEX_INT_EN(a) (a) |
| 1452 |
#define arguments_BDK_OCX_LNEX_INT_EN(a) (a),-1,-1,-1 |
| 1453 |
|
| 1454 |
|
| 1455 |
|
| 1456 |
|
| 1457 |
|
| 1458 |
|
| 1459 |
union bdk_ocx_lnex_stat00 |
| 1460 |
{ |
| 1461 |
uint64_t u; |
| 1462 |
struct bdk_ocx_lnex_stat00_s |
| 1463 |
{ |
| 1464 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1465 |
uint64_t reserved_18_63 : 46; |
| 1466 |
uint64_t ser_lock_loss_cnt : 18; |
| 1467 |
|
| 1468 |
#else |
| 1469 |
uint64_t ser_lock_loss_cnt : 18; |
| 1470 |
|
| 1471 |
uint64_t reserved_18_63 : 46; |
| 1472 |
#endif |
| 1473 |
} s; |
| 1474 |
|
| 1475 |
}; |
| 1476 |
typedef union bdk_ocx_lnex_stat00 bdk_ocx_lnex_stat00_t; |
| 1477 |
|
| 1478 |
static inline uint64_t BDK_OCX_LNEX_STAT00(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1479 |
static inline uint64_t BDK_OCX_LNEX_STAT00(unsigned long a) |
| 1480 |
{ |
| 1481 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1482 |
return 0x87e011008040ll + 0x100ll * ((a) & 0x1f); |
| 1483 |
__bdk_csr_fatal("OCX_LNEX_STAT00", 1, a, 0, 0, 0); |
| 1484 |
} |
| 1485 |
|
| 1486 |
#define typedef_BDK_OCX_LNEX_STAT00(a) bdk_ocx_lnex_stat00_t |
| 1487 |
#define bustype_BDK_OCX_LNEX_STAT00(a) BDK_CSR_TYPE_RSL |
| 1488 |
#define basename_BDK_OCX_LNEX_STAT00(a) "OCX_LNEX_STAT00" |
| 1489 |
#define device_bar_BDK_OCX_LNEX_STAT00(a) 0x0 |
| 1490 |
#define busnum_BDK_OCX_LNEX_STAT00(a) (a) |
| 1491 |
#define arguments_BDK_OCX_LNEX_STAT00(a) (a),-1,-1,-1 |
| 1492 |
|
| 1493 |
|
| 1494 |
|
| 1495 |
|
| 1496 |
|
| 1497 |
|
| 1498 |
union bdk_ocx_lnex_stat01 |
| 1499 |
{ |
| 1500 |
uint64_t u; |
| 1501 |
struct bdk_ocx_lnex_stat01_s |
| 1502 |
{ |
| 1503 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1504 |
uint64_t reserved_18_63 : 46; |
| 1505 |
uint64_t bdry_sync_loss_cnt : 18; |
| 1506 |
|
| 1507 |
#else |
| 1508 |
uint64_t bdry_sync_loss_cnt : 18; |
| 1509 |
|
| 1510 |
uint64_t reserved_18_63 : 46; |
| 1511 |
#endif |
| 1512 |
} s; |
| 1513 |
|
| 1514 |
}; |
| 1515 |
typedef union bdk_ocx_lnex_stat01 bdk_ocx_lnex_stat01_t; |
| 1516 |
|
| 1517 |
static inline uint64_t BDK_OCX_LNEX_STAT01(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1518 |
static inline uint64_t BDK_OCX_LNEX_STAT01(unsigned long a) |
| 1519 |
{ |
| 1520 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1521 |
return 0x87e011008048ll + 0x100ll * ((a) & 0x1f); |
| 1522 |
__bdk_csr_fatal("OCX_LNEX_STAT01", 1, a, 0, 0, 0); |
| 1523 |
} |
| 1524 |
|
| 1525 |
#define typedef_BDK_OCX_LNEX_STAT01(a) bdk_ocx_lnex_stat01_t |
| 1526 |
#define bustype_BDK_OCX_LNEX_STAT01(a) BDK_CSR_TYPE_RSL |
| 1527 |
#define basename_BDK_OCX_LNEX_STAT01(a) "OCX_LNEX_STAT01" |
| 1528 |
#define device_bar_BDK_OCX_LNEX_STAT01(a) 0x0 |
| 1529 |
#define busnum_BDK_OCX_LNEX_STAT01(a) (a) |
| 1530 |
#define arguments_BDK_OCX_LNEX_STAT01(a) (a),-1,-1,-1 |
| 1531 |
|
| 1532 |
|
| 1533 |
|
| 1534 |
|
| 1535 |
|
| 1536 |
|
| 1537 |
union bdk_ocx_lnex_stat02 |
| 1538 |
{ |
| 1539 |
uint64_t u; |
| 1540 |
struct bdk_ocx_lnex_stat02_s |
| 1541 |
{ |
| 1542 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1543 |
uint64_t reserved_18_63 : 46; |
| 1544 |
uint64_t syncw_bad_cnt : 18; |
| 1545 |
|
| 1546 |
#else |
| 1547 |
uint64_t syncw_bad_cnt : 18; |
| 1548 |
|
| 1549 |
uint64_t reserved_18_63 : 46; |
| 1550 |
#endif |
| 1551 |
} s; |
| 1552 |
|
| 1553 |
}; |
| 1554 |
typedef union bdk_ocx_lnex_stat02 bdk_ocx_lnex_stat02_t; |
| 1555 |
|
| 1556 |
static inline uint64_t BDK_OCX_LNEX_STAT02(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1557 |
static inline uint64_t BDK_OCX_LNEX_STAT02(unsigned long a) |
| 1558 |
{ |
| 1559 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1560 |
return 0x87e011008050ll + 0x100ll * ((a) & 0x1f); |
| 1561 |
__bdk_csr_fatal("OCX_LNEX_STAT02", 1, a, 0, 0, 0); |
| 1562 |
} |
| 1563 |
|
| 1564 |
#define typedef_BDK_OCX_LNEX_STAT02(a) bdk_ocx_lnex_stat02_t |
| 1565 |
#define bustype_BDK_OCX_LNEX_STAT02(a) BDK_CSR_TYPE_RSL |
| 1566 |
#define basename_BDK_OCX_LNEX_STAT02(a) "OCX_LNEX_STAT02" |
| 1567 |
#define device_bar_BDK_OCX_LNEX_STAT02(a) 0x0 |
| 1568 |
#define busnum_BDK_OCX_LNEX_STAT02(a) (a) |
| 1569 |
#define arguments_BDK_OCX_LNEX_STAT02(a) (a),-1,-1,-1 |
| 1570 |
|
| 1571 |
|
| 1572 |
|
| 1573 |
|
| 1574 |
|
| 1575 |
|
| 1576 |
union bdk_ocx_lnex_stat03 |
| 1577 |
{ |
| 1578 |
uint64_t u; |
| 1579 |
struct bdk_ocx_lnex_stat03_s |
| 1580 |
{ |
| 1581 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1582 |
uint64_t reserved_18_63 : 46; |
| 1583 |
uint64_t syncw_good_cnt : 18; |
| 1584 |
|
| 1585 |
#else |
| 1586 |
uint64_t syncw_good_cnt : 18; |
| 1587 |
|
| 1588 |
uint64_t reserved_18_63 : 46; |
| 1589 |
#endif |
| 1590 |
} s; |
| 1591 |
|
| 1592 |
}; |
| 1593 |
typedef union bdk_ocx_lnex_stat03 bdk_ocx_lnex_stat03_t; |
| 1594 |
|
| 1595 |
static inline uint64_t BDK_OCX_LNEX_STAT03(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1596 |
static inline uint64_t BDK_OCX_LNEX_STAT03(unsigned long a) |
| 1597 |
{ |
| 1598 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1599 |
return 0x87e011008058ll + 0x100ll * ((a) & 0x1f); |
| 1600 |
__bdk_csr_fatal("OCX_LNEX_STAT03", 1, a, 0, 0, 0); |
| 1601 |
} |
| 1602 |
|
| 1603 |
#define typedef_BDK_OCX_LNEX_STAT03(a) bdk_ocx_lnex_stat03_t |
| 1604 |
#define bustype_BDK_OCX_LNEX_STAT03(a) BDK_CSR_TYPE_RSL |
| 1605 |
#define basename_BDK_OCX_LNEX_STAT03(a) "OCX_LNEX_STAT03" |
| 1606 |
#define device_bar_BDK_OCX_LNEX_STAT03(a) 0x0 |
| 1607 |
#define busnum_BDK_OCX_LNEX_STAT03(a) (a) |
| 1608 |
#define arguments_BDK_OCX_LNEX_STAT03(a) (a),-1,-1,-1 |
| 1609 |
|
| 1610 |
|
| 1611 |
|
| 1612 |
|
| 1613 |
|
| 1614 |
|
| 1615 |
union bdk_ocx_lnex_stat04 |
| 1616 |
{ |
| 1617 |
uint64_t u; |
| 1618 |
struct bdk_ocx_lnex_stat04_s |
| 1619 |
{ |
| 1620 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1621 |
uint64_t reserved_18_63 : 46; |
| 1622 |
uint64_t bad_64b67b_cnt : 18; |
| 1623 |
|
| 1624 |
#else |
| 1625 |
uint64_t bad_64b67b_cnt : 18; |
| 1626 |
|
| 1627 |
uint64_t reserved_18_63 : 46; |
| 1628 |
#endif |
| 1629 |
} s; |
| 1630 |
|
| 1631 |
}; |
| 1632 |
typedef union bdk_ocx_lnex_stat04 bdk_ocx_lnex_stat04_t; |
| 1633 |
|
| 1634 |
static inline uint64_t BDK_OCX_LNEX_STAT04(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1635 |
static inline uint64_t BDK_OCX_LNEX_STAT04(unsigned long a) |
| 1636 |
{ |
| 1637 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1638 |
return 0x87e011008060ll + 0x100ll * ((a) & 0x1f); |
| 1639 |
__bdk_csr_fatal("OCX_LNEX_STAT04", 1, a, 0, 0, 0); |
| 1640 |
} |
| 1641 |
|
| 1642 |
#define typedef_BDK_OCX_LNEX_STAT04(a) bdk_ocx_lnex_stat04_t |
| 1643 |
#define bustype_BDK_OCX_LNEX_STAT04(a) BDK_CSR_TYPE_RSL |
| 1644 |
#define basename_BDK_OCX_LNEX_STAT04(a) "OCX_LNEX_STAT04" |
| 1645 |
#define device_bar_BDK_OCX_LNEX_STAT04(a) 0x0 |
| 1646 |
#define busnum_BDK_OCX_LNEX_STAT04(a) (a) |
| 1647 |
#define arguments_BDK_OCX_LNEX_STAT04(a) (a),-1,-1,-1 |
| 1648 |
|
| 1649 |
|
| 1650 |
|
| 1651 |
|
| 1652 |
|
| 1653 |
|
| 1654 |
union bdk_ocx_lnex_stat05 |
| 1655 |
{ |
| 1656 |
uint64_t u; |
| 1657 |
struct bdk_ocx_lnex_stat05_s |
| 1658 |
{ |
| 1659 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1660 |
uint64_t reserved_27_63 : 37; |
| 1661 |
uint64_t data_word_cnt : 27; |
| 1662 |
|
| 1663 |
#else |
| 1664 |
uint64_t data_word_cnt : 27; |
| 1665 |
|
| 1666 |
uint64_t reserved_27_63 : 37; |
| 1667 |
#endif |
| 1668 |
} s; |
| 1669 |
|
| 1670 |
}; |
| 1671 |
typedef union bdk_ocx_lnex_stat05 bdk_ocx_lnex_stat05_t; |
| 1672 |
|
| 1673 |
static inline uint64_t BDK_OCX_LNEX_STAT05(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1674 |
static inline uint64_t BDK_OCX_LNEX_STAT05(unsigned long a) |
| 1675 |
{ |
| 1676 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1677 |
return 0x87e011008068ll + 0x100ll * ((a) & 0x1f); |
| 1678 |
__bdk_csr_fatal("OCX_LNEX_STAT05", 1, a, 0, 0, 0); |
| 1679 |
} |
| 1680 |
|
| 1681 |
#define typedef_BDK_OCX_LNEX_STAT05(a) bdk_ocx_lnex_stat05_t |
| 1682 |
#define bustype_BDK_OCX_LNEX_STAT05(a) BDK_CSR_TYPE_RSL |
| 1683 |
#define basename_BDK_OCX_LNEX_STAT05(a) "OCX_LNEX_STAT05" |
| 1684 |
#define device_bar_BDK_OCX_LNEX_STAT05(a) 0x0 |
| 1685 |
#define busnum_BDK_OCX_LNEX_STAT05(a) (a) |
| 1686 |
#define arguments_BDK_OCX_LNEX_STAT05(a) (a),-1,-1,-1 |
| 1687 |
|
| 1688 |
|
| 1689 |
|
| 1690 |
|
| 1691 |
|
| 1692 |
|
| 1693 |
union bdk_ocx_lnex_stat06 |
| 1694 |
{ |
| 1695 |
uint64_t u; |
| 1696 |
struct bdk_ocx_lnex_stat06_s |
| 1697 |
{ |
| 1698 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1699 |
uint64_t reserved_27_63 : 37; |
| 1700 |
uint64_t cntl_word_cnt : 27; |
| 1701 |
|
| 1702 |
#else |
| 1703 |
uint64_t cntl_word_cnt : 27; |
| 1704 |
|
| 1705 |
uint64_t reserved_27_63 : 37; |
| 1706 |
#endif |
| 1707 |
} s; |
| 1708 |
|
| 1709 |
}; |
| 1710 |
typedef union bdk_ocx_lnex_stat06 bdk_ocx_lnex_stat06_t; |
| 1711 |
|
| 1712 |
static inline uint64_t BDK_OCX_LNEX_STAT06(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1713 |
static inline uint64_t BDK_OCX_LNEX_STAT06(unsigned long a) |
| 1714 |
{ |
| 1715 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1716 |
return 0x87e011008070ll + 0x100ll * ((a) & 0x1f); |
| 1717 |
__bdk_csr_fatal("OCX_LNEX_STAT06", 1, a, 0, 0, 0); |
| 1718 |
} |
| 1719 |
|
| 1720 |
#define typedef_BDK_OCX_LNEX_STAT06(a) bdk_ocx_lnex_stat06_t |
| 1721 |
#define bustype_BDK_OCX_LNEX_STAT06(a) BDK_CSR_TYPE_RSL |
| 1722 |
#define basename_BDK_OCX_LNEX_STAT06(a) "OCX_LNEX_STAT06" |
| 1723 |
#define device_bar_BDK_OCX_LNEX_STAT06(a) 0x0 |
| 1724 |
#define busnum_BDK_OCX_LNEX_STAT06(a) (a) |
| 1725 |
#define arguments_BDK_OCX_LNEX_STAT06(a) (a),-1,-1,-1 |
| 1726 |
|
| 1727 |
|
| 1728 |
|
| 1729 |
|
| 1730 |
|
| 1731 |
|
| 1732 |
union bdk_ocx_lnex_stat07 |
| 1733 |
{ |
| 1734 |
uint64_t u; |
| 1735 |
struct bdk_ocx_lnex_stat07_s |
| 1736 |
{ |
| 1737 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1738 |
uint64_t reserved_18_63 : 46; |
| 1739 |
uint64_t unkwn_word_cnt : 18; |
| 1740 |
|
| 1741 |
#else |
| 1742 |
uint64_t unkwn_word_cnt : 18; |
| 1743 |
|
| 1744 |
uint64_t reserved_18_63 : 46; |
| 1745 |
#endif |
| 1746 |
} s; |
| 1747 |
|
| 1748 |
}; |
| 1749 |
typedef union bdk_ocx_lnex_stat07 bdk_ocx_lnex_stat07_t; |
| 1750 |
|
| 1751 |
static inline uint64_t BDK_OCX_LNEX_STAT07(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1752 |
static inline uint64_t BDK_OCX_LNEX_STAT07(unsigned long a) |
| 1753 |
{ |
| 1754 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1755 |
return 0x87e011008078ll + 0x100ll * ((a) & 0x1f); |
| 1756 |
__bdk_csr_fatal("OCX_LNEX_STAT07", 1, a, 0, 0, 0); |
| 1757 |
} |
| 1758 |
|
| 1759 |
#define typedef_BDK_OCX_LNEX_STAT07(a) bdk_ocx_lnex_stat07_t |
| 1760 |
#define bustype_BDK_OCX_LNEX_STAT07(a) BDK_CSR_TYPE_RSL |
| 1761 |
#define basename_BDK_OCX_LNEX_STAT07(a) "OCX_LNEX_STAT07" |
| 1762 |
#define device_bar_BDK_OCX_LNEX_STAT07(a) 0x0 |
| 1763 |
#define busnum_BDK_OCX_LNEX_STAT07(a) (a) |
| 1764 |
#define arguments_BDK_OCX_LNEX_STAT07(a) (a),-1,-1,-1 |
| 1765 |
|
| 1766 |
|
| 1767 |
|
| 1768 |
|
| 1769 |
|
| 1770 |
|
| 1771 |
union bdk_ocx_lnex_stat08 |
| 1772 |
{ |
| 1773 |
uint64_t u; |
| 1774 |
struct bdk_ocx_lnex_stat08_s |
| 1775 |
{ |
| 1776 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1777 |
uint64_t reserved_18_63 : 46; |
| 1778 |
uint64_t scrm_sync_loss_cnt : 18; |
| 1779 |
|
| 1780 |
|
| 1781 |
|
| 1782 |
#else |
| 1783 |
uint64_t scrm_sync_loss_cnt : 18; |
| 1784 |
|
| 1785 |
|
| 1786 |
|
| 1787 |
uint64_t reserved_18_63 : 46; |
| 1788 |
#endif |
| 1789 |
} s; |
| 1790 |
|
| 1791 |
}; |
| 1792 |
typedef union bdk_ocx_lnex_stat08 bdk_ocx_lnex_stat08_t; |
| 1793 |
|
| 1794 |
static inline uint64_t BDK_OCX_LNEX_STAT08(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1795 |
static inline uint64_t BDK_OCX_LNEX_STAT08(unsigned long a) |
| 1796 |
{ |
| 1797 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1798 |
return 0x87e011008080ll + 0x100ll * ((a) & 0x1f); |
| 1799 |
__bdk_csr_fatal("OCX_LNEX_STAT08", 1, a, 0, 0, 0); |
| 1800 |
} |
| 1801 |
|
| 1802 |
#define typedef_BDK_OCX_LNEX_STAT08(a) bdk_ocx_lnex_stat08_t |
| 1803 |
#define bustype_BDK_OCX_LNEX_STAT08(a) BDK_CSR_TYPE_RSL |
| 1804 |
#define basename_BDK_OCX_LNEX_STAT08(a) "OCX_LNEX_STAT08" |
| 1805 |
#define device_bar_BDK_OCX_LNEX_STAT08(a) 0x0 |
| 1806 |
#define busnum_BDK_OCX_LNEX_STAT08(a) (a) |
| 1807 |
#define arguments_BDK_OCX_LNEX_STAT08(a) (a),-1,-1,-1 |
| 1808 |
|
| 1809 |
|
| 1810 |
|
| 1811 |
|
| 1812 |
|
| 1813 |
|
| 1814 |
union bdk_ocx_lnex_stat09 |
| 1815 |
{ |
| 1816 |
uint64_t u; |
| 1817 |
struct bdk_ocx_lnex_stat09_s |
| 1818 |
{ |
| 1819 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1820 |
uint64_t reserved_18_63 : 46; |
| 1821 |
uint64_t scrm_match_cnt : 18; |
| 1822 |
|
| 1823 |
#else |
| 1824 |
uint64_t scrm_match_cnt : 18; |
| 1825 |
|
| 1826 |
uint64_t reserved_18_63 : 46; |
| 1827 |
#endif |
| 1828 |
} s; |
| 1829 |
|
| 1830 |
}; |
| 1831 |
typedef union bdk_ocx_lnex_stat09 bdk_ocx_lnex_stat09_t; |
| 1832 |
|
| 1833 |
static inline uint64_t BDK_OCX_LNEX_STAT09(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1834 |
static inline uint64_t BDK_OCX_LNEX_STAT09(unsigned long a) |
| 1835 |
{ |
| 1836 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1837 |
return 0x87e011008088ll + 0x100ll * ((a) & 0x1f); |
| 1838 |
__bdk_csr_fatal("OCX_LNEX_STAT09", 1, a, 0, 0, 0); |
| 1839 |
} |
| 1840 |
|
| 1841 |
#define typedef_BDK_OCX_LNEX_STAT09(a) bdk_ocx_lnex_stat09_t |
| 1842 |
#define bustype_BDK_OCX_LNEX_STAT09(a) BDK_CSR_TYPE_RSL |
| 1843 |
#define basename_BDK_OCX_LNEX_STAT09(a) "OCX_LNEX_STAT09" |
| 1844 |
#define device_bar_BDK_OCX_LNEX_STAT09(a) 0x0 |
| 1845 |
#define busnum_BDK_OCX_LNEX_STAT09(a) (a) |
| 1846 |
#define arguments_BDK_OCX_LNEX_STAT09(a) (a),-1,-1,-1 |
| 1847 |
|
| 1848 |
|
| 1849 |
|
| 1850 |
|
| 1851 |
|
| 1852 |
|
| 1853 |
union bdk_ocx_lnex_stat10 |
| 1854 |
{ |
| 1855 |
uint64_t u; |
| 1856 |
struct bdk_ocx_lnex_stat10_s |
| 1857 |
{ |
| 1858 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1859 |
uint64_t reserved_18_63 : 46; |
| 1860 |
uint64_t skipw_good_cnt : 18; |
| 1861 |
|
| 1862 |
#else |
| 1863 |
uint64_t skipw_good_cnt : 18; |
| 1864 |
|
| 1865 |
uint64_t reserved_18_63 : 46; |
| 1866 |
#endif |
| 1867 |
} s; |
| 1868 |
|
| 1869 |
}; |
| 1870 |
typedef union bdk_ocx_lnex_stat10 bdk_ocx_lnex_stat10_t; |
| 1871 |
|
| 1872 |
static inline uint64_t BDK_OCX_LNEX_STAT10(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1873 |
static inline uint64_t BDK_OCX_LNEX_STAT10(unsigned long a) |
| 1874 |
{ |
| 1875 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1876 |
return 0x87e011008090ll + 0x100ll * ((a) & 0x1f); |
| 1877 |
__bdk_csr_fatal("OCX_LNEX_STAT10", 1, a, 0, 0, 0); |
| 1878 |
} |
| 1879 |
|
| 1880 |
#define typedef_BDK_OCX_LNEX_STAT10(a) bdk_ocx_lnex_stat10_t |
| 1881 |
#define bustype_BDK_OCX_LNEX_STAT10(a) BDK_CSR_TYPE_RSL |
| 1882 |
#define basename_BDK_OCX_LNEX_STAT10(a) "OCX_LNEX_STAT10" |
| 1883 |
#define device_bar_BDK_OCX_LNEX_STAT10(a) 0x0 |
| 1884 |
#define busnum_BDK_OCX_LNEX_STAT10(a) (a) |
| 1885 |
#define arguments_BDK_OCX_LNEX_STAT10(a) (a),-1,-1,-1 |
| 1886 |
|
| 1887 |
|
| 1888 |
|
| 1889 |
|
| 1890 |
|
| 1891 |
|
| 1892 |
union bdk_ocx_lnex_stat11 |
| 1893 |
{ |
| 1894 |
uint64_t u; |
| 1895 |
struct bdk_ocx_lnex_stat11_s |
| 1896 |
{ |
| 1897 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1898 |
uint64_t reserved_27_63 : 37; |
| 1899 |
uint64_t crc32_err_cnt : 27; |
| 1900 |
|
| 1901 |
#else |
| 1902 |
uint64_t crc32_err_cnt : 27; |
| 1903 |
|
| 1904 |
uint64_t reserved_27_63 : 37; |
| 1905 |
#endif |
| 1906 |
} s; |
| 1907 |
|
| 1908 |
}; |
| 1909 |
typedef union bdk_ocx_lnex_stat11 bdk_ocx_lnex_stat11_t; |
| 1910 |
|
| 1911 |
static inline uint64_t BDK_OCX_LNEX_STAT11(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1912 |
static inline uint64_t BDK_OCX_LNEX_STAT11(unsigned long a) |
| 1913 |
{ |
| 1914 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1915 |
return 0x87e011008098ll + 0x100ll * ((a) & 0x1f); |
| 1916 |
__bdk_csr_fatal("OCX_LNEX_STAT11", 1, a, 0, 0, 0); |
| 1917 |
} |
| 1918 |
|
| 1919 |
#define typedef_BDK_OCX_LNEX_STAT11(a) bdk_ocx_lnex_stat11_t |
| 1920 |
#define bustype_BDK_OCX_LNEX_STAT11(a) BDK_CSR_TYPE_RSL |
| 1921 |
#define basename_BDK_OCX_LNEX_STAT11(a) "OCX_LNEX_STAT11" |
| 1922 |
#define device_bar_BDK_OCX_LNEX_STAT11(a) 0x0 |
| 1923 |
#define busnum_BDK_OCX_LNEX_STAT11(a) (a) |
| 1924 |
#define arguments_BDK_OCX_LNEX_STAT11(a) (a),-1,-1,-1 |
| 1925 |
|
| 1926 |
|
| 1927 |
|
| 1928 |
|
| 1929 |
|
| 1930 |
|
| 1931 |
union bdk_ocx_lnex_stat12 |
| 1932 |
{ |
| 1933 |
uint64_t u; |
| 1934 |
struct bdk_ocx_lnex_stat12_s |
| 1935 |
{ |
| 1936 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1937 |
uint64_t reserved_27_63 : 37; |
| 1938 |
uint64_t crc32_match_cnt : 27; |
| 1939 |
|
| 1940 |
#else |
| 1941 |
uint64_t crc32_match_cnt : 27; |
| 1942 |
|
| 1943 |
uint64_t reserved_27_63 : 37; |
| 1944 |
#endif |
| 1945 |
} s; |
| 1946 |
|
| 1947 |
}; |
| 1948 |
typedef union bdk_ocx_lnex_stat12 bdk_ocx_lnex_stat12_t; |
| 1949 |
|
| 1950 |
static inline uint64_t BDK_OCX_LNEX_STAT12(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1951 |
static inline uint64_t BDK_OCX_LNEX_STAT12(unsigned long a) |
| 1952 |
{ |
| 1953 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1954 |
return 0x87e0110080a0ll + 0x100ll * ((a) & 0x1f); |
| 1955 |
__bdk_csr_fatal("OCX_LNEX_STAT12", 1, a, 0, 0, 0); |
| 1956 |
} |
| 1957 |
|
| 1958 |
#define typedef_BDK_OCX_LNEX_STAT12(a) bdk_ocx_lnex_stat12_t |
| 1959 |
#define bustype_BDK_OCX_LNEX_STAT12(a) BDK_CSR_TYPE_RSL |
| 1960 |
#define basename_BDK_OCX_LNEX_STAT12(a) "OCX_LNEX_STAT12" |
| 1961 |
#define device_bar_BDK_OCX_LNEX_STAT12(a) 0x0 |
| 1962 |
#define busnum_BDK_OCX_LNEX_STAT12(a) (a) |
| 1963 |
#define arguments_BDK_OCX_LNEX_STAT12(a) (a),-1,-1,-1 |
| 1964 |
|
| 1965 |
|
| 1966 |
|
| 1967 |
|
| 1968 |
|
| 1969 |
|
| 1970 |
union bdk_ocx_lnex_stat13 |
| 1971 |
{ |
| 1972 |
uint64_t u; |
| 1973 |
struct bdk_ocx_lnex_stat13_s |
| 1974 |
{ |
| 1975 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 1976 |
uint64_t reserved_16_63 : 48; |
| 1977 |
uint64_t trn_bad_cnt : 16; |
| 1978 |
|
| 1979 |
#else |
| 1980 |
uint64_t trn_bad_cnt : 16; |
| 1981 |
|
| 1982 |
uint64_t reserved_16_63 : 48; |
| 1983 |
#endif |
| 1984 |
} s; |
| 1985 |
|
| 1986 |
}; |
| 1987 |
typedef union bdk_ocx_lnex_stat13 bdk_ocx_lnex_stat13_t; |
| 1988 |
|
| 1989 |
static inline uint64_t BDK_OCX_LNEX_STAT13(unsigned long a) __attribute__ ((pure, always_inline)); |
| 1990 |
static inline uint64_t BDK_OCX_LNEX_STAT13(unsigned long a) |
| 1991 |
{ |
| 1992 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 1993 |
return 0x87e0110080a8ll + 0x100ll * ((a) & 0x1f); |
| 1994 |
__bdk_csr_fatal("OCX_LNEX_STAT13", 1, a, 0, 0, 0); |
| 1995 |
} |
| 1996 |
|
| 1997 |
#define typedef_BDK_OCX_LNEX_STAT13(a) bdk_ocx_lnex_stat13_t |
| 1998 |
#define bustype_BDK_OCX_LNEX_STAT13(a) BDK_CSR_TYPE_RSL |
| 1999 |
#define basename_BDK_OCX_LNEX_STAT13(a) "OCX_LNEX_STAT13" |
| 2000 |
#define device_bar_BDK_OCX_LNEX_STAT13(a) 0x0 |
| 2001 |
#define busnum_BDK_OCX_LNEX_STAT13(a) (a) |
| 2002 |
#define arguments_BDK_OCX_LNEX_STAT13(a) (a),-1,-1,-1 |
| 2003 |
|
| 2004 |
|
| 2005 |
|
| 2006 |
|
| 2007 |
|
| 2008 |
|
| 2009 |
union bdk_ocx_lnex_stat14 |
| 2010 |
{ |
| 2011 |
uint64_t u; |
| 2012 |
struct bdk_ocx_lnex_stat14_s |
| 2013 |
{ |
| 2014 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2015 |
uint64_t reserved_16_63 : 48; |
| 2016 |
uint64_t trn_prbs_bad_cnt : 16; |
| 2017 |
|
| 2018 |
#else |
| 2019 |
uint64_t trn_prbs_bad_cnt : 16; |
| 2020 |
|
| 2021 |
uint64_t reserved_16_63 : 48; |
| 2022 |
#endif |
| 2023 |
} s; |
| 2024 |
|
| 2025 |
}; |
| 2026 |
typedef union bdk_ocx_lnex_stat14 bdk_ocx_lnex_stat14_t; |
| 2027 |
|
| 2028 |
static inline uint64_t BDK_OCX_LNEX_STAT14(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2029 |
static inline uint64_t BDK_OCX_LNEX_STAT14(unsigned long a) |
| 2030 |
{ |
| 2031 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 2032 |
return 0x87e0110080b0ll + 0x100ll * ((a) & 0x1f); |
| 2033 |
__bdk_csr_fatal("OCX_LNEX_STAT14", 1, a, 0, 0, 0); |
| 2034 |
} |
| 2035 |
|
| 2036 |
#define typedef_BDK_OCX_LNEX_STAT14(a) bdk_ocx_lnex_stat14_t |
| 2037 |
#define bustype_BDK_OCX_LNEX_STAT14(a) BDK_CSR_TYPE_RSL |
| 2038 |
#define basename_BDK_OCX_LNEX_STAT14(a) "OCX_LNEX_STAT14" |
| 2039 |
#define device_bar_BDK_OCX_LNEX_STAT14(a) 0x0 |
| 2040 |
#define busnum_BDK_OCX_LNEX_STAT14(a) (a) |
| 2041 |
#define arguments_BDK_OCX_LNEX_STAT14(a) (a),-1,-1,-1 |
| 2042 |
|
| 2043 |
|
| 2044 |
|
| 2045 |
|
| 2046 |
|
| 2047 |
|
| 2048 |
union bdk_ocx_lnex_status |
| 2049 |
{ |
| 2050 |
uint64_t u; |
| 2051 |
struct bdk_ocx_lnex_status_s |
| 2052 |
{ |
| 2053 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2054 |
uint64_t reserved_3_63 : 61; |
| 2055 |
uint64_t rx_trn_val : 1; |
| 2056 |
uint64_t rx_scrm_sync : 1; |
| 2057 |
uint64_t rx_bdry_sync : 1; |
| 2058 |
#else |
| 2059 |
uint64_t rx_bdry_sync : 1; |
| 2060 |
uint64_t rx_scrm_sync : 1; |
| 2061 |
uint64_t rx_trn_val : 1; |
| 2062 |
uint64_t reserved_3_63 : 61; |
| 2063 |
#endif |
| 2064 |
} s; |
| 2065 |
|
| 2066 |
}; |
| 2067 |
typedef union bdk_ocx_lnex_status bdk_ocx_lnex_status_t; |
| 2068 |
|
| 2069 |
static inline uint64_t BDK_OCX_LNEX_STATUS(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2070 |
static inline uint64_t BDK_OCX_LNEX_STATUS(unsigned long a) |
| 2071 |
{ |
| 2072 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 2073 |
return 0x87e011008008ll + 0x100ll * ((a) & 0x1f); |
| 2074 |
__bdk_csr_fatal("OCX_LNEX_STATUS", 1, a, 0, 0, 0); |
| 2075 |
} |
| 2076 |
|
| 2077 |
#define typedef_BDK_OCX_LNEX_STATUS(a) bdk_ocx_lnex_status_t |
| 2078 |
#define bustype_BDK_OCX_LNEX_STATUS(a) BDK_CSR_TYPE_RSL |
| 2079 |
#define basename_BDK_OCX_LNEX_STATUS(a) "OCX_LNEX_STATUS" |
| 2080 |
#define device_bar_BDK_OCX_LNEX_STATUS(a) 0x0 |
| 2081 |
#define busnum_BDK_OCX_LNEX_STATUS(a) (a) |
| 2082 |
#define arguments_BDK_OCX_LNEX_STATUS(a) (a),-1,-1,-1 |
| 2083 |
|
| 2084 |
|
| 2085 |
|
| 2086 |
|
| 2087 |
|
| 2088 |
|
| 2089 |
union bdk_ocx_lnex_sts_msg |
| 2090 |
{ |
| 2091 |
uint64_t u; |
| 2092 |
struct bdk_ocx_lnex_sts_msg_s |
| 2093 |
{ |
| 2094 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2095 |
uint64_t rx_meta_val : 1; |
| 2096 |
uint64_t reserved_37_62 : 26; |
| 2097 |
uint64_t rx_meta_dat : 3; |
| 2098 |
uint64_t rx_lne_stat : 1; |
| 2099 |
|
| 2100 |
uint64_t rx_lnk_stat : 1; |
| 2101 |
|
| 2102 |
uint64_t reserved_5_31 : 27; |
| 2103 |
uint64_t tx_meta_dat : 3; |
| 2104 |
uint64_t tx_lne_stat : 1; |
| 2105 |
|
| 2106 |
uint64_t tx_lnk_stat : 1; |
| 2107 |
|
| 2108 |
#else |
| 2109 |
uint64_t tx_lnk_stat : 1; |
| 2110 |
|
| 2111 |
uint64_t tx_lne_stat : 1; |
| 2112 |
|
| 2113 |
uint64_t tx_meta_dat : 3; |
| 2114 |
uint64_t reserved_5_31 : 27; |
| 2115 |
uint64_t rx_lnk_stat : 1; |
| 2116 |
|
| 2117 |
uint64_t rx_lne_stat : 1; |
| 2118 |
|
| 2119 |
uint64_t rx_meta_dat : 3; |
| 2120 |
uint64_t reserved_37_62 : 26; |
| 2121 |
uint64_t rx_meta_val : 1; |
| 2122 |
#endif |
| 2123 |
} s; |
| 2124 |
|
| 2125 |
}; |
| 2126 |
typedef union bdk_ocx_lnex_sts_msg bdk_ocx_lnex_sts_msg_t; |
| 2127 |
|
| 2128 |
static inline uint64_t BDK_OCX_LNEX_STS_MSG(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2129 |
static inline uint64_t BDK_OCX_LNEX_STS_MSG(unsigned long a) |
| 2130 |
{ |
| 2131 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 2132 |
return 0x87e011008010ll + 0x100ll * ((a) & 0x1f); |
| 2133 |
__bdk_csr_fatal("OCX_LNEX_STS_MSG", 1, a, 0, 0, 0); |
| 2134 |
} |
| 2135 |
|
| 2136 |
#define typedef_BDK_OCX_LNEX_STS_MSG(a) bdk_ocx_lnex_sts_msg_t |
| 2137 |
#define bustype_BDK_OCX_LNEX_STS_MSG(a) BDK_CSR_TYPE_RSL |
| 2138 |
#define basename_BDK_OCX_LNEX_STS_MSG(a) "OCX_LNEX_STS_MSG" |
| 2139 |
#define device_bar_BDK_OCX_LNEX_STS_MSG(a) 0x0 |
| 2140 |
#define busnum_BDK_OCX_LNEX_STS_MSG(a) (a) |
| 2141 |
#define arguments_BDK_OCX_LNEX_STS_MSG(a) (a),-1,-1,-1 |
| 2142 |
|
| 2143 |
|
| 2144 |
|
| 2145 |
|
| 2146 |
|
| 2147 |
|
| 2148 |
union bdk_ocx_lnex_trn_ctl |
| 2149 |
{ |
| 2150 |
uint64_t u; |
| 2151 |
struct bdk_ocx_lnex_trn_ctl_s |
| 2152 |
{ |
| 2153 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2154 |
uint64_t reserved_4_63 : 60; |
| 2155 |
uint64_t lock : 1; |
| 2156 |
uint64_t done : 1; |
| 2157 |
uint64_t ena : 1; |
| 2158 |
|
| 2159 |
|
| 2160 |
uint64_t eie_detect : 1; |
| 2161 |
#else |
| 2162 |
uint64_t eie_detect : 1; |
| 2163 |
uint64_t ena : 1; |
| 2164 |
|
| 2165 |
|
| 2166 |
uint64_t done : 1; |
| 2167 |
uint64_t lock : 1; |
| 2168 |
uint64_t reserved_4_63 : 60; |
| 2169 |
#endif |
| 2170 |
} s; |
| 2171 |
|
| 2172 |
}; |
| 2173 |
typedef union bdk_ocx_lnex_trn_ctl bdk_ocx_lnex_trn_ctl_t; |
| 2174 |
|
| 2175 |
static inline uint64_t BDK_OCX_LNEX_TRN_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2176 |
static inline uint64_t BDK_OCX_LNEX_TRN_CTL(unsigned long a) |
| 2177 |
{ |
| 2178 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 2179 |
return 0x87e0110080d0ll + 0x100ll * ((a) & 0x1f); |
| 2180 |
__bdk_csr_fatal("OCX_LNEX_TRN_CTL", 1, a, 0, 0, 0); |
| 2181 |
} |
| 2182 |
|
| 2183 |
#define typedef_BDK_OCX_LNEX_TRN_CTL(a) bdk_ocx_lnex_trn_ctl_t |
| 2184 |
#define bustype_BDK_OCX_LNEX_TRN_CTL(a) BDK_CSR_TYPE_RSL |
| 2185 |
#define basename_BDK_OCX_LNEX_TRN_CTL(a) "OCX_LNEX_TRN_CTL" |
| 2186 |
#define device_bar_BDK_OCX_LNEX_TRN_CTL(a) 0x0 |
| 2187 |
#define busnum_BDK_OCX_LNEX_TRN_CTL(a) (a) |
| 2188 |
#define arguments_BDK_OCX_LNEX_TRN_CTL(a) (a),-1,-1,-1 |
| 2189 |
|
| 2190 |
|
| 2191 |
|
| 2192 |
|
| 2193 |
|
| 2194 |
|
| 2195 |
union bdk_ocx_lnex_trn_ld |
| 2196 |
{ |
| 2197 |
uint64_t u; |
| 2198 |
struct bdk_ocx_lnex_trn_ld_s |
| 2199 |
{ |
| 2200 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2201 |
uint64_t lp_manual : 1; |
| 2202 |
uint64_t reserved_49_62 : 14; |
| 2203 |
uint64_t ld_cu_val : 1; |
| 2204 |
uint64_t ld_cu_dat : 16; |
| 2205 |
|
| 2206 |
uint64_t reserved_17_31 : 15; |
| 2207 |
uint64_t ld_sr_val : 1; |
| 2208 |
uint64_t ld_sr_dat : 16; |
| 2209 |
|
| 2210 |
#else |
| 2211 |
uint64_t ld_sr_dat : 16; |
| 2212 |
|
| 2213 |
uint64_t ld_sr_val : 1; |
| 2214 |
uint64_t reserved_17_31 : 15; |
| 2215 |
uint64_t ld_cu_dat : 16; |
| 2216 |
|
| 2217 |
uint64_t ld_cu_val : 1; |
| 2218 |
uint64_t reserved_49_62 : 14; |
| 2219 |
uint64_t lp_manual : 1; |
| 2220 |
#endif |
| 2221 |
} s; |
| 2222 |
|
| 2223 |
}; |
| 2224 |
typedef union bdk_ocx_lnex_trn_ld bdk_ocx_lnex_trn_ld_t; |
| 2225 |
|
| 2226 |
static inline uint64_t BDK_OCX_LNEX_TRN_LD(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2227 |
static inline uint64_t BDK_OCX_LNEX_TRN_LD(unsigned long a) |
| 2228 |
{ |
| 2229 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 2230 |
return 0x87e0110080c0ll + 0x100ll * ((a) & 0x1f); |
| 2231 |
__bdk_csr_fatal("OCX_LNEX_TRN_LD", 1, a, 0, 0, 0); |
| 2232 |
} |
| 2233 |
|
| 2234 |
#define typedef_BDK_OCX_LNEX_TRN_LD(a) bdk_ocx_lnex_trn_ld_t |
| 2235 |
#define bustype_BDK_OCX_LNEX_TRN_LD(a) BDK_CSR_TYPE_RSL |
| 2236 |
#define basename_BDK_OCX_LNEX_TRN_LD(a) "OCX_LNEX_TRN_LD" |
| 2237 |
#define device_bar_BDK_OCX_LNEX_TRN_LD(a) 0x0 |
| 2238 |
#define busnum_BDK_OCX_LNEX_TRN_LD(a) (a) |
| 2239 |
#define arguments_BDK_OCX_LNEX_TRN_LD(a) (a),-1,-1,-1 |
| 2240 |
|
| 2241 |
|
| 2242 |
|
| 2243 |
|
| 2244 |
|
| 2245 |
|
| 2246 |
union bdk_ocx_lnex_trn_lp |
| 2247 |
{ |
| 2248 |
uint64_t u; |
| 2249 |
struct bdk_ocx_lnex_trn_lp_s |
| 2250 |
{ |
| 2251 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2252 |
uint64_t reserved_49_63 : 15; |
| 2253 |
uint64_t lp_cu_val : 1; |
| 2254 |
uint64_t lp_cu_dat : 16; |
| 2255 |
|
| 2256 |
uint64_t reserved_17_31 : 15; |
| 2257 |
uint64_t lp_sr_val : 1; |
| 2258 |
uint64_t lp_sr_dat : 16; |
| 2259 |
|
| 2260 |
#else |
| 2261 |
uint64_t lp_sr_dat : 16; |
| 2262 |
|
| 2263 |
uint64_t lp_sr_val : 1; |
| 2264 |
uint64_t reserved_17_31 : 15; |
| 2265 |
uint64_t lp_cu_dat : 16; |
| 2266 |
|
| 2267 |
uint64_t lp_cu_val : 1; |
| 2268 |
uint64_t reserved_49_63 : 15; |
| 2269 |
#endif |
| 2270 |
} s; |
| 2271 |
|
| 2272 |
}; |
| 2273 |
typedef union bdk_ocx_lnex_trn_lp bdk_ocx_lnex_trn_lp_t; |
| 2274 |
|
| 2275 |
static inline uint64_t BDK_OCX_LNEX_TRN_LP(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2276 |
static inline uint64_t BDK_OCX_LNEX_TRN_LP(unsigned long a) |
| 2277 |
{ |
| 2278 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=23)) |
| 2279 |
return 0x87e0110080c8ll + 0x100ll * ((a) & 0x1f); |
| 2280 |
__bdk_csr_fatal("OCX_LNEX_TRN_LP", 1, a, 0, 0, 0); |
| 2281 |
} |
| 2282 |
|
| 2283 |
#define typedef_BDK_OCX_LNEX_TRN_LP(a) bdk_ocx_lnex_trn_lp_t |
| 2284 |
#define bustype_BDK_OCX_LNEX_TRN_LP(a) BDK_CSR_TYPE_RSL |
| 2285 |
#define basename_BDK_OCX_LNEX_TRN_LP(a) "OCX_LNEX_TRN_LP" |
| 2286 |
#define device_bar_BDK_OCX_LNEX_TRN_LP(a) 0x0 |
| 2287 |
#define busnum_BDK_OCX_LNEX_TRN_LP(a) (a) |
| 2288 |
#define arguments_BDK_OCX_LNEX_TRN_LP(a) (a),-1,-1,-1 |
| 2289 |
|
| 2290 |
|
| 2291 |
|
| 2292 |
|
| 2293 |
|
| 2294 |
|
| 2295 |
union bdk_ocx_lne_dbg |
| 2296 |
{ |
| 2297 |
uint64_t u; |
| 2298 |
struct bdk_ocx_lne_dbg_s |
| 2299 |
{ |
| 2300 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2301 |
uint64_t timeout : 24; |
| 2302 |
|
| 2303 |
|
| 2304 |
uint64_t reserved_38_39 : 2; |
| 2305 |
uint64_t frc_stats_ena : 1; |
| 2306 |
uint64_t rx_dis_psh_skip : 1; |
| 2307 |
|
| 2308 |
|
| 2309 |
|
| 2310 |
uint64_t rx_mfrm_len : 2; |
| 2311 |
|
| 2312 |
|
| 2313 |
|
| 2314 |
|
| 2315 |
|
| 2316 |
uint64_t rx_dis_ukwn : 1; |
| 2317 |
|
| 2318 |
uint64_t rx_dis_scram : 1; |
| 2319 |
uint64_t reserved_5_31 : 27; |
| 2320 |
uint64_t tx_lane_rev : 1; |
| 2321 |
|
| 2322 |
|
| 2323 |
uint64_t tx_mfrm_len : 2; |
| 2324 |
|
| 2325 |
|
| 2326 |
|
| 2327 |
|
| 2328 |
|
| 2329 |
uint64_t tx_dis_dispr : 1; |
| 2330 |
uint64_t tx_dis_scram : 1; |
| 2331 |
#else |
| 2332 |
uint64_t tx_dis_scram : 1; |
| 2333 |
uint64_t tx_dis_dispr : 1; |
| 2334 |
uint64_t tx_mfrm_len : 2; |
| 2335 |
|
| 2336 |
|
| 2337 |
|
| 2338 |
|
| 2339 |
|
| 2340 |
uint64_t tx_lane_rev : 1; |
| 2341 |
|
| 2342 |
|
| 2343 |
uint64_t reserved_5_31 : 27; |
| 2344 |
uint64_t rx_dis_scram : 1; |
| 2345 |
uint64_t rx_dis_ukwn : 1; |
| 2346 |
|
| 2347 |
uint64_t rx_mfrm_len : 2; |
| 2348 |
|
| 2349 |
|
| 2350 |
|
| 2351 |
|
| 2352 |
|
| 2353 |
uint64_t rx_dis_psh_skip : 1; |
| 2354 |
|
| 2355 |
|
| 2356 |
|
| 2357 |
uint64_t frc_stats_ena : 1; |
| 2358 |
uint64_t reserved_38_39 : 2; |
| 2359 |
uint64_t timeout : 24; |
| 2360 |
|
| 2361 |
|
| 2362 |
#endif |
| 2363 |
} s; |
| 2364 |
|
| 2365 |
}; |
| 2366 |
typedef union bdk_ocx_lne_dbg bdk_ocx_lne_dbg_t; |
| 2367 |
|
| 2368 |
#define BDK_OCX_LNE_DBG BDK_OCX_LNE_DBG_FUNC() |
| 2369 |
static inline uint64_t BDK_OCX_LNE_DBG_FUNC(void) __attribute__ ((pure, always_inline)); |
| 2370 |
static inline uint64_t BDK_OCX_LNE_DBG_FUNC(void) |
| 2371 |
{ |
| 2372 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 2373 |
return 0x87e01100ff00ll; |
| 2374 |
__bdk_csr_fatal("OCX_LNE_DBG", 0, 0, 0, 0, 0); |
| 2375 |
} |
| 2376 |
|
| 2377 |
#define typedef_BDK_OCX_LNE_DBG bdk_ocx_lne_dbg_t |
| 2378 |
#define bustype_BDK_OCX_LNE_DBG BDK_CSR_TYPE_RSL |
| 2379 |
#define basename_BDK_OCX_LNE_DBG "OCX_LNE_DBG" |
| 2380 |
#define device_bar_BDK_OCX_LNE_DBG 0x0 |
| 2381 |
#define busnum_BDK_OCX_LNE_DBG 0 |
| 2382 |
#define arguments_BDK_OCX_LNE_DBG -1,-1,-1,-1 |
| 2383 |
|
| 2384 |
|
| 2385 |
|
| 2386 |
|
| 2387 |
|
| 2388 |
|
| 2389 |
union bdk_ocx_lnkx_cfg |
| 2390 |
{ |
| 2391 |
uint64_t u; |
| 2392 |
struct bdk_ocx_lnkx_cfg_s |
| 2393 |
{ |
| 2394 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2395 |
uint64_t reserved_54_63 : 10; |
| 2396 |
uint64_t qlm_manual : 6; |
| 2397 |
|
| 2398 |
|
| 2399 |
|
| 2400 |
|
| 2401 |
|
| 2402 |
|
| 2403 |
|
| 2404 |
|
| 2405 |
|
| 2406 |
|
| 2407 |
|
| 2408 |
|
| 2409 |
|
| 2410 |
|
| 2411 |
|
| 2412 |
|
| 2413 |
|
| 2414 |
|
| 2415 |
|
| 2416 |
uint64_t reserved_38_47 : 10; |
| 2417 |
uint64_t qlm_select : 6; |
| 2418 |
|
| 2419 |
|
| 2420 |
|
| 2421 |
|
| 2422 |
|
| 2423 |
|
| 2424 |
|
| 2425 |
|
| 2426 |
|
| 2427 |
|
| 2428 |
|
| 2429 |
|
| 2430 |
|
| 2431 |
|
| 2432 |
|
| 2433 |
|
| 2434 |
|
| 2435 |
|
| 2436 |
|
| 2437 |
|
| 2438 |
|
| 2439 |
|
| 2440 |
|
| 2441 |
|
| 2442 |
|
| 2443 |
|
| 2444 |
uint64_t reserved_29_31 : 3; |
| 2445 |
uint64_t data_rate : 13; |
| 2446 |
|
| 2447 |
|
| 2448 |
|
| 2449 |
uint64_t low_delay : 6; |
| 2450 |
|
| 2451 |
uint64_t lane_align_dis : 1; |
| 2452 |
uint64_t lane_rev : 1; |
| 2453 |
|
| 2454 |
|
| 2455 |
uint64_t lane_rev_auto : 1; |
| 2456 |
uint64_t reserved_0_6 : 7; |
| 2457 |
#else |
| 2458 |
uint64_t reserved_0_6 : 7; |
| 2459 |
uint64_t lane_rev_auto : 1; |
| 2460 |
uint64_t lane_rev : 1; |
| 2461 |
|
| 2462 |
|
| 2463 |
uint64_t lane_align_dis : 1; |
| 2464 |
uint64_t low_delay : 6; |
| 2465 |
|
| 2466 |
uint64_t data_rate : 13; |
| 2467 |
|
| 2468 |
|
| 2469 |
|
| 2470 |
uint64_t reserved_29_31 : 3; |
| 2471 |
uint64_t qlm_select : 6; |
| 2472 |
|
| 2473 |
|
| 2474 |
|
| 2475 |
|
| 2476 |
|
| 2477 |
|
| 2478 |
|
| 2479 |
|
| 2480 |
|
| 2481 |
|
| 2482 |
|
| 2483 |
|
| 2484 |
|
| 2485 |
|
| 2486 |
|
| 2487 |
|
| 2488 |
|
| 2489 |
|
| 2490 |
|
| 2491 |
|
| 2492 |
|
| 2493 |
|
| 2494 |
|
| 2495 |
|
| 2496 |
|
| 2497 |
|
| 2498 |
uint64_t reserved_38_47 : 10; |
| 2499 |
uint64_t qlm_manual : 6; |
| 2500 |
|
| 2501 |
|
| 2502 |
|
| 2503 |
|
| 2504 |
|
| 2505 |
|
| 2506 |
|
| 2507 |
|
| 2508 |
|
| 2509 |
|
| 2510 |
|
| 2511 |
|
| 2512 |
|
| 2513 |
|
| 2514 |
|
| 2515 |
|
| 2516 |
|
| 2517 |
|
| 2518 |
|
| 2519 |
uint64_t reserved_54_63 : 10; |
| 2520 |
#endif |
| 2521 |
} s; |
| 2522 |
|
| 2523 |
struct bdk_ocx_lnkx_cfg_cn88xxp2 |
| 2524 |
{ |
| 2525 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2526 |
uint64_t reserved_54_63 : 10; |
| 2527 |
uint64_t qlm_manual : 6; |
| 2528 |
|
| 2529 |
|
| 2530 |
|
| 2531 |
|
| 2532 |
|
| 2533 |
|
| 2534 |
|
| 2535 |
|
| 2536 |
|
| 2537 |
|
| 2538 |
|
| 2539 |
|
| 2540 |
|
| 2541 |
|
| 2542 |
|
| 2543 |
|
| 2544 |
|
| 2545 |
|
| 2546 |
|
| 2547 |
uint64_t reserved_38_47 : 10; |
| 2548 |
uint64_t qlm_select : 6; |
| 2549 |
|
| 2550 |
|
| 2551 |
|
| 2552 |
|
| 2553 |
|
| 2554 |
|
| 2555 |
|
| 2556 |
|
| 2557 |
|
| 2558 |
|
| 2559 |
|
| 2560 |
|
| 2561 |
|
| 2562 |
|
| 2563 |
|
| 2564 |
|
| 2565 |
|
| 2566 |
|
| 2567 |
|
| 2568 |
|
| 2569 |
|
| 2570 |
|
| 2571 |
|
| 2572 |
|
| 2573 |
|
| 2574 |
|
| 2575 |
uint64_t reserved_29_31 : 3; |
| 2576 |
uint64_t data_rate : 13; |
| 2577 |
|
| 2578 |
|
| 2579 |
|
| 2580 |
uint64_t low_delay : 6; |
| 2581 |
|
| 2582 |
uint64_t lane_align_dis : 1; |
| 2583 |
uint64_t lane_rev : 1; |
| 2584 |
|
| 2585 |
|
| 2586 |
uint64_t lane_rev_auto : 1; |
| 2587 |
|
| 2588 |
uint64_t reserved_0_6 : 7; |
| 2589 |
#else |
| 2590 |
uint64_t reserved_0_6 : 7; |
| 2591 |
uint64_t lane_rev_auto : 1; |
| 2592 |
|
| 2593 |
uint64_t lane_rev : 1; |
| 2594 |
|
| 2595 |
|
| 2596 |
uint64_t lane_align_dis : 1; |
| 2597 |
uint64_t low_delay : 6; |
| 2598 |
|
| 2599 |
uint64_t data_rate : 13; |
| 2600 |
|
| 2601 |
|
| 2602 |
|
| 2603 |
uint64_t reserved_29_31 : 3; |
| 2604 |
uint64_t qlm_select : 6; |
| 2605 |
|
| 2606 |
|
| 2607 |
|
| 2608 |
|
| 2609 |
|
| 2610 |
|
| 2611 |
|
| 2612 |
|
| 2613 |
|
| 2614 |
|
| 2615 |
|
| 2616 |
|
| 2617 |
|
| 2618 |
|
| 2619 |
|
| 2620 |
|
| 2621 |
|
| 2622 |
|
| 2623 |
|
| 2624 |
|
| 2625 |
|
| 2626 |
|
| 2627 |
|
| 2628 |
|
| 2629 |
|
| 2630 |
|
| 2631 |
uint64_t reserved_38_47 : 10; |
| 2632 |
uint64_t qlm_manual : 6; |
| 2633 |
|
| 2634 |
|
| 2635 |
|
| 2636 |
|
| 2637 |
|
| 2638 |
|
| 2639 |
|
| 2640 |
|
| 2641 |
|
| 2642 |
|
| 2643 |
|
| 2644 |
|
| 2645 |
|
| 2646 |
|
| 2647 |
|
| 2648 |
|
| 2649 |
|
| 2650 |
|
| 2651 |
|
| 2652 |
uint64_t reserved_54_63 : 10; |
| 2653 |
#endif |
| 2654 |
} cn88xxp2; |
| 2655 |
}; |
| 2656 |
typedef union bdk_ocx_lnkx_cfg bdk_ocx_lnkx_cfg_t; |
| 2657 |
|
| 2658 |
static inline uint64_t BDK_OCX_LNKX_CFG(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2659 |
static inline uint64_t BDK_OCX_LNKX_CFG(unsigned long a) |
| 2660 |
{ |
| 2661 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 2662 |
return 0x87e01100f900ll + 8ll * ((a) & 0x3); |
| 2663 |
__bdk_csr_fatal("OCX_LNKX_CFG", 1, a, 0, 0, 0); |
| 2664 |
} |
| 2665 |
|
| 2666 |
#define typedef_BDK_OCX_LNKX_CFG(a) bdk_ocx_lnkx_cfg_t |
| 2667 |
#define bustype_BDK_OCX_LNKX_CFG(a) BDK_CSR_TYPE_RSL |
| 2668 |
#define basename_BDK_OCX_LNKX_CFG(a) "OCX_LNKX_CFG" |
| 2669 |
#define device_bar_BDK_OCX_LNKX_CFG(a) 0x0 |
| 2670 |
#define busnum_BDK_OCX_LNKX_CFG(a) (a) |
| 2671 |
#define arguments_BDK_OCX_LNKX_CFG(a) (a),-1,-1,-1 |
| 2672 |
|
| 2673 |
|
| 2674 |
|
| 2675 |
|
| 2676 |
|
| 2677 |
|
| 2678 |
|
| 2679 |
|
| 2680 |
union bdk_ocx_msix_pbax |
| 2681 |
{ |
| 2682 |
uint64_t u; |
| 2683 |
struct bdk_ocx_msix_pbax_s |
| 2684 |
{ |
| 2685 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2686 |
uint64_t pend : 64; |
| 2687 |
|
| 2688 |
#else |
| 2689 |
uint64_t pend : 64; |
| 2690 |
|
| 2691 |
#endif |
| 2692 |
} s; |
| 2693 |
|
| 2694 |
}; |
| 2695 |
typedef union bdk_ocx_msix_pbax bdk_ocx_msix_pbax_t; |
| 2696 |
|
| 2697 |
static inline uint64_t BDK_OCX_MSIX_PBAX(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2698 |
static inline uint64_t BDK_OCX_MSIX_PBAX(unsigned long a) |
| 2699 |
{ |
| 2700 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a==0)) |
| 2701 |
return 0x87e011ff0000ll + 8ll * ((a) & 0x0); |
| 2702 |
__bdk_csr_fatal("OCX_MSIX_PBAX", 1, a, 0, 0, 0); |
| 2703 |
} |
| 2704 |
|
| 2705 |
#define typedef_BDK_OCX_MSIX_PBAX(a) bdk_ocx_msix_pbax_t |
| 2706 |
#define bustype_BDK_OCX_MSIX_PBAX(a) BDK_CSR_TYPE_RSL |
| 2707 |
#define basename_BDK_OCX_MSIX_PBAX(a) "OCX_MSIX_PBAX" |
| 2708 |
#define device_bar_BDK_OCX_MSIX_PBAX(a) 0x4 |
| 2709 |
#define busnum_BDK_OCX_MSIX_PBAX(a) (a) |
| 2710 |
#define arguments_BDK_OCX_MSIX_PBAX(a) (a),-1,-1,-1 |
| 2711 |
|
| 2712 |
|
| 2713 |
|
| 2714 |
|
| 2715 |
|
| 2716 |
|
| 2717 |
|
| 2718 |
union bdk_ocx_msix_vecx_addr |
| 2719 |
{ |
| 2720 |
uint64_t u; |
| 2721 |
struct bdk_ocx_msix_vecx_addr_s |
| 2722 |
{ |
| 2723 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2724 |
uint64_t reserved_49_63 : 15; |
| 2725 |
uint64_t addr : 47; |
| 2726 |
uint64_t reserved_1 : 1; |
| 2727 |
uint64_t secvec : 1; |
| 2728 |
|
| 2729 |
|
| 2730 |
|
| 2731 |
|
| 2732 |
|
| 2733 |
|
| 2734 |
|
| 2735 |
|
| 2736 |
#else |
| 2737 |
uint64_t secvec : 1; |
| 2738 |
|
| 2739 |
|
| 2740 |
|
| 2741 |
|
| 2742 |
|
| 2743 |
|
| 2744 |
|
| 2745 |
|
| 2746 |
uint64_t reserved_1 : 1; |
| 2747 |
uint64_t addr : 47; |
| 2748 |
uint64_t reserved_49_63 : 15; |
| 2749 |
#endif |
| 2750 |
} s; |
| 2751 |
|
| 2752 |
}; |
| 2753 |
typedef union bdk_ocx_msix_vecx_addr bdk_ocx_msix_vecx_addr_t; |
| 2754 |
|
| 2755 |
static inline uint64_t BDK_OCX_MSIX_VECX_ADDR(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2756 |
static inline uint64_t BDK_OCX_MSIX_VECX_ADDR(unsigned long a) |
| 2757 |
{ |
| 2758 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=3)) |
| 2759 |
return 0x87e011f00000ll + 0x10ll * ((a) & 0x3); |
| 2760 |
__bdk_csr_fatal("OCX_MSIX_VECX_ADDR", 1, a, 0, 0, 0); |
| 2761 |
} |
| 2762 |
|
| 2763 |
#define typedef_BDK_OCX_MSIX_VECX_ADDR(a) bdk_ocx_msix_vecx_addr_t |
| 2764 |
#define bustype_BDK_OCX_MSIX_VECX_ADDR(a) BDK_CSR_TYPE_RSL |
| 2765 |
#define basename_BDK_OCX_MSIX_VECX_ADDR(a) "OCX_MSIX_VECX_ADDR" |
| 2766 |
#define device_bar_BDK_OCX_MSIX_VECX_ADDR(a) 0x4 |
| 2767 |
#define busnum_BDK_OCX_MSIX_VECX_ADDR(a) (a) |
| 2768 |
#define arguments_BDK_OCX_MSIX_VECX_ADDR(a) (a),-1,-1,-1 |
| 2769 |
|
| 2770 |
|
| 2771 |
|
| 2772 |
|
| 2773 |
|
| 2774 |
|
| 2775 |
|
| 2776 |
union bdk_ocx_msix_vecx_ctl |
| 2777 |
{ |
| 2778 |
uint64_t u; |
| 2779 |
struct bdk_ocx_msix_vecx_ctl_s |
| 2780 |
{ |
| 2781 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2782 |
uint64_t reserved_33_63 : 31; |
| 2783 |
uint64_t mask : 1; |
| 2784 |
uint64_t reserved_20_31 : 12; |
| 2785 |
uint64_t data : 20; |
| 2786 |
#else |
| 2787 |
uint64_t data : 20; |
| 2788 |
uint64_t reserved_20_31 : 12; |
| 2789 |
uint64_t mask : 1; |
| 2790 |
uint64_t reserved_33_63 : 31; |
| 2791 |
#endif |
| 2792 |
} s; |
| 2793 |
|
| 2794 |
}; |
| 2795 |
typedef union bdk_ocx_msix_vecx_ctl bdk_ocx_msix_vecx_ctl_t; |
| 2796 |
|
| 2797 |
static inline uint64_t BDK_OCX_MSIX_VECX_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 2798 |
static inline uint64_t BDK_OCX_MSIX_VECX_CTL(unsigned long a) |
| 2799 |
{ |
| 2800 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=3)) |
| 2801 |
return 0x87e011f00008ll + 0x10ll * ((a) & 0x3); |
| 2802 |
__bdk_csr_fatal("OCX_MSIX_VECX_CTL", 1, a, 0, 0, 0); |
| 2803 |
} |
| 2804 |
|
| 2805 |
#define typedef_BDK_OCX_MSIX_VECX_CTL(a) bdk_ocx_msix_vecx_ctl_t |
| 2806 |
#define bustype_BDK_OCX_MSIX_VECX_CTL(a) BDK_CSR_TYPE_RSL |
| 2807 |
#define basename_BDK_OCX_MSIX_VECX_CTL(a) "OCX_MSIX_VECX_CTL" |
| 2808 |
#define device_bar_BDK_OCX_MSIX_VECX_CTL(a) 0x4 |
| 2809 |
#define busnum_BDK_OCX_MSIX_VECX_CTL(a) (a) |
| 2810 |
#define arguments_BDK_OCX_MSIX_VECX_CTL(a) (a),-1,-1,-1 |
| 2811 |
|
| 2812 |
|
| 2813 |
|
| 2814 |
|
| 2815 |
|
| 2816 |
|
| 2817 |
|
| 2818 |
|
| 2819 |
|
| 2820 |
|
| 2821 |
|
| 2822 |
union bdk_ocx_pp_cmd |
| 2823 |
{ |
| 2824 |
uint64_t u; |
| 2825 |
struct bdk_ocx_pp_cmd_s |
| 2826 |
{ |
| 2827 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2828 |
uint64_t wr_mask : 8; |
| 2829 |
|
| 2830 |
|
| 2831 |
|
| 2832 |
uint64_t reserved_54_55 : 2; |
| 2833 |
uint64_t el : 2; |
| 2834 |
|
| 2835 |
uint64_t nsecure : 1; |
| 2836 |
|
| 2837 |
uint64_t ld_cmd : 2; |
| 2838 |
|
| 2839 |
|
| 2840 |
|
| 2841 |
|
| 2842 |
uint64_t ld_op : 1; |
| 2843 |
|
| 2844 |
|
| 2845 |
uint64_t addr : 48; |
| 2846 |
|
| 2847 |
|
| 2848 |
|
| 2849 |
|
| 2850 |
|
| 2851 |
|
| 2852 |
|
| 2853 |
|
| 2854 |
|
| 2855 |
|
| 2856 |
|
| 2857 |
|
| 2858 |
|
| 2859 |
|
| 2860 |
#else |
| 2861 |
uint64_t addr : 48; |
| 2862 |
|
| 2863 |
|
| 2864 |
|
| 2865 |
|
| 2866 |
|
| 2867 |
|
| 2868 |
|
| 2869 |
|
| 2870 |
|
| 2871 |
|
| 2872 |
|
| 2873 |
|
| 2874 |
|
| 2875 |
|
| 2876 |
uint64_t ld_op : 1; |
| 2877 |
|
| 2878 |
|
| 2879 |
uint64_t ld_cmd : 2; |
| 2880 |
|
| 2881 |
|
| 2882 |
|
| 2883 |
|
| 2884 |
uint64_t nsecure : 1; |
| 2885 |
|
| 2886 |
uint64_t el : 2; |
| 2887 |
|
| 2888 |
uint64_t reserved_54_55 : 2; |
| 2889 |
uint64_t wr_mask : 8; |
| 2890 |
|
| 2891 |
|
| 2892 |
|
| 2893 |
#endif |
| 2894 |
} s; |
| 2895 |
|
| 2896 |
}; |
| 2897 |
typedef union bdk_ocx_pp_cmd bdk_ocx_pp_cmd_t; |
| 2898 |
|
| 2899 |
#define BDK_OCX_PP_CMD BDK_OCX_PP_CMD_FUNC() |
| 2900 |
static inline uint64_t BDK_OCX_PP_CMD_FUNC(void) __attribute__ ((pure, always_inline)); |
| 2901 |
static inline uint64_t BDK_OCX_PP_CMD_FUNC(void) |
| 2902 |
{ |
| 2903 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 2904 |
return 0x87e0110000c8ll; |
| 2905 |
__bdk_csr_fatal("OCX_PP_CMD", 0, 0, 0, 0, 0); |
| 2906 |
} |
| 2907 |
|
| 2908 |
#define typedef_BDK_OCX_PP_CMD bdk_ocx_pp_cmd_t |
| 2909 |
#define bustype_BDK_OCX_PP_CMD BDK_CSR_TYPE_RSL |
| 2910 |
#define basename_BDK_OCX_PP_CMD "OCX_PP_CMD" |
| 2911 |
#define device_bar_BDK_OCX_PP_CMD 0x0 |
| 2912 |
#define busnum_BDK_OCX_PP_CMD 0 |
| 2913 |
#define arguments_BDK_OCX_PP_CMD -1,-1,-1,-1 |
| 2914 |
|
| 2915 |
|
| 2916 |
|
| 2917 |
|
| 2918 |
|
| 2919 |
|
| 2920 |
|
| 2921 |
|
| 2922 |
|
| 2923 |
union bdk_ocx_pp_rd_data |
| 2924 |
{ |
| 2925 |
uint64_t u; |
| 2926 |
struct bdk_ocx_pp_rd_data_s |
| 2927 |
{ |
| 2928 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2929 |
uint64_t data : 64; |
| 2930 |
#else |
| 2931 |
uint64_t data : 64; |
| 2932 |
#endif |
| 2933 |
} s; |
| 2934 |
|
| 2935 |
}; |
| 2936 |
typedef union bdk_ocx_pp_rd_data bdk_ocx_pp_rd_data_t; |
| 2937 |
|
| 2938 |
#define BDK_OCX_PP_RD_DATA BDK_OCX_PP_RD_DATA_FUNC() |
| 2939 |
static inline uint64_t BDK_OCX_PP_RD_DATA_FUNC(void) __attribute__ ((pure, always_inline)); |
| 2940 |
static inline uint64_t BDK_OCX_PP_RD_DATA_FUNC(void) |
| 2941 |
{ |
| 2942 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 2943 |
return 0x87e0110000d0ll; |
| 2944 |
__bdk_csr_fatal("OCX_PP_RD_DATA", 0, 0, 0, 0, 0); |
| 2945 |
} |
| 2946 |
|
| 2947 |
#define typedef_BDK_OCX_PP_RD_DATA bdk_ocx_pp_rd_data_t |
| 2948 |
#define bustype_BDK_OCX_PP_RD_DATA BDK_CSR_TYPE_RSL |
| 2949 |
#define basename_BDK_OCX_PP_RD_DATA "OCX_PP_RD_DATA" |
| 2950 |
#define device_bar_BDK_OCX_PP_RD_DATA 0x0 |
| 2951 |
#define busnum_BDK_OCX_PP_RD_DATA 0 |
| 2952 |
#define arguments_BDK_OCX_PP_RD_DATA -1,-1,-1,-1 |
| 2953 |
|
| 2954 |
|
| 2955 |
|
| 2956 |
|
| 2957 |
|
| 2958 |
|
| 2959 |
|
| 2960 |
|
| 2961 |
|
| 2962 |
union bdk_ocx_pp_wr_data |
| 2963 |
{ |
| 2964 |
uint64_t u; |
| 2965 |
struct bdk_ocx_pp_wr_data_s |
| 2966 |
{ |
| 2967 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 2968 |
uint64_t wr_data : 64; |
| 2969 |
#else |
| 2970 |
uint64_t wr_data : 64; |
| 2971 |
#endif |
| 2972 |
} s; |
| 2973 |
|
| 2974 |
}; |
| 2975 |
typedef union bdk_ocx_pp_wr_data bdk_ocx_pp_wr_data_t; |
| 2976 |
|
| 2977 |
#define BDK_OCX_PP_WR_DATA BDK_OCX_PP_WR_DATA_FUNC() |
| 2978 |
static inline uint64_t BDK_OCX_PP_WR_DATA_FUNC(void) __attribute__ ((pure, always_inline)); |
| 2979 |
static inline uint64_t BDK_OCX_PP_WR_DATA_FUNC(void) |
| 2980 |
{ |
| 2981 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 2982 |
return 0x87e0110000c0ll; |
| 2983 |
__bdk_csr_fatal("OCX_PP_WR_DATA", 0, 0, 0, 0, 0); |
| 2984 |
} |
| 2985 |
|
| 2986 |
#define typedef_BDK_OCX_PP_WR_DATA bdk_ocx_pp_wr_data_t |
| 2987 |
#define bustype_BDK_OCX_PP_WR_DATA BDK_CSR_TYPE_RSL |
| 2988 |
#define basename_BDK_OCX_PP_WR_DATA "OCX_PP_WR_DATA" |
| 2989 |
#define device_bar_BDK_OCX_PP_WR_DATA 0x0 |
| 2990 |
#define busnum_BDK_OCX_PP_WR_DATA 0 |
| 2991 |
#define arguments_BDK_OCX_PP_WR_DATA -1,-1,-1,-1 |
| 2992 |
|
| 2993 |
|
| 2994 |
|
| 2995 |
|
| 2996 |
|
| 2997 |
|
| 2998 |
union bdk_ocx_qlmx_cfg |
| 2999 |
{ |
| 3000 |
uint64_t u; |
| 3001 |
struct bdk_ocx_qlmx_cfg_s |
| 3002 |
{ |
| 3003 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3004 |
uint64_t ser_low : 4; |
| 3005 |
|
| 3006 |
uint64_t reserved_42_59 : 18; |
| 3007 |
uint64_t ser_limit : 10; |
| 3008 |
uint64_t crd_dis : 1; |
| 3009 |
uint64_t reserved_27_30 : 4; |
| 3010 |
uint64_t trn_rxeq_only : 1; |
| 3011 |
|
| 3012 |
|
| 3013 |
uint64_t timer_dis : 1; |
| 3014 |
|
| 3015 |
|
| 3016 |
|
| 3017 |
uint64_t trn_ena : 1; |
| 3018 |
|
| 3019 |
|
| 3020 |
uint64_t ser_lane_ready : 4; |
| 3021 |
uint64_t ser_lane_bad : 4; |
| 3022 |
uint64_t reserved_7_15 : 9; |
| 3023 |
uint64_t ser_lane_rev : 1; |
| 3024 |
uint64_t ser_rxpol_auto : 1; |
| 3025 |
uint64_t ser_rxpol : 1; |
| 3026 |
|
| 3027 |
|
| 3028 |
uint64_t ser_txpol : 1; |
| 3029 |
|
| 3030 |
|
| 3031 |
uint64_t reserved_1_2 : 2; |
| 3032 |
uint64_t ser_local : 1; |
| 3033 |
|
| 3034 |
|
| 3035 |
|
| 3036 |
|
| 3037 |
|
| 3038 |
|
| 3039 |
|
| 3040 |
|
| 3041 |
|
| 3042 |
|
| 3043 |
|
| 3044 |
|
| 3045 |
|
| 3046 |
|
| 3047 |
|
| 3048 |
|
| 3049 |
|
| 3050 |
|
| 3051 |
|
| 3052 |
|
| 3053 |
#else |
| 3054 |
uint64_t ser_local : 1; |
| 3055 |
|
| 3056 |
|
| 3057 |
|
| 3058 |
|
| 3059 |
|
| 3060 |
|
| 3061 |
|
| 3062 |
|
| 3063 |
|
| 3064 |
|
| 3065 |
|
| 3066 |
|
| 3067 |
|
| 3068 |
|
| 3069 |
|
| 3070 |
|
| 3071 |
|
| 3072 |
|
| 3073 |
|
| 3074 |
|
| 3075 |
uint64_t reserved_1_2 : 2; |
| 3076 |
uint64_t ser_txpol : 1; |
| 3077 |
|
| 3078 |
|
| 3079 |
uint64_t ser_rxpol : 1; |
| 3080 |
|
| 3081 |
|
| 3082 |
uint64_t ser_rxpol_auto : 1; |
| 3083 |
uint64_t ser_lane_rev : 1; |
| 3084 |
uint64_t reserved_7_15 : 9; |
| 3085 |
uint64_t ser_lane_bad : 4; |
| 3086 |
uint64_t ser_lane_ready : 4; |
| 3087 |
uint64_t trn_ena : 1; |
| 3088 |
|
| 3089 |
|
| 3090 |
uint64_t timer_dis : 1; |
| 3091 |
|
| 3092 |
|
| 3093 |
|
| 3094 |
uint64_t trn_rxeq_only : 1; |
| 3095 |
|
| 3096 |
|
| 3097 |
uint64_t reserved_27_30 : 4; |
| 3098 |
uint64_t crd_dis : 1; |
| 3099 |
uint64_t ser_limit : 10; |
| 3100 |
uint64_t reserved_42_59 : 18; |
| 3101 |
uint64_t ser_low : 4; |
| 3102 |
|
| 3103 |
#endif |
| 3104 |
} s; |
| 3105 |
|
| 3106 |
}; |
| 3107 |
typedef union bdk_ocx_qlmx_cfg bdk_ocx_qlmx_cfg_t; |
| 3108 |
|
| 3109 |
static inline uint64_t BDK_OCX_QLMX_CFG(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3110 |
static inline uint64_t BDK_OCX_QLMX_CFG(unsigned long a) |
| 3111 |
{ |
| 3112 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=5)) |
| 3113 |
return 0x87e01100f800ll + 8ll * ((a) & 0x7); |
| 3114 |
__bdk_csr_fatal("OCX_QLMX_CFG", 1, a, 0, 0, 0); |
| 3115 |
} |
| 3116 |
|
| 3117 |
#define typedef_BDK_OCX_QLMX_CFG(a) bdk_ocx_qlmx_cfg_t |
| 3118 |
#define bustype_BDK_OCX_QLMX_CFG(a) BDK_CSR_TYPE_RSL |
| 3119 |
#define basename_BDK_OCX_QLMX_CFG(a) "OCX_QLMX_CFG" |
| 3120 |
#define device_bar_BDK_OCX_QLMX_CFG(a) 0x0 |
| 3121 |
#define busnum_BDK_OCX_QLMX_CFG(a) (a) |
| 3122 |
#define arguments_BDK_OCX_QLMX_CFG(a) (a),-1,-1,-1 |
| 3123 |
|
| 3124 |
|
| 3125 |
|
| 3126 |
|
| 3127 |
|
| 3128 |
|
| 3129 |
union bdk_ocx_rlkx_align |
| 3130 |
{ |
| 3131 |
uint64_t u; |
| 3132 |
struct bdk_ocx_rlkx_align_s |
| 3133 |
{ |
| 3134 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3135 |
uint64_t bad_cnt : 32; |
| 3136 |
|
| 3137 |
uint64_t good_cnt : 32; |
| 3138 |
|
| 3139 |
#else |
| 3140 |
uint64_t good_cnt : 32; |
| 3141 |
|
| 3142 |
uint64_t bad_cnt : 32; |
| 3143 |
|
| 3144 |
#endif |
| 3145 |
} s; |
| 3146 |
|
| 3147 |
}; |
| 3148 |
typedef union bdk_ocx_rlkx_align bdk_ocx_rlkx_align_t; |
| 3149 |
|
| 3150 |
static inline uint64_t BDK_OCX_RLKX_ALIGN(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3151 |
static inline uint64_t BDK_OCX_RLKX_ALIGN(unsigned long a) |
| 3152 |
{ |
| 3153 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3154 |
return 0x87e011018060ll + 0x2000ll * ((a) & 0x3); |
| 3155 |
__bdk_csr_fatal("OCX_RLKX_ALIGN", 1, a, 0, 0, 0); |
| 3156 |
} |
| 3157 |
|
| 3158 |
#define typedef_BDK_OCX_RLKX_ALIGN(a) bdk_ocx_rlkx_align_t |
| 3159 |
#define bustype_BDK_OCX_RLKX_ALIGN(a) BDK_CSR_TYPE_RSL |
| 3160 |
#define basename_BDK_OCX_RLKX_ALIGN(a) "OCX_RLKX_ALIGN" |
| 3161 |
#define device_bar_BDK_OCX_RLKX_ALIGN(a) 0x0 |
| 3162 |
#define busnum_BDK_OCX_RLKX_ALIGN(a) (a) |
| 3163 |
#define arguments_BDK_OCX_RLKX_ALIGN(a) (a),-1,-1,-1 |
| 3164 |
|
| 3165 |
|
| 3166 |
|
| 3167 |
|
| 3168 |
|
| 3169 |
|
| 3170 |
union bdk_ocx_rlkx_blk_err |
| 3171 |
{ |
| 3172 |
uint64_t u; |
| 3173 |
struct bdk_ocx_rlkx_blk_err_s |
| 3174 |
{ |
| 3175 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3176 |
uint64_t reserved_32_63 : 32; |
| 3177 |
uint64_t limit : 16; |
| 3178 |
|
| 3179 |
uint64_t count : 16; |
| 3180 |
|
| 3181 |
#else |
| 3182 |
uint64_t count : 16; |
| 3183 |
|
| 3184 |
uint64_t limit : 16; |
| 3185 |
|
| 3186 |
uint64_t reserved_32_63 : 32; |
| 3187 |
#endif |
| 3188 |
} s; |
| 3189 |
|
| 3190 |
}; |
| 3191 |
typedef union bdk_ocx_rlkx_blk_err bdk_ocx_rlkx_blk_err_t; |
| 3192 |
|
| 3193 |
static inline uint64_t BDK_OCX_RLKX_BLK_ERR(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3194 |
static inline uint64_t BDK_OCX_RLKX_BLK_ERR(unsigned long a) |
| 3195 |
{ |
| 3196 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3197 |
return 0x87e011018050ll + 0x2000ll * ((a) & 0x3); |
| 3198 |
__bdk_csr_fatal("OCX_RLKX_BLK_ERR", 1, a, 0, 0, 0); |
| 3199 |
} |
| 3200 |
|
| 3201 |
#define typedef_BDK_OCX_RLKX_BLK_ERR(a) bdk_ocx_rlkx_blk_err_t |
| 3202 |
#define bustype_BDK_OCX_RLKX_BLK_ERR(a) BDK_CSR_TYPE_RSL |
| 3203 |
#define basename_BDK_OCX_RLKX_BLK_ERR(a) "OCX_RLKX_BLK_ERR" |
| 3204 |
#define device_bar_BDK_OCX_RLKX_BLK_ERR(a) 0x0 |
| 3205 |
#define busnum_BDK_OCX_RLKX_BLK_ERR(a) (a) |
| 3206 |
#define arguments_BDK_OCX_RLKX_BLK_ERR(a) (a),-1,-1,-1 |
| 3207 |
|
| 3208 |
|
| 3209 |
|
| 3210 |
|
| 3211 |
|
| 3212 |
|
| 3213 |
union bdk_ocx_rlkx_ecc_ctl |
| 3214 |
{ |
| 3215 |
uint64_t u; |
| 3216 |
struct bdk_ocx_rlkx_ecc_ctl_s |
| 3217 |
{ |
| 3218 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3219 |
uint64_t reserved_36_63 : 28; |
| 3220 |
uint64_t fifo1_flip : 2; |
| 3221 |
uint64_t fifo0_flip : 2; |
| 3222 |
uint64_t reserved_2_31 : 30; |
| 3223 |
uint64_t fifo1_cdis : 1; |
| 3224 |
uint64_t fifo0_cdis : 1; |
| 3225 |
#else |
| 3226 |
uint64_t fifo0_cdis : 1; |
| 3227 |
uint64_t fifo1_cdis : 1; |
| 3228 |
uint64_t reserved_2_31 : 30; |
| 3229 |
uint64_t fifo0_flip : 2; |
| 3230 |
uint64_t fifo1_flip : 2; |
| 3231 |
uint64_t reserved_36_63 : 28; |
| 3232 |
#endif |
| 3233 |
} s; |
| 3234 |
|
| 3235 |
}; |
| 3236 |
typedef union bdk_ocx_rlkx_ecc_ctl bdk_ocx_rlkx_ecc_ctl_t; |
| 3237 |
|
| 3238 |
static inline uint64_t BDK_OCX_RLKX_ECC_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3239 |
static inline uint64_t BDK_OCX_RLKX_ECC_CTL(unsigned long a) |
| 3240 |
{ |
| 3241 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3242 |
return 0x87e011018018ll + 0x2000ll * ((a) & 0x3); |
| 3243 |
__bdk_csr_fatal("OCX_RLKX_ECC_CTL", 1, a, 0, 0, 0); |
| 3244 |
} |
| 3245 |
|
| 3246 |
#define typedef_BDK_OCX_RLKX_ECC_CTL(a) bdk_ocx_rlkx_ecc_ctl_t |
| 3247 |
#define bustype_BDK_OCX_RLKX_ECC_CTL(a) BDK_CSR_TYPE_RSL |
| 3248 |
#define basename_BDK_OCX_RLKX_ECC_CTL(a) "OCX_RLKX_ECC_CTL" |
| 3249 |
#define device_bar_BDK_OCX_RLKX_ECC_CTL(a) 0x0 |
| 3250 |
#define busnum_BDK_OCX_RLKX_ECC_CTL(a) (a) |
| 3251 |
#define arguments_BDK_OCX_RLKX_ECC_CTL(a) (a),-1,-1,-1 |
| 3252 |
|
| 3253 |
|
| 3254 |
|
| 3255 |
|
| 3256 |
|
| 3257 |
|
| 3258 |
union bdk_ocx_rlkx_enables |
| 3259 |
{ |
| 3260 |
uint64_t u; |
| 3261 |
struct bdk_ocx_rlkx_enables_s |
| 3262 |
{ |
| 3263 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3264 |
uint64_t reserved_5_63 : 59; |
| 3265 |
uint64_t mcd : 1; |
| 3266 |
|
| 3267 |
|
| 3268 |
|
| 3269 |
uint64_t m_req : 1; |
| 3270 |
|
| 3271 |
uint64_t io_req : 1; |
| 3272 |
|
| 3273 |
uint64_t fwd : 1; |
| 3274 |
|
| 3275 |
uint64_t co_proc : 1; |
| 3276 |
|
| 3277 |
#else |
| 3278 |
uint64_t co_proc : 1; |
| 3279 |
|
| 3280 |
uint64_t fwd : 1; |
| 3281 |
|
| 3282 |
uint64_t io_req : 1; |
| 3283 |
|
| 3284 |
uint64_t m_req : 1; |
| 3285 |
|
| 3286 |
uint64_t mcd : 1; |
| 3287 |
|
| 3288 |
|
| 3289 |
|
| 3290 |
uint64_t reserved_5_63 : 59; |
| 3291 |
#endif |
| 3292 |
} s; |
| 3293 |
|
| 3294 |
}; |
| 3295 |
typedef union bdk_ocx_rlkx_enables bdk_ocx_rlkx_enables_t; |
| 3296 |
|
| 3297 |
static inline uint64_t BDK_OCX_RLKX_ENABLES(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3298 |
static inline uint64_t BDK_OCX_RLKX_ENABLES(unsigned long a) |
| 3299 |
{ |
| 3300 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3301 |
return 0x87e011018000ll + 0x2000ll * ((a) & 0x3); |
| 3302 |
__bdk_csr_fatal("OCX_RLKX_ENABLES", 1, a, 0, 0, 0); |
| 3303 |
} |
| 3304 |
|
| 3305 |
#define typedef_BDK_OCX_RLKX_ENABLES(a) bdk_ocx_rlkx_enables_t |
| 3306 |
#define bustype_BDK_OCX_RLKX_ENABLES(a) BDK_CSR_TYPE_RSL |
| 3307 |
#define basename_BDK_OCX_RLKX_ENABLES(a) "OCX_RLKX_ENABLES" |
| 3308 |
#define device_bar_BDK_OCX_RLKX_ENABLES(a) 0x0 |
| 3309 |
#define busnum_BDK_OCX_RLKX_ENABLES(a) (a) |
| 3310 |
#define arguments_BDK_OCX_RLKX_ENABLES(a) (a),-1,-1,-1 |
| 3311 |
|
| 3312 |
|
| 3313 |
|
| 3314 |
|
| 3315 |
|
| 3316 |
|
| 3317 |
union bdk_ocx_rlkx_fifox_cnt |
| 3318 |
{ |
| 3319 |
uint64_t u; |
| 3320 |
struct bdk_ocx_rlkx_fifox_cnt_s |
| 3321 |
{ |
| 3322 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3323 |
uint64_t reserved_16_63 : 48; |
| 3324 |
uint64_t count : 16; |
| 3325 |
|
| 3326 |
#else |
| 3327 |
uint64_t count : 16; |
| 3328 |
|
| 3329 |
uint64_t reserved_16_63 : 48; |
| 3330 |
#endif |
| 3331 |
} s; |
| 3332 |
|
| 3333 |
}; |
| 3334 |
typedef union bdk_ocx_rlkx_fifox_cnt bdk_ocx_rlkx_fifox_cnt_t; |
| 3335 |
|
| 3336 |
static inline uint64_t BDK_OCX_RLKX_FIFOX_CNT(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 3337 |
static inline uint64_t BDK_OCX_RLKX_FIFOX_CNT(unsigned long a, unsigned long b) |
| 3338 |
{ |
| 3339 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=13))) |
| 3340 |
return 0x87e011018100ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0xf); |
| 3341 |
__bdk_csr_fatal("OCX_RLKX_FIFOX_CNT", 2, a, b, 0, 0); |
| 3342 |
} |
| 3343 |
|
| 3344 |
#define typedef_BDK_OCX_RLKX_FIFOX_CNT(a,b) bdk_ocx_rlkx_fifox_cnt_t |
| 3345 |
#define bustype_BDK_OCX_RLKX_FIFOX_CNT(a,b) BDK_CSR_TYPE_RSL |
| 3346 |
#define basename_BDK_OCX_RLKX_FIFOX_CNT(a,b) "OCX_RLKX_FIFOX_CNT" |
| 3347 |
#define device_bar_BDK_OCX_RLKX_FIFOX_CNT(a,b) 0x0 |
| 3348 |
#define busnum_BDK_OCX_RLKX_FIFOX_CNT(a,b) (a) |
| 3349 |
#define arguments_BDK_OCX_RLKX_FIFOX_CNT(a,b) (a),(b),-1,-1 |
| 3350 |
|
| 3351 |
|
| 3352 |
|
| 3353 |
|
| 3354 |
|
| 3355 |
|
| 3356 |
union bdk_ocx_rlkx_key_highx |
| 3357 |
{ |
| 3358 |
uint64_t u; |
| 3359 |
struct bdk_ocx_rlkx_key_highx_s |
| 3360 |
{ |
| 3361 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3362 |
uint64_t data : 64; |
| 3363 |
|
| 3364 |
#else |
| 3365 |
uint64_t data : 64; |
| 3366 |
|
| 3367 |
#endif |
| 3368 |
} s; |
| 3369 |
|
| 3370 |
}; |
| 3371 |
typedef union bdk_ocx_rlkx_key_highx bdk_ocx_rlkx_key_highx_t; |
| 3372 |
|
| 3373 |
static inline uint64_t BDK_OCX_RLKX_KEY_HIGHX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 3374 |
static inline uint64_t BDK_OCX_RLKX_KEY_HIGHX(unsigned long a, unsigned long b) |
| 3375 |
{ |
| 3376 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=2))) |
| 3377 |
return 0x87e011018208ll + 0x2000ll * ((a) & 0x3) + 0x10ll * ((b) & 0x3); |
| 3378 |
__bdk_csr_fatal("OCX_RLKX_KEY_HIGHX", 2, a, b, 0, 0); |
| 3379 |
} |
| 3380 |
|
| 3381 |
#define typedef_BDK_OCX_RLKX_KEY_HIGHX(a,b) bdk_ocx_rlkx_key_highx_t |
| 3382 |
#define bustype_BDK_OCX_RLKX_KEY_HIGHX(a,b) BDK_CSR_TYPE_RSL |
| 3383 |
#define basename_BDK_OCX_RLKX_KEY_HIGHX(a,b) "OCX_RLKX_KEY_HIGHX" |
| 3384 |
#define device_bar_BDK_OCX_RLKX_KEY_HIGHX(a,b) 0x0 |
| 3385 |
#define busnum_BDK_OCX_RLKX_KEY_HIGHX(a,b) (a) |
| 3386 |
#define arguments_BDK_OCX_RLKX_KEY_HIGHX(a,b) (a),(b),-1,-1 |
| 3387 |
|
| 3388 |
|
| 3389 |
|
| 3390 |
|
| 3391 |
|
| 3392 |
|
| 3393 |
union bdk_ocx_rlkx_key_lowx |
| 3394 |
{ |
| 3395 |
uint64_t u; |
| 3396 |
struct bdk_ocx_rlkx_key_lowx_s |
| 3397 |
{ |
| 3398 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3399 |
uint64_t data : 64; |
| 3400 |
|
| 3401 |
#else |
| 3402 |
uint64_t data : 64; |
| 3403 |
|
| 3404 |
#endif |
| 3405 |
} s; |
| 3406 |
|
| 3407 |
}; |
| 3408 |
typedef union bdk_ocx_rlkx_key_lowx bdk_ocx_rlkx_key_lowx_t; |
| 3409 |
|
| 3410 |
static inline uint64_t BDK_OCX_RLKX_KEY_LOWX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 3411 |
static inline uint64_t BDK_OCX_RLKX_KEY_LOWX(unsigned long a, unsigned long b) |
| 3412 |
{ |
| 3413 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=2))) |
| 3414 |
return 0x87e011018200ll + 0x2000ll * ((a) & 0x3) + 0x10ll * ((b) & 0x3); |
| 3415 |
__bdk_csr_fatal("OCX_RLKX_KEY_LOWX", 2, a, b, 0, 0); |
| 3416 |
} |
| 3417 |
|
| 3418 |
#define typedef_BDK_OCX_RLKX_KEY_LOWX(a,b) bdk_ocx_rlkx_key_lowx_t |
| 3419 |
#define bustype_BDK_OCX_RLKX_KEY_LOWX(a,b) BDK_CSR_TYPE_RSL |
| 3420 |
#define basename_BDK_OCX_RLKX_KEY_LOWX(a,b) "OCX_RLKX_KEY_LOWX" |
| 3421 |
#define device_bar_BDK_OCX_RLKX_KEY_LOWX(a,b) 0x0 |
| 3422 |
#define busnum_BDK_OCX_RLKX_KEY_LOWX(a,b) (a) |
| 3423 |
#define arguments_BDK_OCX_RLKX_KEY_LOWX(a,b) (a),(b),-1,-1 |
| 3424 |
|
| 3425 |
|
| 3426 |
|
| 3427 |
|
| 3428 |
|
| 3429 |
|
| 3430 |
union bdk_ocx_rlkx_lnk_data |
| 3431 |
{ |
| 3432 |
uint64_t u; |
| 3433 |
struct bdk_ocx_rlkx_lnk_data_s |
| 3434 |
{ |
| 3435 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3436 |
uint64_t rcvd : 1; |
| 3437 |
|
| 3438 |
uint64_t reserved_56_62 : 7; |
| 3439 |
uint64_t data : 56; |
| 3440 |
|
| 3441 |
#else |
| 3442 |
uint64_t data : 56; |
| 3443 |
|
| 3444 |
uint64_t reserved_56_62 : 7; |
| 3445 |
uint64_t rcvd : 1; |
| 3446 |
|
| 3447 |
#endif |
| 3448 |
} s; |
| 3449 |
|
| 3450 |
}; |
| 3451 |
typedef union bdk_ocx_rlkx_lnk_data bdk_ocx_rlkx_lnk_data_t; |
| 3452 |
|
| 3453 |
static inline uint64_t BDK_OCX_RLKX_LNK_DATA(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3454 |
static inline uint64_t BDK_OCX_RLKX_LNK_DATA(unsigned long a) |
| 3455 |
{ |
| 3456 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3457 |
return 0x87e011018028ll + 0x2000ll * ((a) & 0x3); |
| 3458 |
__bdk_csr_fatal("OCX_RLKX_LNK_DATA", 1, a, 0, 0, 0); |
| 3459 |
} |
| 3460 |
|
| 3461 |
#define typedef_BDK_OCX_RLKX_LNK_DATA(a) bdk_ocx_rlkx_lnk_data_t |
| 3462 |
#define bustype_BDK_OCX_RLKX_LNK_DATA(a) BDK_CSR_TYPE_RSL |
| 3463 |
#define basename_BDK_OCX_RLKX_LNK_DATA(a) "OCX_RLKX_LNK_DATA" |
| 3464 |
#define device_bar_BDK_OCX_RLKX_LNK_DATA(a) 0x0 |
| 3465 |
#define busnum_BDK_OCX_RLKX_LNK_DATA(a) (a) |
| 3466 |
#define arguments_BDK_OCX_RLKX_LNK_DATA(a) (a),-1,-1,-1 |
| 3467 |
|
| 3468 |
|
| 3469 |
|
| 3470 |
|
| 3471 |
|
| 3472 |
|
| 3473 |
|
| 3474 |
|
| 3475 |
|
| 3476 |
union bdk_ocx_rlkx_mcd_ctl |
| 3477 |
{ |
| 3478 |
uint64_t u; |
| 3479 |
struct bdk_ocx_rlkx_mcd_ctl_s |
| 3480 |
{ |
| 3481 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3482 |
uint64_t reserved_3_63 : 61; |
| 3483 |
uint64_t clr : 3; |
| 3484 |
|
| 3485 |
#else |
| 3486 |
uint64_t clr : 3; |
| 3487 |
|
| 3488 |
uint64_t reserved_3_63 : 61; |
| 3489 |
#endif |
| 3490 |
} s; |
| 3491 |
|
| 3492 |
}; |
| 3493 |
typedef union bdk_ocx_rlkx_mcd_ctl bdk_ocx_rlkx_mcd_ctl_t; |
| 3494 |
|
| 3495 |
static inline uint64_t BDK_OCX_RLKX_MCD_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3496 |
static inline uint64_t BDK_OCX_RLKX_MCD_CTL(unsigned long a) |
| 3497 |
{ |
| 3498 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3499 |
return 0x87e011018020ll + 0x2000ll * ((a) & 0x3); |
| 3500 |
__bdk_csr_fatal("OCX_RLKX_MCD_CTL", 1, a, 0, 0, 0); |
| 3501 |
} |
| 3502 |
|
| 3503 |
#define typedef_BDK_OCX_RLKX_MCD_CTL(a) bdk_ocx_rlkx_mcd_ctl_t |
| 3504 |
#define bustype_BDK_OCX_RLKX_MCD_CTL(a) BDK_CSR_TYPE_RSL |
| 3505 |
#define basename_BDK_OCX_RLKX_MCD_CTL(a) "OCX_RLKX_MCD_CTL" |
| 3506 |
#define device_bar_BDK_OCX_RLKX_MCD_CTL(a) 0x0 |
| 3507 |
#define busnum_BDK_OCX_RLKX_MCD_CTL(a) (a) |
| 3508 |
#define arguments_BDK_OCX_RLKX_MCD_CTL(a) (a),-1,-1,-1 |
| 3509 |
|
| 3510 |
|
| 3511 |
|
| 3512 |
|
| 3513 |
|
| 3514 |
|
| 3515 |
union bdk_ocx_rlkx_protect |
| 3516 |
{ |
| 3517 |
uint64_t u; |
| 3518 |
struct bdk_ocx_rlkx_protect_s |
| 3519 |
{ |
| 3520 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3521 |
uint64_t reserved_8_63 : 56; |
| 3522 |
uint64_t wo_key : 1; |
| 3523 |
|
| 3524 |
uint64_t reserved_1_6 : 6; |
| 3525 |
uint64_t enable : 1; |
| 3526 |
|
| 3527 |
#else |
| 3528 |
uint64_t enable : 1; |
| 3529 |
|
| 3530 |
uint64_t reserved_1_6 : 6; |
| 3531 |
uint64_t wo_key : 1; |
| 3532 |
|
| 3533 |
uint64_t reserved_8_63 : 56; |
| 3534 |
#endif |
| 3535 |
} s; |
| 3536 |
|
| 3537 |
}; |
| 3538 |
typedef union bdk_ocx_rlkx_protect bdk_ocx_rlkx_protect_t; |
| 3539 |
|
| 3540 |
static inline uint64_t BDK_OCX_RLKX_PROTECT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3541 |
static inline uint64_t BDK_OCX_RLKX_PROTECT(unsigned long a) |
| 3542 |
{ |
| 3543 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3544 |
return 0x87e0110182c0ll + 0x2000ll * ((a) & 0x3); |
| 3545 |
__bdk_csr_fatal("OCX_RLKX_PROTECT", 1, a, 0, 0, 0); |
| 3546 |
} |
| 3547 |
|
| 3548 |
#define typedef_BDK_OCX_RLKX_PROTECT(a) bdk_ocx_rlkx_protect_t |
| 3549 |
#define bustype_BDK_OCX_RLKX_PROTECT(a) BDK_CSR_TYPE_RSL |
| 3550 |
#define basename_BDK_OCX_RLKX_PROTECT(a) "OCX_RLKX_PROTECT" |
| 3551 |
#define device_bar_BDK_OCX_RLKX_PROTECT(a) 0x0 |
| 3552 |
#define busnum_BDK_OCX_RLKX_PROTECT(a) (a) |
| 3553 |
#define arguments_BDK_OCX_RLKX_PROTECT(a) (a),-1,-1,-1 |
| 3554 |
|
| 3555 |
|
| 3556 |
|
| 3557 |
|
| 3558 |
|
| 3559 |
|
| 3560 |
union bdk_ocx_rlkx_salt_high |
| 3561 |
{ |
| 3562 |
uint64_t u; |
| 3563 |
struct bdk_ocx_rlkx_salt_high_s |
| 3564 |
{ |
| 3565 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3566 |
uint64_t data : 64; |
| 3567 |
|
| 3568 |
#else |
| 3569 |
uint64_t data : 64; |
| 3570 |
|
| 3571 |
#endif |
| 3572 |
} s; |
| 3573 |
|
| 3574 |
}; |
| 3575 |
typedef union bdk_ocx_rlkx_salt_high bdk_ocx_rlkx_salt_high_t; |
| 3576 |
|
| 3577 |
static inline uint64_t BDK_OCX_RLKX_SALT_HIGH(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3578 |
static inline uint64_t BDK_OCX_RLKX_SALT_HIGH(unsigned long a) |
| 3579 |
{ |
| 3580 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3581 |
return 0x87e011018288ll + 0x2000ll * ((a) & 0x3); |
| 3582 |
__bdk_csr_fatal("OCX_RLKX_SALT_HIGH", 1, a, 0, 0, 0); |
| 3583 |
} |
| 3584 |
|
| 3585 |
#define typedef_BDK_OCX_RLKX_SALT_HIGH(a) bdk_ocx_rlkx_salt_high_t |
| 3586 |
#define bustype_BDK_OCX_RLKX_SALT_HIGH(a) BDK_CSR_TYPE_RSL |
| 3587 |
#define basename_BDK_OCX_RLKX_SALT_HIGH(a) "OCX_RLKX_SALT_HIGH" |
| 3588 |
#define device_bar_BDK_OCX_RLKX_SALT_HIGH(a) 0x0 |
| 3589 |
#define busnum_BDK_OCX_RLKX_SALT_HIGH(a) (a) |
| 3590 |
#define arguments_BDK_OCX_RLKX_SALT_HIGH(a) (a),-1,-1,-1 |
| 3591 |
|
| 3592 |
|
| 3593 |
|
| 3594 |
|
| 3595 |
|
| 3596 |
|
| 3597 |
union bdk_ocx_rlkx_salt_low |
| 3598 |
{ |
| 3599 |
uint64_t u; |
| 3600 |
struct bdk_ocx_rlkx_salt_low_s |
| 3601 |
{ |
| 3602 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3603 |
uint64_t data : 64; |
| 3604 |
|
| 3605 |
#else |
| 3606 |
uint64_t data : 64; |
| 3607 |
|
| 3608 |
#endif |
| 3609 |
} s; |
| 3610 |
|
| 3611 |
}; |
| 3612 |
typedef union bdk_ocx_rlkx_salt_low bdk_ocx_rlkx_salt_low_t; |
| 3613 |
|
| 3614 |
static inline uint64_t BDK_OCX_RLKX_SALT_LOW(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3615 |
static inline uint64_t BDK_OCX_RLKX_SALT_LOW(unsigned long a) |
| 3616 |
{ |
| 3617 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3618 |
return 0x87e011018280ll + 0x2000ll * ((a) & 0x3); |
| 3619 |
__bdk_csr_fatal("OCX_RLKX_SALT_LOW", 1, a, 0, 0, 0); |
| 3620 |
} |
| 3621 |
|
| 3622 |
#define typedef_BDK_OCX_RLKX_SALT_LOW(a) bdk_ocx_rlkx_salt_low_t |
| 3623 |
#define bustype_BDK_OCX_RLKX_SALT_LOW(a) BDK_CSR_TYPE_RSL |
| 3624 |
#define basename_BDK_OCX_RLKX_SALT_LOW(a) "OCX_RLKX_SALT_LOW" |
| 3625 |
#define device_bar_BDK_OCX_RLKX_SALT_LOW(a) 0x0 |
| 3626 |
#define busnum_BDK_OCX_RLKX_SALT_LOW(a) (a) |
| 3627 |
#define arguments_BDK_OCX_RLKX_SALT_LOW(a) (a),-1,-1,-1 |
| 3628 |
|
| 3629 |
|
| 3630 |
|
| 3631 |
|
| 3632 |
|
| 3633 |
|
| 3634 |
|
| 3635 |
union bdk_ocx_strap |
| 3636 |
{ |
| 3637 |
uint64_t u; |
| 3638 |
struct bdk_ocx_strap_s |
| 3639 |
{ |
| 3640 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3641 |
uint64_t reserved_26_63 : 38; |
| 3642 |
uint64_t oci3_lnk1 : 1; |
| 3643 |
uint64_t oci2_lnk1 : 1; |
| 3644 |
uint64_t reserved_17_23 : 7; |
| 3645 |
uint64_t oci_fixed_node : 1; |
| 3646 |
uint64_t reserved_10_15 : 6; |
| 3647 |
uint64_t oci_node_id : 2; |
| 3648 |
uint64_t reserved_4_7 : 4; |
| 3649 |
uint64_t oci_spd : 4; |
| 3650 |
#else |
| 3651 |
uint64_t oci_spd : 4; |
| 3652 |
uint64_t reserved_4_7 : 4; |
| 3653 |
uint64_t oci_node_id : 2; |
| 3654 |
uint64_t reserved_10_15 : 6; |
| 3655 |
uint64_t oci_fixed_node : 1; |
| 3656 |
uint64_t reserved_17_23 : 7; |
| 3657 |
uint64_t oci2_lnk1 : 1; |
| 3658 |
uint64_t oci3_lnk1 : 1; |
| 3659 |
uint64_t reserved_26_63 : 38; |
| 3660 |
#endif |
| 3661 |
} s; |
| 3662 |
|
| 3663 |
}; |
| 3664 |
typedef union bdk_ocx_strap bdk_ocx_strap_t; |
| 3665 |
|
| 3666 |
#define BDK_OCX_STRAP BDK_OCX_STRAP_FUNC() |
| 3667 |
static inline uint64_t BDK_OCX_STRAP_FUNC(void) __attribute__ ((pure, always_inline)); |
| 3668 |
static inline uint64_t BDK_OCX_STRAP_FUNC(void) |
| 3669 |
{ |
| 3670 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX_PASS2_X)) |
| 3671 |
return 0x87e01100ff08ll; |
| 3672 |
__bdk_csr_fatal("OCX_STRAP", 0, 0, 0, 0, 0); |
| 3673 |
} |
| 3674 |
|
| 3675 |
#define typedef_BDK_OCX_STRAP bdk_ocx_strap_t |
| 3676 |
#define bustype_BDK_OCX_STRAP BDK_CSR_TYPE_RSL |
| 3677 |
#define basename_BDK_OCX_STRAP "OCX_STRAP" |
| 3678 |
#define device_bar_BDK_OCX_STRAP 0x0 |
| 3679 |
#define busnum_BDK_OCX_STRAP 0 |
| 3680 |
#define arguments_BDK_OCX_STRAP -1,-1,-1,-1 |
| 3681 |
|
| 3682 |
|
| 3683 |
|
| 3684 |
|
| 3685 |
|
| 3686 |
|
| 3687 |
|
| 3688 |
|
| 3689 |
union bdk_ocx_tlkx_bist_status |
| 3690 |
{ |
| 3691 |
uint64_t u; |
| 3692 |
struct bdk_ocx_tlkx_bist_status_s |
| 3693 |
{ |
| 3694 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3695 |
uint64_t reserved_16_63 : 48; |
| 3696 |
uint64_t status : 16; |
| 3697 |
|
| 3698 |
|
| 3699 |
#else |
| 3700 |
uint64_t status : 16; |
| 3701 |
|
| 3702 |
|
| 3703 |
uint64_t reserved_16_63 : 48; |
| 3704 |
#endif |
| 3705 |
} s; |
| 3706 |
|
| 3707 |
}; |
| 3708 |
typedef union bdk_ocx_tlkx_bist_status bdk_ocx_tlkx_bist_status_t; |
| 3709 |
|
| 3710 |
static inline uint64_t BDK_OCX_TLKX_BIST_STATUS(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3711 |
static inline uint64_t BDK_OCX_TLKX_BIST_STATUS(unsigned long a) |
| 3712 |
{ |
| 3713 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3714 |
return 0x87e011010008ll + 0x2000ll * ((a) & 0x3); |
| 3715 |
__bdk_csr_fatal("OCX_TLKX_BIST_STATUS", 1, a, 0, 0, 0); |
| 3716 |
} |
| 3717 |
|
| 3718 |
#define typedef_BDK_OCX_TLKX_BIST_STATUS(a) bdk_ocx_tlkx_bist_status_t |
| 3719 |
#define bustype_BDK_OCX_TLKX_BIST_STATUS(a) BDK_CSR_TYPE_RSL |
| 3720 |
#define basename_BDK_OCX_TLKX_BIST_STATUS(a) "OCX_TLKX_BIST_STATUS" |
| 3721 |
#define device_bar_BDK_OCX_TLKX_BIST_STATUS(a) 0x0 |
| 3722 |
#define busnum_BDK_OCX_TLKX_BIST_STATUS(a) (a) |
| 3723 |
#define arguments_BDK_OCX_TLKX_BIST_STATUS(a) (a),-1,-1,-1 |
| 3724 |
|
| 3725 |
|
| 3726 |
|
| 3727 |
|
| 3728 |
|
| 3729 |
|
| 3730 |
|
| 3731 |
union bdk_ocx_tlkx_byp_ctl |
| 3732 |
{ |
| 3733 |
uint64_t u; |
| 3734 |
struct bdk_ocx_tlkx_byp_ctl_s |
| 3735 |
{ |
| 3736 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3737 |
uint64_t reserved_12_63 : 52; |
| 3738 |
uint64_t vc_dis : 11; |
| 3739 |
|
| 3740 |
|
| 3741 |
uint64_t reserved_0 : 1; |
| 3742 |
#else |
| 3743 |
uint64_t reserved_0 : 1; |
| 3744 |
uint64_t vc_dis : 11; |
| 3745 |
|
| 3746 |
|
| 3747 |
uint64_t reserved_12_63 : 52; |
| 3748 |
#endif |
| 3749 |
} s; |
| 3750 |
|
| 3751 |
}; |
| 3752 |
typedef union bdk_ocx_tlkx_byp_ctl bdk_ocx_tlkx_byp_ctl_t; |
| 3753 |
|
| 3754 |
static inline uint64_t BDK_OCX_TLKX_BYP_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3755 |
static inline uint64_t BDK_OCX_TLKX_BYP_CTL(unsigned long a) |
| 3756 |
{ |
| 3757 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX_PASS2_X) && (a<=2)) |
| 3758 |
return 0x87e011010030ll + 0x2000ll * ((a) & 0x3); |
| 3759 |
__bdk_csr_fatal("OCX_TLKX_BYP_CTL", 1, a, 0, 0, 0); |
| 3760 |
} |
| 3761 |
|
| 3762 |
#define typedef_BDK_OCX_TLKX_BYP_CTL(a) bdk_ocx_tlkx_byp_ctl_t |
| 3763 |
#define bustype_BDK_OCX_TLKX_BYP_CTL(a) BDK_CSR_TYPE_RSL |
| 3764 |
#define basename_BDK_OCX_TLKX_BYP_CTL(a) "OCX_TLKX_BYP_CTL" |
| 3765 |
#define device_bar_BDK_OCX_TLKX_BYP_CTL(a) 0x0 |
| 3766 |
#define busnum_BDK_OCX_TLKX_BYP_CTL(a) (a) |
| 3767 |
#define arguments_BDK_OCX_TLKX_BYP_CTL(a) (a),-1,-1,-1 |
| 3768 |
|
| 3769 |
|
| 3770 |
|
| 3771 |
|
| 3772 |
|
| 3773 |
|
| 3774 |
union bdk_ocx_tlkx_ecc_ctl |
| 3775 |
{ |
| 3776 |
uint64_t u; |
| 3777 |
struct bdk_ocx_tlkx_ecc_ctl_s |
| 3778 |
{ |
| 3779 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3780 |
uint64_t reserved_38_63 : 26; |
| 3781 |
uint64_t rply1_flip : 2; |
| 3782 |
uint64_t rply0_flip : 2; |
| 3783 |
uint64_t fifo_flip : 2; |
| 3784 |
uint64_t reserved_3_31 : 29; |
| 3785 |
uint64_t rply1_cdis : 1; |
| 3786 |
uint64_t rply0_cdis : 1; |
| 3787 |
uint64_t fifo_cdis : 1; |
| 3788 |
#else |
| 3789 |
uint64_t fifo_cdis : 1; |
| 3790 |
uint64_t rply0_cdis : 1; |
| 3791 |
uint64_t rply1_cdis : 1; |
| 3792 |
uint64_t reserved_3_31 : 29; |
| 3793 |
uint64_t fifo_flip : 2; |
| 3794 |
uint64_t rply0_flip : 2; |
| 3795 |
uint64_t rply1_flip : 2; |
| 3796 |
uint64_t reserved_38_63 : 26; |
| 3797 |
#endif |
| 3798 |
} s; |
| 3799 |
|
| 3800 |
}; |
| 3801 |
typedef union bdk_ocx_tlkx_ecc_ctl bdk_ocx_tlkx_ecc_ctl_t; |
| 3802 |
|
| 3803 |
static inline uint64_t BDK_OCX_TLKX_ECC_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3804 |
static inline uint64_t BDK_OCX_TLKX_ECC_CTL(unsigned long a) |
| 3805 |
{ |
| 3806 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3807 |
return 0x87e011010018ll + 0x2000ll * ((a) & 0x3); |
| 3808 |
__bdk_csr_fatal("OCX_TLKX_ECC_CTL", 1, a, 0, 0, 0); |
| 3809 |
} |
| 3810 |
|
| 3811 |
#define typedef_BDK_OCX_TLKX_ECC_CTL(a) bdk_ocx_tlkx_ecc_ctl_t |
| 3812 |
#define bustype_BDK_OCX_TLKX_ECC_CTL(a) BDK_CSR_TYPE_RSL |
| 3813 |
#define basename_BDK_OCX_TLKX_ECC_CTL(a) "OCX_TLKX_ECC_CTL" |
| 3814 |
#define device_bar_BDK_OCX_TLKX_ECC_CTL(a) 0x0 |
| 3815 |
#define busnum_BDK_OCX_TLKX_ECC_CTL(a) (a) |
| 3816 |
#define arguments_BDK_OCX_TLKX_ECC_CTL(a) (a),-1,-1,-1 |
| 3817 |
|
| 3818 |
|
| 3819 |
|
| 3820 |
|
| 3821 |
|
| 3822 |
|
| 3823 |
union bdk_ocx_tlkx_fifox_cnt |
| 3824 |
{ |
| 3825 |
uint64_t u; |
| 3826 |
struct bdk_ocx_tlkx_fifox_cnt_s |
| 3827 |
{ |
| 3828 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3829 |
uint64_t reserved_16_63 : 48; |
| 3830 |
uint64_t count : 16; |
| 3831 |
#else |
| 3832 |
uint64_t count : 16; |
| 3833 |
uint64_t reserved_16_63 : 48; |
| 3834 |
#endif |
| 3835 |
} s; |
| 3836 |
|
| 3837 |
}; |
| 3838 |
typedef union bdk_ocx_tlkx_fifox_cnt bdk_ocx_tlkx_fifox_cnt_t; |
| 3839 |
|
| 3840 |
static inline uint64_t BDK_OCX_TLKX_FIFOX_CNT(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 3841 |
static inline uint64_t BDK_OCX_TLKX_FIFOX_CNT(unsigned long a, unsigned long b) |
| 3842 |
{ |
| 3843 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=13))) |
| 3844 |
return 0x87e011010100ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0xf); |
| 3845 |
__bdk_csr_fatal("OCX_TLKX_FIFOX_CNT", 2, a, b, 0, 0); |
| 3846 |
} |
| 3847 |
|
| 3848 |
#define typedef_BDK_OCX_TLKX_FIFOX_CNT(a,b) bdk_ocx_tlkx_fifox_cnt_t |
| 3849 |
#define bustype_BDK_OCX_TLKX_FIFOX_CNT(a,b) BDK_CSR_TYPE_RSL |
| 3850 |
#define basename_BDK_OCX_TLKX_FIFOX_CNT(a,b) "OCX_TLKX_FIFOX_CNT" |
| 3851 |
#define device_bar_BDK_OCX_TLKX_FIFOX_CNT(a,b) 0x0 |
| 3852 |
#define busnum_BDK_OCX_TLKX_FIFOX_CNT(a,b) (a) |
| 3853 |
#define arguments_BDK_OCX_TLKX_FIFOX_CNT(a,b) (a),(b),-1,-1 |
| 3854 |
|
| 3855 |
|
| 3856 |
|
| 3857 |
|
| 3858 |
|
| 3859 |
|
| 3860 |
union bdk_ocx_tlkx_key_highx |
| 3861 |
{ |
| 3862 |
uint64_t u; |
| 3863 |
struct bdk_ocx_tlkx_key_highx_s |
| 3864 |
{ |
| 3865 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3866 |
uint64_t data : 64; |
| 3867 |
|
| 3868 |
#else |
| 3869 |
uint64_t data : 64; |
| 3870 |
|
| 3871 |
#endif |
| 3872 |
} s; |
| 3873 |
|
| 3874 |
}; |
| 3875 |
typedef union bdk_ocx_tlkx_key_highx bdk_ocx_tlkx_key_highx_t; |
| 3876 |
|
| 3877 |
static inline uint64_t BDK_OCX_TLKX_KEY_HIGHX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 3878 |
static inline uint64_t BDK_OCX_TLKX_KEY_HIGHX(unsigned long a, unsigned long b) |
| 3879 |
{ |
| 3880 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=2))) |
| 3881 |
return 0x87e011010708ll + 0x2000ll * ((a) & 0x3) + 0x10ll * ((b) & 0x3); |
| 3882 |
__bdk_csr_fatal("OCX_TLKX_KEY_HIGHX", 2, a, b, 0, 0); |
| 3883 |
} |
| 3884 |
|
| 3885 |
#define typedef_BDK_OCX_TLKX_KEY_HIGHX(a,b) bdk_ocx_tlkx_key_highx_t |
| 3886 |
#define bustype_BDK_OCX_TLKX_KEY_HIGHX(a,b) BDK_CSR_TYPE_RSL |
| 3887 |
#define basename_BDK_OCX_TLKX_KEY_HIGHX(a,b) "OCX_TLKX_KEY_HIGHX" |
| 3888 |
#define device_bar_BDK_OCX_TLKX_KEY_HIGHX(a,b) 0x0 |
| 3889 |
#define busnum_BDK_OCX_TLKX_KEY_HIGHX(a,b) (a) |
| 3890 |
#define arguments_BDK_OCX_TLKX_KEY_HIGHX(a,b) (a),(b),-1,-1 |
| 3891 |
|
| 3892 |
|
| 3893 |
|
| 3894 |
|
| 3895 |
|
| 3896 |
|
| 3897 |
union bdk_ocx_tlkx_key_lowx |
| 3898 |
{ |
| 3899 |
uint64_t u; |
| 3900 |
struct bdk_ocx_tlkx_key_lowx_s |
| 3901 |
{ |
| 3902 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3903 |
uint64_t data : 64; |
| 3904 |
|
| 3905 |
#else |
| 3906 |
uint64_t data : 64; |
| 3907 |
|
| 3908 |
#endif |
| 3909 |
} s; |
| 3910 |
|
| 3911 |
}; |
| 3912 |
typedef union bdk_ocx_tlkx_key_lowx bdk_ocx_tlkx_key_lowx_t; |
| 3913 |
|
| 3914 |
static inline uint64_t BDK_OCX_TLKX_KEY_LOWX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 3915 |
static inline uint64_t BDK_OCX_TLKX_KEY_LOWX(unsigned long a, unsigned long b) |
| 3916 |
{ |
| 3917 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=2))) |
| 3918 |
return 0x87e011010700ll + 0x2000ll * ((a) & 0x3) + 0x10ll * ((b) & 0x3); |
| 3919 |
__bdk_csr_fatal("OCX_TLKX_KEY_LOWX", 2, a, b, 0, 0); |
| 3920 |
} |
| 3921 |
|
| 3922 |
#define typedef_BDK_OCX_TLKX_KEY_LOWX(a,b) bdk_ocx_tlkx_key_lowx_t |
| 3923 |
#define bustype_BDK_OCX_TLKX_KEY_LOWX(a,b) BDK_CSR_TYPE_RSL |
| 3924 |
#define basename_BDK_OCX_TLKX_KEY_LOWX(a,b) "OCX_TLKX_KEY_LOWX" |
| 3925 |
#define device_bar_BDK_OCX_TLKX_KEY_LOWX(a,b) 0x0 |
| 3926 |
#define busnum_BDK_OCX_TLKX_KEY_LOWX(a,b) (a) |
| 3927 |
#define arguments_BDK_OCX_TLKX_KEY_LOWX(a,b) (a),(b),-1,-1 |
| 3928 |
|
| 3929 |
|
| 3930 |
|
| 3931 |
|
| 3932 |
|
| 3933 |
|
| 3934 |
union bdk_ocx_tlkx_lnk_data |
| 3935 |
{ |
| 3936 |
uint64_t u; |
| 3937 |
struct bdk_ocx_tlkx_lnk_data_s |
| 3938 |
{ |
| 3939 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3940 |
uint64_t reserved_56_63 : 8; |
| 3941 |
uint64_t data : 56; |
| 3942 |
|
| 3943 |
#else |
| 3944 |
uint64_t data : 56; |
| 3945 |
|
| 3946 |
uint64_t reserved_56_63 : 8; |
| 3947 |
#endif |
| 3948 |
} s; |
| 3949 |
|
| 3950 |
}; |
| 3951 |
typedef union bdk_ocx_tlkx_lnk_data bdk_ocx_tlkx_lnk_data_t; |
| 3952 |
|
| 3953 |
static inline uint64_t BDK_OCX_TLKX_LNK_DATA(unsigned long a) __attribute__ ((pure, always_inline)); |
| 3954 |
static inline uint64_t BDK_OCX_TLKX_LNK_DATA(unsigned long a) |
| 3955 |
{ |
| 3956 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 3957 |
return 0x87e011010028ll + 0x2000ll * ((a) & 0x3); |
| 3958 |
__bdk_csr_fatal("OCX_TLKX_LNK_DATA", 1, a, 0, 0, 0); |
| 3959 |
} |
| 3960 |
|
| 3961 |
#define typedef_BDK_OCX_TLKX_LNK_DATA(a) bdk_ocx_tlkx_lnk_data_t |
| 3962 |
#define bustype_BDK_OCX_TLKX_LNK_DATA(a) BDK_CSR_TYPE_RSL |
| 3963 |
#define basename_BDK_OCX_TLKX_LNK_DATA(a) "OCX_TLKX_LNK_DATA" |
| 3964 |
#define device_bar_BDK_OCX_TLKX_LNK_DATA(a) 0x0 |
| 3965 |
#define busnum_BDK_OCX_TLKX_LNK_DATA(a) (a) |
| 3966 |
#define arguments_BDK_OCX_TLKX_LNK_DATA(a) (a),-1,-1,-1 |
| 3967 |
|
| 3968 |
|
| 3969 |
|
| 3970 |
|
| 3971 |
|
| 3972 |
|
| 3973 |
union bdk_ocx_tlkx_lnk_vcx_cnt |
| 3974 |
{ |
| 3975 |
uint64_t u; |
| 3976 |
struct bdk_ocx_tlkx_lnk_vcx_cnt_s |
| 3977 |
{ |
| 3978 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 3979 |
uint64_t reserved_16_63 : 48; |
| 3980 |
uint64_t count : 16; |
| 3981 |
#else |
| 3982 |
uint64_t count : 16; |
| 3983 |
uint64_t reserved_16_63 : 48; |
| 3984 |
#endif |
| 3985 |
} s; |
| 3986 |
|
| 3987 |
}; |
| 3988 |
typedef union bdk_ocx_tlkx_lnk_vcx_cnt bdk_ocx_tlkx_lnk_vcx_cnt_t; |
| 3989 |
|
| 3990 |
static inline uint64_t BDK_OCX_TLKX_LNK_VCX_CNT(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 3991 |
static inline uint64_t BDK_OCX_TLKX_LNK_VCX_CNT(unsigned long a, unsigned long b) |
| 3992 |
{ |
| 3993 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=13))) |
| 3994 |
return 0x87e011010200ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0xf); |
| 3995 |
__bdk_csr_fatal("OCX_TLKX_LNK_VCX_CNT", 2, a, b, 0, 0); |
| 3996 |
} |
| 3997 |
|
| 3998 |
#define typedef_BDK_OCX_TLKX_LNK_VCX_CNT(a,b) bdk_ocx_tlkx_lnk_vcx_cnt_t |
| 3999 |
#define bustype_BDK_OCX_TLKX_LNK_VCX_CNT(a,b) BDK_CSR_TYPE_RSL |
| 4000 |
#define basename_BDK_OCX_TLKX_LNK_VCX_CNT(a,b) "OCX_TLKX_LNK_VCX_CNT" |
| 4001 |
#define device_bar_BDK_OCX_TLKX_LNK_VCX_CNT(a,b) 0x0 |
| 4002 |
#define busnum_BDK_OCX_TLKX_LNK_VCX_CNT(a,b) (a) |
| 4003 |
#define arguments_BDK_OCX_TLKX_LNK_VCX_CNT(a,b) (a),(b),-1,-1 |
| 4004 |
|
| 4005 |
|
| 4006 |
|
| 4007 |
|
| 4008 |
|
| 4009 |
|
| 4010 |
|
| 4011 |
|
| 4012 |
|
| 4013 |
|
| 4014 |
|
| 4015 |
|
| 4016 |
|
| 4017 |
|
| 4018 |
union bdk_ocx_tlkx_mcd_ctl |
| 4019 |
{ |
| 4020 |
uint64_t u; |
| 4021 |
struct bdk_ocx_tlkx_mcd_ctl_s |
| 4022 |
{ |
| 4023 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4024 |
uint64_t reserved_3_63 : 61; |
| 4025 |
uint64_t tx_enb : 3; |
| 4026 |
#else |
| 4027 |
uint64_t tx_enb : 3; |
| 4028 |
uint64_t reserved_3_63 : 61; |
| 4029 |
#endif |
| 4030 |
} s; |
| 4031 |
|
| 4032 |
}; |
| 4033 |
typedef union bdk_ocx_tlkx_mcd_ctl bdk_ocx_tlkx_mcd_ctl_t; |
| 4034 |
|
| 4035 |
static inline uint64_t BDK_OCX_TLKX_MCD_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4036 |
static inline uint64_t BDK_OCX_TLKX_MCD_CTL(unsigned long a) |
| 4037 |
{ |
| 4038 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4039 |
return 0x87e011010020ll + 0x2000ll * ((a) & 0x3); |
| 4040 |
__bdk_csr_fatal("OCX_TLKX_MCD_CTL", 1, a, 0, 0, 0); |
| 4041 |
} |
| 4042 |
|
| 4043 |
#define typedef_BDK_OCX_TLKX_MCD_CTL(a) bdk_ocx_tlkx_mcd_ctl_t |
| 4044 |
#define bustype_BDK_OCX_TLKX_MCD_CTL(a) BDK_CSR_TYPE_RSL |
| 4045 |
#define basename_BDK_OCX_TLKX_MCD_CTL(a) "OCX_TLKX_MCD_CTL" |
| 4046 |
#define device_bar_BDK_OCX_TLKX_MCD_CTL(a) 0x0 |
| 4047 |
#define busnum_BDK_OCX_TLKX_MCD_CTL(a) (a) |
| 4048 |
#define arguments_BDK_OCX_TLKX_MCD_CTL(a) (a),-1,-1,-1 |
| 4049 |
|
| 4050 |
|
| 4051 |
|
| 4052 |
|
| 4053 |
|
| 4054 |
|
| 4055 |
union bdk_ocx_tlkx_protect |
| 4056 |
{ |
| 4057 |
uint64_t u; |
| 4058 |
struct bdk_ocx_tlkx_protect_s |
| 4059 |
{ |
| 4060 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4061 |
uint64_t reserved_8_63 : 56; |
| 4062 |
uint64_t wo_key : 1; |
| 4063 |
|
| 4064 |
uint64_t reserved_3_6 : 4; |
| 4065 |
uint64_t busy : 1; |
| 4066 |
|
| 4067 |
|
| 4068 |
|
| 4069 |
uint64_t load : 1; |
| 4070 |
|
| 4071 |
|
| 4072 |
uint64_t enable : 1; |
| 4073 |
|
| 4074 |
|
| 4075 |
|
| 4076 |
|
| 4077 |
#else |
| 4078 |
uint64_t enable : 1; |
| 4079 |
|
| 4080 |
|
| 4081 |
|
| 4082 |
|
| 4083 |
uint64_t load : 1; |
| 4084 |
|
| 4085 |
|
| 4086 |
uint64_t busy : 1; |
| 4087 |
|
| 4088 |
|
| 4089 |
|
| 4090 |
uint64_t reserved_3_6 : 4; |
| 4091 |
uint64_t wo_key : 1; |
| 4092 |
|
| 4093 |
uint64_t reserved_8_63 : 56; |
| 4094 |
#endif |
| 4095 |
} s; |
| 4096 |
|
| 4097 |
}; |
| 4098 |
typedef union bdk_ocx_tlkx_protect bdk_ocx_tlkx_protect_t; |
| 4099 |
|
| 4100 |
static inline uint64_t BDK_OCX_TLKX_PROTECT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4101 |
static inline uint64_t BDK_OCX_TLKX_PROTECT(unsigned long a) |
| 4102 |
{ |
| 4103 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4104 |
return 0x87e0110107c0ll + 0x2000ll * ((a) & 0x3); |
| 4105 |
__bdk_csr_fatal("OCX_TLKX_PROTECT", 1, a, 0, 0, 0); |
| 4106 |
} |
| 4107 |
|
| 4108 |
#define typedef_BDK_OCX_TLKX_PROTECT(a) bdk_ocx_tlkx_protect_t |
| 4109 |
#define bustype_BDK_OCX_TLKX_PROTECT(a) BDK_CSR_TYPE_RSL |
| 4110 |
#define basename_BDK_OCX_TLKX_PROTECT(a) "OCX_TLKX_PROTECT" |
| 4111 |
#define device_bar_BDK_OCX_TLKX_PROTECT(a) 0x0 |
| 4112 |
#define busnum_BDK_OCX_TLKX_PROTECT(a) (a) |
| 4113 |
#define arguments_BDK_OCX_TLKX_PROTECT(a) (a),-1,-1,-1 |
| 4114 |
|
| 4115 |
|
| 4116 |
|
| 4117 |
|
| 4118 |
|
| 4119 |
|
| 4120 |
union bdk_ocx_tlkx_rtn_vcx_cnt |
| 4121 |
{ |
| 4122 |
uint64_t u; |
| 4123 |
struct bdk_ocx_tlkx_rtn_vcx_cnt_s |
| 4124 |
{ |
| 4125 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4126 |
uint64_t reserved_16_63 : 48; |
| 4127 |
uint64_t count : 16; |
| 4128 |
#else |
| 4129 |
uint64_t count : 16; |
| 4130 |
uint64_t reserved_16_63 : 48; |
| 4131 |
#endif |
| 4132 |
} s; |
| 4133 |
|
| 4134 |
}; |
| 4135 |
typedef union bdk_ocx_tlkx_rtn_vcx_cnt bdk_ocx_tlkx_rtn_vcx_cnt_t; |
| 4136 |
|
| 4137 |
static inline uint64_t BDK_OCX_TLKX_RTN_VCX_CNT(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 4138 |
static inline uint64_t BDK_OCX_TLKX_RTN_VCX_CNT(unsigned long a, unsigned long b) |
| 4139 |
{ |
| 4140 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=13))) |
| 4141 |
return 0x87e011010300ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0xf); |
| 4142 |
__bdk_csr_fatal("OCX_TLKX_RTN_VCX_CNT", 2, a, b, 0, 0); |
| 4143 |
} |
| 4144 |
|
| 4145 |
#define typedef_BDK_OCX_TLKX_RTN_VCX_CNT(a,b) bdk_ocx_tlkx_rtn_vcx_cnt_t |
| 4146 |
#define bustype_BDK_OCX_TLKX_RTN_VCX_CNT(a,b) BDK_CSR_TYPE_RSL |
| 4147 |
#define basename_BDK_OCX_TLKX_RTN_VCX_CNT(a,b) "OCX_TLKX_RTN_VCX_CNT" |
| 4148 |
#define device_bar_BDK_OCX_TLKX_RTN_VCX_CNT(a,b) 0x0 |
| 4149 |
#define busnum_BDK_OCX_TLKX_RTN_VCX_CNT(a,b) (a) |
| 4150 |
#define arguments_BDK_OCX_TLKX_RTN_VCX_CNT(a,b) (a),(b),-1,-1 |
| 4151 |
|
| 4152 |
|
| 4153 |
|
| 4154 |
|
| 4155 |
|
| 4156 |
|
| 4157 |
union bdk_ocx_tlkx_salt_high |
| 4158 |
{ |
| 4159 |
uint64_t u; |
| 4160 |
struct bdk_ocx_tlkx_salt_high_s |
| 4161 |
{ |
| 4162 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4163 |
uint64_t data : 64; |
| 4164 |
|
| 4165 |
#else |
| 4166 |
uint64_t data : 64; |
| 4167 |
|
| 4168 |
#endif |
| 4169 |
} s; |
| 4170 |
|
| 4171 |
}; |
| 4172 |
typedef union bdk_ocx_tlkx_salt_high bdk_ocx_tlkx_salt_high_t; |
| 4173 |
|
| 4174 |
static inline uint64_t BDK_OCX_TLKX_SALT_HIGH(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4175 |
static inline uint64_t BDK_OCX_TLKX_SALT_HIGH(unsigned long a) |
| 4176 |
{ |
| 4177 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4178 |
return 0x87e011010788ll + 0x2000ll * ((a) & 0x3); |
| 4179 |
__bdk_csr_fatal("OCX_TLKX_SALT_HIGH", 1, a, 0, 0, 0); |
| 4180 |
} |
| 4181 |
|
| 4182 |
#define typedef_BDK_OCX_TLKX_SALT_HIGH(a) bdk_ocx_tlkx_salt_high_t |
| 4183 |
#define bustype_BDK_OCX_TLKX_SALT_HIGH(a) BDK_CSR_TYPE_RSL |
| 4184 |
#define basename_BDK_OCX_TLKX_SALT_HIGH(a) "OCX_TLKX_SALT_HIGH" |
| 4185 |
#define device_bar_BDK_OCX_TLKX_SALT_HIGH(a) 0x0 |
| 4186 |
#define busnum_BDK_OCX_TLKX_SALT_HIGH(a) (a) |
| 4187 |
#define arguments_BDK_OCX_TLKX_SALT_HIGH(a) (a),-1,-1,-1 |
| 4188 |
|
| 4189 |
|
| 4190 |
|
| 4191 |
|
| 4192 |
|
| 4193 |
|
| 4194 |
union bdk_ocx_tlkx_salt_low |
| 4195 |
{ |
| 4196 |
uint64_t u; |
| 4197 |
struct bdk_ocx_tlkx_salt_low_s |
| 4198 |
{ |
| 4199 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4200 |
uint64_t data : 64; |
| 4201 |
|
| 4202 |
#else |
| 4203 |
uint64_t data : 64; |
| 4204 |
|
| 4205 |
#endif |
| 4206 |
} s; |
| 4207 |
|
| 4208 |
}; |
| 4209 |
typedef union bdk_ocx_tlkx_salt_low bdk_ocx_tlkx_salt_low_t; |
| 4210 |
|
| 4211 |
static inline uint64_t BDK_OCX_TLKX_SALT_LOW(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4212 |
static inline uint64_t BDK_OCX_TLKX_SALT_LOW(unsigned long a) |
| 4213 |
{ |
| 4214 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4215 |
return 0x87e011010780ll + 0x2000ll * ((a) & 0x3); |
| 4216 |
__bdk_csr_fatal("OCX_TLKX_SALT_LOW", 1, a, 0, 0, 0); |
| 4217 |
} |
| 4218 |
|
| 4219 |
#define typedef_BDK_OCX_TLKX_SALT_LOW(a) bdk_ocx_tlkx_salt_low_t |
| 4220 |
#define bustype_BDK_OCX_TLKX_SALT_LOW(a) BDK_CSR_TYPE_RSL |
| 4221 |
#define basename_BDK_OCX_TLKX_SALT_LOW(a) "OCX_TLKX_SALT_LOW" |
| 4222 |
#define device_bar_BDK_OCX_TLKX_SALT_LOW(a) 0x0 |
| 4223 |
#define busnum_BDK_OCX_TLKX_SALT_LOW(a) (a) |
| 4224 |
#define arguments_BDK_OCX_TLKX_SALT_LOW(a) (a),-1,-1,-1 |
| 4225 |
|
| 4226 |
|
| 4227 |
|
| 4228 |
|
| 4229 |
|
| 4230 |
|
| 4231 |
union bdk_ocx_tlkx_stat_ctl |
| 4232 |
{ |
| 4233 |
uint64_t u; |
| 4234 |
struct bdk_ocx_tlkx_stat_ctl_s |
| 4235 |
{ |
| 4236 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4237 |
uint64_t reserved_2_63 : 62; |
| 4238 |
uint64_t clear : 1; |
| 4239 |
|
| 4240 |
uint64_t enable : 1; |
| 4241 |
|
| 4242 |
|
| 4243 |
#else |
| 4244 |
uint64_t enable : 1; |
| 4245 |
|
| 4246 |
|
| 4247 |
uint64_t clear : 1; |
| 4248 |
|
| 4249 |
uint64_t reserved_2_63 : 62; |
| 4250 |
#endif |
| 4251 |
} s; |
| 4252 |
|
| 4253 |
}; |
| 4254 |
typedef union bdk_ocx_tlkx_stat_ctl bdk_ocx_tlkx_stat_ctl_t; |
| 4255 |
|
| 4256 |
static inline uint64_t BDK_OCX_TLKX_STAT_CTL(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4257 |
static inline uint64_t BDK_OCX_TLKX_STAT_CTL(unsigned long a) |
| 4258 |
{ |
| 4259 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4260 |
return 0x87e011010040ll + 0x2000ll * ((a) & 0x3); |
| 4261 |
__bdk_csr_fatal("OCX_TLKX_STAT_CTL", 1, a, 0, 0, 0); |
| 4262 |
} |
| 4263 |
|
| 4264 |
#define typedef_BDK_OCX_TLKX_STAT_CTL(a) bdk_ocx_tlkx_stat_ctl_t |
| 4265 |
#define bustype_BDK_OCX_TLKX_STAT_CTL(a) BDK_CSR_TYPE_RSL |
| 4266 |
#define basename_BDK_OCX_TLKX_STAT_CTL(a) "OCX_TLKX_STAT_CTL" |
| 4267 |
#define device_bar_BDK_OCX_TLKX_STAT_CTL(a) 0x0 |
| 4268 |
#define busnum_BDK_OCX_TLKX_STAT_CTL(a) (a) |
| 4269 |
#define arguments_BDK_OCX_TLKX_STAT_CTL(a) (a),-1,-1,-1 |
| 4270 |
|
| 4271 |
|
| 4272 |
|
| 4273 |
|
| 4274 |
|
| 4275 |
|
| 4276 |
union bdk_ocx_tlkx_stat_data_cnt |
| 4277 |
{ |
| 4278 |
uint64_t u; |
| 4279 |
struct bdk_ocx_tlkx_stat_data_cnt_s |
| 4280 |
{ |
| 4281 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4282 |
uint64_t count : 64; |
| 4283 |
|
| 4284 |
#else |
| 4285 |
uint64_t count : 64; |
| 4286 |
|
| 4287 |
#endif |
| 4288 |
} s; |
| 4289 |
|
| 4290 |
}; |
| 4291 |
typedef union bdk_ocx_tlkx_stat_data_cnt bdk_ocx_tlkx_stat_data_cnt_t; |
| 4292 |
|
| 4293 |
static inline uint64_t BDK_OCX_TLKX_STAT_DATA_CNT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4294 |
static inline uint64_t BDK_OCX_TLKX_STAT_DATA_CNT(unsigned long a) |
| 4295 |
{ |
| 4296 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4297 |
return 0x87e011010408ll + 0x2000ll * ((a) & 0x3); |
| 4298 |
__bdk_csr_fatal("OCX_TLKX_STAT_DATA_CNT", 1, a, 0, 0, 0); |
| 4299 |
} |
| 4300 |
|
| 4301 |
#define typedef_BDK_OCX_TLKX_STAT_DATA_CNT(a) bdk_ocx_tlkx_stat_data_cnt_t |
| 4302 |
#define bustype_BDK_OCX_TLKX_STAT_DATA_CNT(a) BDK_CSR_TYPE_RSL |
| 4303 |
#define basename_BDK_OCX_TLKX_STAT_DATA_CNT(a) "OCX_TLKX_STAT_DATA_CNT" |
| 4304 |
#define device_bar_BDK_OCX_TLKX_STAT_DATA_CNT(a) 0x0 |
| 4305 |
#define busnum_BDK_OCX_TLKX_STAT_DATA_CNT(a) (a) |
| 4306 |
#define arguments_BDK_OCX_TLKX_STAT_DATA_CNT(a) (a),-1,-1,-1 |
| 4307 |
|
| 4308 |
|
| 4309 |
|
| 4310 |
|
| 4311 |
|
| 4312 |
|
| 4313 |
union bdk_ocx_tlkx_stat_err_cnt |
| 4314 |
{ |
| 4315 |
uint64_t u; |
| 4316 |
struct bdk_ocx_tlkx_stat_err_cnt_s |
| 4317 |
{ |
| 4318 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4319 |
uint64_t count : 64; |
| 4320 |
|
| 4321 |
#else |
| 4322 |
uint64_t count : 64; |
| 4323 |
|
| 4324 |
#endif |
| 4325 |
} s; |
| 4326 |
|
| 4327 |
}; |
| 4328 |
typedef union bdk_ocx_tlkx_stat_err_cnt bdk_ocx_tlkx_stat_err_cnt_t; |
| 4329 |
|
| 4330 |
static inline uint64_t BDK_OCX_TLKX_STAT_ERR_CNT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4331 |
static inline uint64_t BDK_OCX_TLKX_STAT_ERR_CNT(unsigned long a) |
| 4332 |
{ |
| 4333 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4334 |
return 0x87e011010420ll + 0x2000ll * ((a) & 0x3); |
| 4335 |
__bdk_csr_fatal("OCX_TLKX_STAT_ERR_CNT", 1, a, 0, 0, 0); |
| 4336 |
} |
| 4337 |
|
| 4338 |
#define typedef_BDK_OCX_TLKX_STAT_ERR_CNT(a) bdk_ocx_tlkx_stat_err_cnt_t |
| 4339 |
#define bustype_BDK_OCX_TLKX_STAT_ERR_CNT(a) BDK_CSR_TYPE_RSL |
| 4340 |
#define basename_BDK_OCX_TLKX_STAT_ERR_CNT(a) "OCX_TLKX_STAT_ERR_CNT" |
| 4341 |
#define device_bar_BDK_OCX_TLKX_STAT_ERR_CNT(a) 0x0 |
| 4342 |
#define busnum_BDK_OCX_TLKX_STAT_ERR_CNT(a) (a) |
| 4343 |
#define arguments_BDK_OCX_TLKX_STAT_ERR_CNT(a) (a),-1,-1,-1 |
| 4344 |
|
| 4345 |
|
| 4346 |
|
| 4347 |
|
| 4348 |
|
| 4349 |
|
| 4350 |
union bdk_ocx_tlkx_stat_idle_cnt |
| 4351 |
{ |
| 4352 |
uint64_t u; |
| 4353 |
struct bdk_ocx_tlkx_stat_idle_cnt_s |
| 4354 |
{ |
| 4355 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4356 |
uint64_t count : 64; |
| 4357 |
|
| 4358 |
#else |
| 4359 |
uint64_t count : 64; |
| 4360 |
|
| 4361 |
#endif |
| 4362 |
} s; |
| 4363 |
|
| 4364 |
}; |
| 4365 |
typedef union bdk_ocx_tlkx_stat_idle_cnt bdk_ocx_tlkx_stat_idle_cnt_t; |
| 4366 |
|
| 4367 |
static inline uint64_t BDK_OCX_TLKX_STAT_IDLE_CNT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4368 |
static inline uint64_t BDK_OCX_TLKX_STAT_IDLE_CNT(unsigned long a) |
| 4369 |
{ |
| 4370 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4371 |
return 0x87e011010400ll + 0x2000ll * ((a) & 0x3); |
| 4372 |
__bdk_csr_fatal("OCX_TLKX_STAT_IDLE_CNT", 1, a, 0, 0, 0); |
| 4373 |
} |
| 4374 |
|
| 4375 |
#define typedef_BDK_OCX_TLKX_STAT_IDLE_CNT(a) bdk_ocx_tlkx_stat_idle_cnt_t |
| 4376 |
#define bustype_BDK_OCX_TLKX_STAT_IDLE_CNT(a) BDK_CSR_TYPE_RSL |
| 4377 |
#define basename_BDK_OCX_TLKX_STAT_IDLE_CNT(a) "OCX_TLKX_STAT_IDLE_CNT" |
| 4378 |
#define device_bar_BDK_OCX_TLKX_STAT_IDLE_CNT(a) 0x0 |
| 4379 |
#define busnum_BDK_OCX_TLKX_STAT_IDLE_CNT(a) (a) |
| 4380 |
#define arguments_BDK_OCX_TLKX_STAT_IDLE_CNT(a) (a),-1,-1,-1 |
| 4381 |
|
| 4382 |
|
| 4383 |
|
| 4384 |
|
| 4385 |
|
| 4386 |
|
| 4387 |
union bdk_ocx_tlkx_stat_matx_cnt |
| 4388 |
{ |
| 4389 |
uint64_t u; |
| 4390 |
struct bdk_ocx_tlkx_stat_matx_cnt_s |
| 4391 |
{ |
| 4392 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4393 |
uint64_t count : 64; |
| 4394 |
|
| 4395 |
#else |
| 4396 |
uint64_t count : 64; |
| 4397 |
|
| 4398 |
#endif |
| 4399 |
} s; |
| 4400 |
|
| 4401 |
}; |
| 4402 |
typedef union bdk_ocx_tlkx_stat_matx_cnt bdk_ocx_tlkx_stat_matx_cnt_t; |
| 4403 |
|
| 4404 |
static inline uint64_t BDK_OCX_TLKX_STAT_MATX_CNT(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 4405 |
static inline uint64_t BDK_OCX_TLKX_STAT_MATX_CNT(unsigned long a, unsigned long b) |
| 4406 |
{ |
| 4407 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=3))) |
| 4408 |
return 0x87e011010440ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0x3); |
| 4409 |
__bdk_csr_fatal("OCX_TLKX_STAT_MATX_CNT", 2, a, b, 0, 0); |
| 4410 |
} |
| 4411 |
|
| 4412 |
#define typedef_BDK_OCX_TLKX_STAT_MATX_CNT(a,b) bdk_ocx_tlkx_stat_matx_cnt_t |
| 4413 |
#define bustype_BDK_OCX_TLKX_STAT_MATX_CNT(a,b) BDK_CSR_TYPE_RSL |
| 4414 |
#define basename_BDK_OCX_TLKX_STAT_MATX_CNT(a,b) "OCX_TLKX_STAT_MATX_CNT" |
| 4415 |
#define device_bar_BDK_OCX_TLKX_STAT_MATX_CNT(a,b) 0x0 |
| 4416 |
#define busnum_BDK_OCX_TLKX_STAT_MATX_CNT(a,b) (a) |
| 4417 |
#define arguments_BDK_OCX_TLKX_STAT_MATX_CNT(a,b) (a),(b),-1,-1 |
| 4418 |
|
| 4419 |
|
| 4420 |
|
| 4421 |
|
| 4422 |
|
| 4423 |
|
| 4424 |
union bdk_ocx_tlkx_stat_matchx |
| 4425 |
{ |
| 4426 |
uint64_t u; |
| 4427 |
struct bdk_ocx_tlkx_stat_matchx_s |
| 4428 |
{ |
| 4429 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4430 |
uint64_t reserved_25_63 : 39; |
| 4431 |
uint64_t mask : 9; |
| 4432 |
uint64_t reserved_9_15 : 7; |
| 4433 |
uint64_t cmd : 5; |
| 4434 |
|
| 4435 |
|
| 4436 |
uint64_t vc : 4; |
| 4437 |
|
| 4438 |
|
| 4439 |
|
| 4440 |
#else |
| 4441 |
uint64_t vc : 4; |
| 4442 |
|
| 4443 |
|
| 4444 |
|
| 4445 |
uint64_t cmd : 5; |
| 4446 |
|
| 4447 |
|
| 4448 |
uint64_t reserved_9_15 : 7; |
| 4449 |
uint64_t mask : 9; |
| 4450 |
uint64_t reserved_25_63 : 39; |
| 4451 |
#endif |
| 4452 |
} s; |
| 4453 |
|
| 4454 |
}; |
| 4455 |
typedef union bdk_ocx_tlkx_stat_matchx bdk_ocx_tlkx_stat_matchx_t; |
| 4456 |
|
| 4457 |
static inline uint64_t BDK_OCX_TLKX_STAT_MATCHX(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 4458 |
static inline uint64_t BDK_OCX_TLKX_STAT_MATCHX(unsigned long a, unsigned long b) |
| 4459 |
{ |
| 4460 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=3))) |
| 4461 |
return 0x87e011010080ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0x3); |
| 4462 |
__bdk_csr_fatal("OCX_TLKX_STAT_MATCHX", 2, a, b, 0, 0); |
| 4463 |
} |
| 4464 |
|
| 4465 |
#define typedef_BDK_OCX_TLKX_STAT_MATCHX(a,b) bdk_ocx_tlkx_stat_matchx_t |
| 4466 |
#define bustype_BDK_OCX_TLKX_STAT_MATCHX(a,b) BDK_CSR_TYPE_RSL |
| 4467 |
#define basename_BDK_OCX_TLKX_STAT_MATCHX(a,b) "OCX_TLKX_STAT_MATCHX" |
| 4468 |
#define device_bar_BDK_OCX_TLKX_STAT_MATCHX(a,b) 0x0 |
| 4469 |
#define busnum_BDK_OCX_TLKX_STAT_MATCHX(a,b) (a) |
| 4470 |
#define arguments_BDK_OCX_TLKX_STAT_MATCHX(a,b) (a),(b),-1,-1 |
| 4471 |
|
| 4472 |
|
| 4473 |
|
| 4474 |
|
| 4475 |
|
| 4476 |
|
| 4477 |
union bdk_ocx_tlkx_stat_retry_cnt |
| 4478 |
{ |
| 4479 |
uint64_t u; |
| 4480 |
struct bdk_ocx_tlkx_stat_retry_cnt_s |
| 4481 |
{ |
| 4482 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4483 |
uint64_t count : 64; |
| 4484 |
|
| 4485 |
|
| 4486 |
#else |
| 4487 |
uint64_t count : 64; |
| 4488 |
|
| 4489 |
|
| 4490 |
#endif |
| 4491 |
} s; |
| 4492 |
|
| 4493 |
}; |
| 4494 |
typedef union bdk_ocx_tlkx_stat_retry_cnt bdk_ocx_tlkx_stat_retry_cnt_t; |
| 4495 |
|
| 4496 |
static inline uint64_t BDK_OCX_TLKX_STAT_RETRY_CNT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4497 |
static inline uint64_t BDK_OCX_TLKX_STAT_RETRY_CNT(unsigned long a) |
| 4498 |
{ |
| 4499 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4500 |
return 0x87e011010418ll + 0x2000ll * ((a) & 0x3); |
| 4501 |
__bdk_csr_fatal("OCX_TLKX_STAT_RETRY_CNT", 1, a, 0, 0, 0); |
| 4502 |
} |
| 4503 |
|
| 4504 |
#define typedef_BDK_OCX_TLKX_STAT_RETRY_CNT(a) bdk_ocx_tlkx_stat_retry_cnt_t |
| 4505 |
#define bustype_BDK_OCX_TLKX_STAT_RETRY_CNT(a) BDK_CSR_TYPE_RSL |
| 4506 |
#define basename_BDK_OCX_TLKX_STAT_RETRY_CNT(a) "OCX_TLKX_STAT_RETRY_CNT" |
| 4507 |
#define device_bar_BDK_OCX_TLKX_STAT_RETRY_CNT(a) 0x0 |
| 4508 |
#define busnum_BDK_OCX_TLKX_STAT_RETRY_CNT(a) (a) |
| 4509 |
#define arguments_BDK_OCX_TLKX_STAT_RETRY_CNT(a) (a),-1,-1,-1 |
| 4510 |
|
| 4511 |
|
| 4512 |
|
| 4513 |
|
| 4514 |
|
| 4515 |
|
| 4516 |
union bdk_ocx_tlkx_stat_sync_cnt |
| 4517 |
{ |
| 4518 |
uint64_t u; |
| 4519 |
struct bdk_ocx_tlkx_stat_sync_cnt_s |
| 4520 |
{ |
| 4521 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4522 |
uint64_t count : 64; |
| 4523 |
|
| 4524 |
#else |
| 4525 |
uint64_t count : 64; |
| 4526 |
|
| 4527 |
#endif |
| 4528 |
} s; |
| 4529 |
|
| 4530 |
}; |
| 4531 |
typedef union bdk_ocx_tlkx_stat_sync_cnt bdk_ocx_tlkx_stat_sync_cnt_t; |
| 4532 |
|
| 4533 |
static inline uint64_t BDK_OCX_TLKX_STAT_SYNC_CNT(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4534 |
static inline uint64_t BDK_OCX_TLKX_STAT_SYNC_CNT(unsigned long a) |
| 4535 |
{ |
| 4536 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4537 |
return 0x87e011010410ll + 0x2000ll * ((a) & 0x3); |
| 4538 |
__bdk_csr_fatal("OCX_TLKX_STAT_SYNC_CNT", 1, a, 0, 0, 0); |
| 4539 |
} |
| 4540 |
|
| 4541 |
#define typedef_BDK_OCX_TLKX_STAT_SYNC_CNT(a) bdk_ocx_tlkx_stat_sync_cnt_t |
| 4542 |
#define bustype_BDK_OCX_TLKX_STAT_SYNC_CNT(a) BDK_CSR_TYPE_RSL |
| 4543 |
#define basename_BDK_OCX_TLKX_STAT_SYNC_CNT(a) "OCX_TLKX_STAT_SYNC_CNT" |
| 4544 |
#define device_bar_BDK_OCX_TLKX_STAT_SYNC_CNT(a) 0x0 |
| 4545 |
#define busnum_BDK_OCX_TLKX_STAT_SYNC_CNT(a) (a) |
| 4546 |
#define arguments_BDK_OCX_TLKX_STAT_SYNC_CNT(a) (a),-1,-1,-1 |
| 4547 |
|
| 4548 |
|
| 4549 |
|
| 4550 |
|
| 4551 |
|
| 4552 |
|
| 4553 |
union bdk_ocx_tlkx_stat_vcx_cmd |
| 4554 |
{ |
| 4555 |
uint64_t u; |
| 4556 |
struct bdk_ocx_tlkx_stat_vcx_cmd_s |
| 4557 |
{ |
| 4558 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4559 |
uint64_t count : 64; |
| 4560 |
|
| 4561 |
|
| 4562 |
#else |
| 4563 |
uint64_t count : 64; |
| 4564 |
|
| 4565 |
|
| 4566 |
#endif |
| 4567 |
} s; |
| 4568 |
|
| 4569 |
}; |
| 4570 |
typedef union bdk_ocx_tlkx_stat_vcx_cmd bdk_ocx_tlkx_stat_vcx_cmd_t; |
| 4571 |
|
| 4572 |
static inline uint64_t BDK_OCX_TLKX_STAT_VCX_CMD(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 4573 |
static inline uint64_t BDK_OCX_TLKX_STAT_VCX_CMD(unsigned long a, unsigned long b) |
| 4574 |
{ |
| 4575 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=5))) |
| 4576 |
return 0x87e011010480ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0x7); |
| 4577 |
__bdk_csr_fatal("OCX_TLKX_STAT_VCX_CMD", 2, a, b, 0, 0); |
| 4578 |
} |
| 4579 |
|
| 4580 |
#define typedef_BDK_OCX_TLKX_STAT_VCX_CMD(a,b) bdk_ocx_tlkx_stat_vcx_cmd_t |
| 4581 |
#define bustype_BDK_OCX_TLKX_STAT_VCX_CMD(a,b) BDK_CSR_TYPE_RSL |
| 4582 |
#define basename_BDK_OCX_TLKX_STAT_VCX_CMD(a,b) "OCX_TLKX_STAT_VCX_CMD" |
| 4583 |
#define device_bar_BDK_OCX_TLKX_STAT_VCX_CMD(a,b) 0x0 |
| 4584 |
#define busnum_BDK_OCX_TLKX_STAT_VCX_CMD(a,b) (a) |
| 4585 |
#define arguments_BDK_OCX_TLKX_STAT_VCX_CMD(a,b) (a),(b),-1,-1 |
| 4586 |
|
| 4587 |
|
| 4588 |
|
| 4589 |
|
| 4590 |
|
| 4591 |
|
| 4592 |
union bdk_ocx_tlkx_stat_vcx_con |
| 4593 |
{ |
| 4594 |
uint64_t u; |
| 4595 |
struct bdk_ocx_tlkx_stat_vcx_con_s |
| 4596 |
{ |
| 4597 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4598 |
uint64_t count : 64; |
| 4599 |
|
| 4600 |
|
| 4601 |
|
| 4602 |
#else |
| 4603 |
uint64_t count : 64; |
| 4604 |
|
| 4605 |
|
| 4606 |
|
| 4607 |
#endif |
| 4608 |
} s; |
| 4609 |
|
| 4610 |
}; |
| 4611 |
typedef union bdk_ocx_tlkx_stat_vcx_con bdk_ocx_tlkx_stat_vcx_con_t; |
| 4612 |
|
| 4613 |
static inline uint64_t BDK_OCX_TLKX_STAT_VCX_CON(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 4614 |
static inline uint64_t BDK_OCX_TLKX_STAT_VCX_CON(unsigned long a, unsigned long b) |
| 4615 |
{ |
| 4616 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=13))) |
| 4617 |
return 0x87e011010580ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0xf); |
| 4618 |
__bdk_csr_fatal("OCX_TLKX_STAT_VCX_CON", 2, a, b, 0, 0); |
| 4619 |
} |
| 4620 |
|
| 4621 |
#define typedef_BDK_OCX_TLKX_STAT_VCX_CON(a,b) bdk_ocx_tlkx_stat_vcx_con_t |
| 4622 |
#define bustype_BDK_OCX_TLKX_STAT_VCX_CON(a,b) BDK_CSR_TYPE_RSL |
| 4623 |
#define basename_BDK_OCX_TLKX_STAT_VCX_CON(a,b) "OCX_TLKX_STAT_VCX_CON" |
| 4624 |
#define device_bar_BDK_OCX_TLKX_STAT_VCX_CON(a,b) 0x0 |
| 4625 |
#define busnum_BDK_OCX_TLKX_STAT_VCX_CON(a,b) (a) |
| 4626 |
#define arguments_BDK_OCX_TLKX_STAT_VCX_CON(a,b) (a),(b),-1,-1 |
| 4627 |
|
| 4628 |
|
| 4629 |
|
| 4630 |
|
| 4631 |
|
| 4632 |
|
| 4633 |
union bdk_ocx_tlkx_stat_vcx_pkt |
| 4634 |
{ |
| 4635 |
uint64_t u; |
| 4636 |
struct bdk_ocx_tlkx_stat_vcx_pkt_s |
| 4637 |
{ |
| 4638 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4639 |
uint64_t count : 64; |
| 4640 |
|
| 4641 |
#else |
| 4642 |
uint64_t count : 64; |
| 4643 |
|
| 4644 |
#endif |
| 4645 |
} s; |
| 4646 |
|
| 4647 |
}; |
| 4648 |
typedef union bdk_ocx_tlkx_stat_vcx_pkt bdk_ocx_tlkx_stat_vcx_pkt_t; |
| 4649 |
|
| 4650 |
static inline uint64_t BDK_OCX_TLKX_STAT_VCX_PKT(unsigned long a, unsigned long b) __attribute__ ((pure, always_inline)); |
| 4651 |
static inline uint64_t BDK_OCX_TLKX_STAT_VCX_PKT(unsigned long a, unsigned long b) |
| 4652 |
{ |
| 4653 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && ((a<=2) && (b<=13))) |
| 4654 |
return 0x87e011010500ll + 0x2000ll * ((a) & 0x3) + 8ll * ((b) & 0xf); |
| 4655 |
__bdk_csr_fatal("OCX_TLKX_STAT_VCX_PKT", 2, a, b, 0, 0); |
| 4656 |
} |
| 4657 |
|
| 4658 |
#define typedef_BDK_OCX_TLKX_STAT_VCX_PKT(a,b) bdk_ocx_tlkx_stat_vcx_pkt_t |
| 4659 |
#define bustype_BDK_OCX_TLKX_STAT_VCX_PKT(a,b) BDK_CSR_TYPE_RSL |
| 4660 |
#define basename_BDK_OCX_TLKX_STAT_VCX_PKT(a,b) "OCX_TLKX_STAT_VCX_PKT" |
| 4661 |
#define device_bar_BDK_OCX_TLKX_STAT_VCX_PKT(a,b) 0x0 |
| 4662 |
#define busnum_BDK_OCX_TLKX_STAT_VCX_PKT(a,b) (a) |
| 4663 |
#define arguments_BDK_OCX_TLKX_STAT_VCX_PKT(a,b) (a),(b),-1,-1 |
| 4664 |
|
| 4665 |
|
| 4666 |
|
| 4667 |
|
| 4668 |
|
| 4669 |
|
| 4670 |
union bdk_ocx_tlkx_status |
| 4671 |
{ |
| 4672 |
uint64_t u; |
| 4673 |
struct bdk_ocx_tlkx_status_s |
| 4674 |
{ |
| 4675 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4676 |
uint64_t reserved_56_63 : 8; |
| 4677 |
uint64_t rply_fptr : 8; |
| 4678 |
uint64_t tx_seq : 8; |
| 4679 |
uint64_t rx_seq : 8; |
| 4680 |
uint64_t reserved_23_31 : 9; |
| 4681 |
uint64_t ackcnt : 7; |
| 4682 |
uint64_t reserved_9_15 : 7; |
| 4683 |
uint64_t drop : 1; |
| 4684 |
uint64_t sm : 6; |
| 4685 |
|
| 4686 |
|
| 4687 |
|
| 4688 |
|
| 4689 |
|
| 4690 |
|
| 4691 |
uint64_t cnt : 2; |
| 4692 |
#else |
| 4693 |
uint64_t cnt : 2; |
| 4694 |
uint64_t sm : 6; |
| 4695 |
|
| 4696 |
|
| 4697 |
|
| 4698 |
|
| 4699 |
|
| 4700 |
|
| 4701 |
uint64_t drop : 1; |
| 4702 |
uint64_t reserved_9_15 : 7; |
| 4703 |
uint64_t ackcnt : 7; |
| 4704 |
uint64_t reserved_23_31 : 9; |
| 4705 |
uint64_t rx_seq : 8; |
| 4706 |
uint64_t tx_seq : 8; |
| 4707 |
uint64_t rply_fptr : 8; |
| 4708 |
uint64_t reserved_56_63 : 8; |
| 4709 |
#endif |
| 4710 |
} s; |
| 4711 |
|
| 4712 |
}; |
| 4713 |
typedef union bdk_ocx_tlkx_status bdk_ocx_tlkx_status_t; |
| 4714 |
|
| 4715 |
static inline uint64_t BDK_OCX_TLKX_STATUS(unsigned long a) __attribute__ ((pure, always_inline)); |
| 4716 |
static inline uint64_t BDK_OCX_TLKX_STATUS(unsigned long a) |
| 4717 |
{ |
| 4718 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX) && (a<=2)) |
| 4719 |
return 0x87e011010000ll + 0x2000ll * ((a) & 0x3); |
| 4720 |
__bdk_csr_fatal("OCX_TLKX_STATUS", 1, a, 0, 0, 0); |
| 4721 |
} |
| 4722 |
|
| 4723 |
#define typedef_BDK_OCX_TLKX_STATUS(a) bdk_ocx_tlkx_status_t |
| 4724 |
#define bustype_BDK_OCX_TLKX_STATUS(a) BDK_CSR_TYPE_RSL |
| 4725 |
#define basename_BDK_OCX_TLKX_STATUS(a) "OCX_TLKX_STATUS" |
| 4726 |
#define device_bar_BDK_OCX_TLKX_STATUS(a) 0x0 |
| 4727 |
#define busnum_BDK_OCX_TLKX_STATUS(a) (a) |
| 4728 |
#define arguments_BDK_OCX_TLKX_STATUS(a) (a),-1,-1,-1 |
| 4729 |
|
| 4730 |
|
| 4731 |
|
| 4732 |
|
| 4733 |
|
| 4734 |
|
| 4735 |
|
| 4736 |
|
| 4737 |
|
| 4738 |
|
| 4739 |
|
| 4740 |
|
| 4741 |
union bdk_ocx_win_cmd |
| 4742 |
{ |
| 4743 |
uint64_t u; |
| 4744 |
struct bdk_ocx_win_cmd_s |
| 4745 |
{ |
| 4746 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4747 |
uint64_t wr_mask : 8; |
| 4748 |
|
| 4749 |
|
| 4750 |
|
| 4751 |
uint64_t reserved_54_55 : 2; |
| 4752 |
uint64_t el : 2; |
| 4753 |
|
| 4754 |
uint64_t nsecure : 1; |
| 4755 |
|
| 4756 |
uint64_t ld_cmd : 2; |
| 4757 |
|
| 4758 |
|
| 4759 |
|
| 4760 |
|
| 4761 |
uint64_t ld_op : 1; |
| 4762 |
|
| 4763 |
|
| 4764 |
uint64_t addr : 48; |
| 4765 |
|
| 4766 |
|
| 4767 |
|
| 4768 |
|
| 4769 |
|
| 4770 |
|
| 4771 |
|
| 4772 |
|
| 4773 |
|
| 4774 |
|
| 4775 |
|
| 4776 |
|
| 4777 |
|
| 4778 |
|
| 4779 |
#else |
| 4780 |
uint64_t addr : 48; |
| 4781 |
|
| 4782 |
|
| 4783 |
|
| 4784 |
|
| 4785 |
|
| 4786 |
|
| 4787 |
|
| 4788 |
|
| 4789 |
|
| 4790 |
|
| 4791 |
|
| 4792 |
|
| 4793 |
|
| 4794 |
|
| 4795 |
uint64_t ld_op : 1; |
| 4796 |
|
| 4797 |
|
| 4798 |
uint64_t ld_cmd : 2; |
| 4799 |
|
| 4800 |
|
| 4801 |
|
| 4802 |
|
| 4803 |
uint64_t nsecure : 1; |
| 4804 |
|
| 4805 |
uint64_t el : 2; |
| 4806 |
|
| 4807 |
uint64_t reserved_54_55 : 2; |
| 4808 |
uint64_t wr_mask : 8; |
| 4809 |
|
| 4810 |
|
| 4811 |
|
| 4812 |
#endif |
| 4813 |
} s; |
| 4814 |
|
| 4815 |
}; |
| 4816 |
typedef union bdk_ocx_win_cmd bdk_ocx_win_cmd_t; |
| 4817 |
|
| 4818 |
#define BDK_OCX_WIN_CMD BDK_OCX_WIN_CMD_FUNC() |
| 4819 |
static inline uint64_t BDK_OCX_WIN_CMD_FUNC(void) __attribute__ ((pure, always_inline)); |
| 4820 |
static inline uint64_t BDK_OCX_WIN_CMD_FUNC(void) |
| 4821 |
{ |
| 4822 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 4823 |
return 0x87e011000048ll; |
| 4824 |
__bdk_csr_fatal("OCX_WIN_CMD", 0, 0, 0, 0, 0); |
| 4825 |
} |
| 4826 |
|
| 4827 |
#define typedef_BDK_OCX_WIN_CMD bdk_ocx_win_cmd_t |
| 4828 |
#define bustype_BDK_OCX_WIN_CMD BDK_CSR_TYPE_RSL |
| 4829 |
#define basename_BDK_OCX_WIN_CMD "OCX_WIN_CMD" |
| 4830 |
#define device_bar_BDK_OCX_WIN_CMD 0x0 |
| 4831 |
#define busnum_BDK_OCX_WIN_CMD 0 |
| 4832 |
#define arguments_BDK_OCX_WIN_CMD -1,-1,-1,-1 |
| 4833 |
|
| 4834 |
|
| 4835 |
|
| 4836 |
|
| 4837 |
|
| 4838 |
|
| 4839 |
|
| 4840 |
|
| 4841 |
union bdk_ocx_win_rd_data |
| 4842 |
{ |
| 4843 |
uint64_t u; |
| 4844 |
struct bdk_ocx_win_rd_data_s |
| 4845 |
{ |
| 4846 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4847 |
uint64_t data : 64; |
| 4848 |
#else |
| 4849 |
uint64_t data : 64; |
| 4850 |
#endif |
| 4851 |
} s; |
| 4852 |
|
| 4853 |
}; |
| 4854 |
typedef union bdk_ocx_win_rd_data bdk_ocx_win_rd_data_t; |
| 4855 |
|
| 4856 |
#define BDK_OCX_WIN_RD_DATA BDK_OCX_WIN_RD_DATA_FUNC() |
| 4857 |
static inline uint64_t BDK_OCX_WIN_RD_DATA_FUNC(void) __attribute__ ((pure, always_inline)); |
| 4858 |
static inline uint64_t BDK_OCX_WIN_RD_DATA_FUNC(void) |
| 4859 |
{ |
| 4860 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 4861 |
return 0x87e011000050ll; |
| 4862 |
__bdk_csr_fatal("OCX_WIN_RD_DATA", 0, 0, 0, 0, 0); |
| 4863 |
} |
| 4864 |
|
| 4865 |
#define typedef_BDK_OCX_WIN_RD_DATA bdk_ocx_win_rd_data_t |
| 4866 |
#define bustype_BDK_OCX_WIN_RD_DATA BDK_CSR_TYPE_RSL |
| 4867 |
#define basename_BDK_OCX_WIN_RD_DATA "OCX_WIN_RD_DATA" |
| 4868 |
#define device_bar_BDK_OCX_WIN_RD_DATA 0x0 |
| 4869 |
#define busnum_BDK_OCX_WIN_RD_DATA 0 |
| 4870 |
#define arguments_BDK_OCX_WIN_RD_DATA -1,-1,-1,-1 |
| 4871 |
|
| 4872 |
|
| 4873 |
|
| 4874 |
|
| 4875 |
|
| 4876 |
|
| 4877 |
|
| 4878 |
union bdk_ocx_win_timer |
| 4879 |
{ |
| 4880 |
uint64_t u; |
| 4881 |
struct bdk_ocx_win_timer_s |
| 4882 |
{ |
| 4883 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4884 |
uint64_t reserved_16_63 : 48; |
| 4885 |
uint64_t tout : 14; |
| 4886 |
uint64_t tout1 : 2; |
| 4887 |
#else |
| 4888 |
uint64_t tout1 : 2; |
| 4889 |
uint64_t tout : 14; |
| 4890 |
uint64_t reserved_16_63 : 48; |
| 4891 |
#endif |
| 4892 |
} s; |
| 4893 |
|
| 4894 |
}; |
| 4895 |
typedef union bdk_ocx_win_timer bdk_ocx_win_timer_t; |
| 4896 |
|
| 4897 |
#define BDK_OCX_WIN_TIMER BDK_OCX_WIN_TIMER_FUNC() |
| 4898 |
static inline uint64_t BDK_OCX_WIN_TIMER_FUNC(void) __attribute__ ((pure, always_inline)); |
| 4899 |
static inline uint64_t BDK_OCX_WIN_TIMER_FUNC(void) |
| 4900 |
{ |
| 4901 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 4902 |
return 0x87e011000058ll; |
| 4903 |
__bdk_csr_fatal("OCX_WIN_TIMER", 0, 0, 0, 0, 0); |
| 4904 |
} |
| 4905 |
|
| 4906 |
#define typedef_BDK_OCX_WIN_TIMER bdk_ocx_win_timer_t |
| 4907 |
#define bustype_BDK_OCX_WIN_TIMER BDK_CSR_TYPE_RSL |
| 4908 |
#define basename_BDK_OCX_WIN_TIMER "OCX_WIN_TIMER" |
| 4909 |
#define device_bar_BDK_OCX_WIN_TIMER 0x0 |
| 4910 |
#define busnum_BDK_OCX_WIN_TIMER 0 |
| 4911 |
#define arguments_BDK_OCX_WIN_TIMER -1,-1,-1,-1 |
| 4912 |
|
| 4913 |
|
| 4914 |
|
| 4915 |
|
| 4916 |
|
| 4917 |
|
| 4918 |
|
| 4919 |
|
| 4920 |
union bdk_ocx_win_wr_data |
| 4921 |
{ |
| 4922 |
uint64_t u; |
| 4923 |
struct bdk_ocx_win_wr_data_s |
| 4924 |
{ |
| 4925 |
#if __BYTE_ORDER == __BIG_ENDIAN |
| 4926 |
uint64_t wr_data : 64; |
| 4927 |
#else |
| 4928 |
uint64_t wr_data : 64; |
| 4929 |
#endif |
| 4930 |
} s; |
| 4931 |
|
| 4932 |
}; |
| 4933 |
typedef union bdk_ocx_win_wr_data bdk_ocx_win_wr_data_t; |
| 4934 |
|
| 4935 |
#define BDK_OCX_WIN_WR_DATA BDK_OCX_WIN_WR_DATA_FUNC() |
| 4936 |
static inline uint64_t BDK_OCX_WIN_WR_DATA_FUNC(void) __attribute__ ((pure, always_inline)); |
| 4937 |
static inline uint64_t BDK_OCX_WIN_WR_DATA_FUNC(void) |
| 4938 |
{ |
| 4939 |
if (CAVIUM_IS_MODEL(CAVIUM_CN88XX)) |
| 4940 |
return 0x87e011000040ll; |
| 4941 |
__bdk_csr_fatal("OCX_WIN_WR_DATA", 0, 0, 0, 0, 0); |
| 4942 |
} |
| 4943 |
|
| 4944 |
#define typedef_BDK_OCX_WIN_WR_DATA bdk_ocx_win_wr_data_t |
| 4945 |
#define bustype_BDK_OCX_WIN_WR_DATA BDK_CSR_TYPE_RSL |
| 4946 |
#define basename_BDK_OCX_WIN_WR_DATA "OCX_WIN_WR_DATA" |
| 4947 |
#define device_bar_BDK_OCX_WIN_WR_DATA 0x0 |
| 4948 |
#define busnum_BDK_OCX_WIN_WR_DATA 0 |
| 4949 |
#define arguments_BDK_OCX_WIN_WR_DATA -1,-1,-1,-1 |
| 4950 |
|
| 4951 |
#endif |