1 #ifndef __ODY_CSRS_GTI_H__ 2 #define __ODY_CSRS_GTI_H__ 3 /* This file is auto-generated. Do not edit */ 4 5 /***********************license start*********************************** 6 * Copyright (C) 2021-2026 Marvell. 7 * SPDX-License-Identifier: BSD-3-Clause 8 * https://spdx.org/licenses 9 ***********************license end**************************************/ 10 11 12 /** 13 * @file 14 * 15 * Configuration and status register (CSR) address and type definitions for 16 * GTI. 17 * 18 * This file is auto generated. Do not edit. 19 * 20 */ 21 22 /** 23 * Enumeration gti_bar_e 24 * 25 * GTI Base Address Register Enumeration 26 * Enumerates the base address registers. 27 */ 28 #define ODY_GTI_BAR_E_GTI_PF_BAR0 (0x802000000000ll) 29 #define ODY_GTI_BAR_E_GTI_PF_BAR0_SIZE 0x100000ull 30 #define ODY_GTI_BAR_E_GTI_PF_BAR4 (0x80200f000000ll) 31 #define ODY_GTI_BAR_E_GTI_PF_BAR4_SIZE 0x100000ull 32 33 /** 34 * Enumeration gti_int_vec_e 35 * 36 * GTI MSI-X Vector Enumeration 37 * Enumerates the MSI-X interrupt vectors. 38 */ 39 #define ODY_GTI_INT_VEC_E_CORE_WDOG0X_DEL3T(a) (0xa + (a)) 40 #define ODY_GTI_INT_VEC_E_CORE_WDOG0X_INT(a) (0x5c + (a)) 41 #define ODY_GTI_INT_VEC_E_CORE_WDOG1X_DEL3T(a) (0x4a + (a)) 42 #define ODY_GTI_INT_VEC_E_CORE_WDOG1X_INT(a) (0x9c + (a)) 43 #define ODY_GTI_INT_VEC_E_ERROR (8) 44 #define ODY_GTI_INT_VEC_E_MAILBOX_RX (7) 45 #define ODY_GTI_INT_VEC_E_SECURE_WATCHDOG (4) 46 #define ODY_GTI_INT_VEC_E_SECURE_WATCHDOG_CLEAR (5) 47 #define ODY_GTI_INT_VEC_E_SPARE (9) 48 #define ODY_GTI_INT_VEC_E_TX_TIMESTAMP (6) 49 #define ODY_GTI_INT_VEC_E_WAKE (0) 50 #define ODY_GTI_INT_VEC_E_WAKE_CLEAR (1) 51 #define ODY_GTI_INT_VEC_E_WATCHDOG (2) 52 #define ODY_GTI_INT_VEC_E_WATCHDOG_CLEAR (3) 53 54 /** 55 * Register (NCB) gti_active_pc 56 * 57 * GTI Active Cycles Register 58 */ 59 union ody_gti_active_pc { 60 uint64_t u; 61 struct ody_gti_active_pc_s { 62 uint64_t act_cyc : 64; 63 } s; 64 /* struct ody_gti_active_pc_s cn; */ 65 }; 66 typedef union ody_gti_active_pc ody_gti_active_pc_t; 67 68 #define ODY_GTI_ACTIVE_PC ODY_GTI_ACTIVE_PC_FUNC() 69 static inline uint64_t ODY_GTI_ACTIVE_PC_FUNC(void) __attribute__ ((pure, always_inline)); 70 static inline uint64_t ODY_GTI_ACTIVE_PC_FUNC(void) 71 { 72 return 0x802000000108ll; 73 } 74 75 #define typedef_ODY_GTI_ACTIVE_PC ody_gti_active_pc_t 76 #define bustype_ODY_GTI_ACTIVE_PC CSR_TYPE_NCB 77 #define basename_ODY_GTI_ACTIVE_PC "GTI_ACTIVE_PC" 78 #define device_bar_ODY_GTI_ACTIVE_PC 0x0 /* PF_BAR0 */ 79 #define busnum_ODY_GTI_ACTIVE_PC 0 80 #define arguments_ODY_GTI_ACTIVE_PC -1, -1, -1, -1 81 82 /** 83 * Register (NCB32b) gti_bz_cidr0 84 * 85 * GTI Base Component Identification Register 0 86 */ 87 union ody_gti_bz_cidr0 { 88 uint32_t u; 89 struct ody_gti_bz_cidr0_s { 90 uint32_t preamble : 8; 91 uint32_t reserved_8_31 : 24; 92 } s; 93 /* struct ody_gti_bz_cidr0_s cn; */ 94 }; 95 typedef union ody_gti_bz_cidr0 ody_gti_bz_cidr0_t; 96 97 #define ODY_GTI_BZ_CIDR0 ODY_GTI_BZ_CIDR0_FUNC() 98 static inline uint64_t ODY_GTI_BZ_CIDR0_FUNC(void) __attribute__ ((pure, always_inline)); 99 static inline uint64_t ODY_GTI_BZ_CIDR0_FUNC(void) 100 { 101 return 0x802000030ff0ll; 102 } 103 104 #define typedef_ODY_GTI_BZ_CIDR0 ody_gti_bz_cidr0_t 105 #define bustype_ODY_GTI_BZ_CIDR0 CSR_TYPE_NCB32b 106 #define basename_ODY_GTI_BZ_CIDR0 "GTI_BZ_CIDR0" 107 #define device_bar_ODY_GTI_BZ_CIDR0 0x0 /* PF_BAR0 */ 108 #define busnum_ODY_GTI_BZ_CIDR0 0 109 #define arguments_ODY_GTI_BZ_CIDR0 -1, -1, -1, -1 110 111 /** 112 * Register (NCB32b) gti_bz_cidr1 113 * 114 * GTI Base Component Identification Register 1 115 */ 116 union ody_gti_bz_cidr1 { 117 uint32_t u; 118 struct ody_gti_bz_cidr1_s { 119 uint32_t preamble : 4; 120 uint32_t cclass : 4; 121 uint32_t reserved_8_31 : 24; 122 } s; 123 /* struct ody_gti_bz_cidr1_s cn; */ 124 }; 125 typedef union ody_gti_bz_cidr1 ody_gti_bz_cidr1_t; 126 127 #define ODY_GTI_BZ_CIDR1 ODY_GTI_BZ_CIDR1_FUNC() 128 static inline uint64_t ODY_GTI_BZ_CIDR1_FUNC(void) __attribute__ ((pure, always_inline)); 129 static inline uint64_t ODY_GTI_BZ_CIDR1_FUNC(void) 130 { 131 return 0x802000030ff4ll; 132 } 133 134 #define typedef_ODY_GTI_BZ_CIDR1 ody_gti_bz_cidr1_t 135 #define bustype_ODY_GTI_BZ_CIDR1 CSR_TYPE_NCB32b 136 #define basename_ODY_GTI_BZ_CIDR1 "GTI_BZ_CIDR1" 137 #define device_bar_ODY_GTI_BZ_CIDR1 0x0 /* PF_BAR0 */ 138 #define busnum_ODY_GTI_BZ_CIDR1 0 139 #define arguments_ODY_GTI_BZ_CIDR1 -1, -1, -1, -1 140 141 /** 142 * Register (NCB32b) gti_bz_cidr2 143 * 144 * GTI Base Component Identification Register 2 145 */ 146 union ody_gti_bz_cidr2 { 147 uint32_t u; 148 struct ody_gti_bz_cidr2_s { 149 uint32_t preamble : 8; 150 uint32_t reserved_8_31 : 24; 151 } s; 152 /* struct ody_gti_bz_cidr2_s cn; */ 153 }; 154 typedef union ody_gti_bz_cidr2 ody_gti_bz_cidr2_t; 155 156 #define ODY_GTI_BZ_CIDR2 ODY_GTI_BZ_CIDR2_FUNC() 157 static inline uint64_t ODY_GTI_BZ_CIDR2_FUNC(void) __attribute__ ((pure, always_inline)); 158 static inline uint64_t ODY_GTI_BZ_CIDR2_FUNC(void) 159 { 160 return 0x802000030ff8ll; 161 } 162 163 #define typedef_ODY_GTI_BZ_CIDR2 ody_gti_bz_cidr2_t 164 #define bustype_ODY_GTI_BZ_CIDR2 CSR_TYPE_NCB32b 165 #define basename_ODY_GTI_BZ_CIDR2 "GTI_BZ_CIDR2" 166 #define device_bar_ODY_GTI_BZ_CIDR2 0x0 /* PF_BAR0 */ 167 #define busnum_ODY_GTI_BZ_CIDR2 0 168 #define arguments_ODY_GTI_BZ_CIDR2 -1, -1, -1, -1 169 170 /** 171 * Register (NCB32b) gti_bz_cidr3 172 * 173 * GTI Base Component Identification Register 3 174 */ 175 union ody_gti_bz_cidr3 { 176 uint32_t u; 177 struct ody_gti_bz_cidr3_s { 178 uint32_t preamble : 8; 179 uint32_t reserved_8_31 : 24; 180 } s; 181 /* struct ody_gti_bz_cidr3_s cn; */ 182 }; 183 typedef union ody_gti_bz_cidr3 ody_gti_bz_cidr3_t; 184 185 #define ODY_GTI_BZ_CIDR3 ODY_GTI_BZ_CIDR3_FUNC() 186 static inline uint64_t ODY_GTI_BZ_CIDR3_FUNC(void) __attribute__ ((pure, always_inline)); 187 static inline uint64_t ODY_GTI_BZ_CIDR3_FUNC(void) 188 { 189 return 0x802000030ffcll; 190 } 191 192 #define typedef_ODY_GTI_BZ_CIDR3 ody_gti_bz_cidr3_t 193 #define bustype_ODY_GTI_BZ_CIDR3 CSR_TYPE_NCB32b 194 #define basename_ODY_GTI_BZ_CIDR3 "GTI_BZ_CIDR3" 195 #define device_bar_ODY_GTI_BZ_CIDR3 0x0 /* PF_BAR0 */ 196 #define busnum_ODY_GTI_BZ_CIDR3 0 197 #define arguments_ODY_GTI_BZ_CIDR3 -1, -1, -1, -1 198 199 /** 200 * Register (NCB32b) gti_bz_cntp_ctl 201 * 202 * GTI Base Physical Timer Control Register 203 */ 204 union ody_gti_bz_cntp_ctl { 205 uint32_t u; 206 struct ody_gti_bz_cntp_ctl_s { 207 uint32_t enable : 1; 208 uint32_t imask : 1; 209 uint32_t istatus : 1; 210 uint32_t reserved_3_31 : 29; 211 } s; 212 /* struct ody_gti_bz_cntp_ctl_s cn; */ 213 }; 214 typedef union ody_gti_bz_cntp_ctl ody_gti_bz_cntp_ctl_t; 215 216 #define ODY_GTI_BZ_CNTP_CTL ODY_GTI_BZ_CNTP_CTL_FUNC() 217 static inline uint64_t ODY_GTI_BZ_CNTP_CTL_FUNC(void) __attribute__ ((pure, always_inline)); 218 static inline uint64_t ODY_GTI_BZ_CNTP_CTL_FUNC(void) 219 { 220 return 0x80200003002cll; 221 } 222 223 #define typedef_ODY_GTI_BZ_CNTP_CTL ody_gti_bz_cntp_ctl_t 224 #define bustype_ODY_GTI_BZ_CNTP_CTL CSR_TYPE_NCB32b 225 #define basename_ODY_GTI_BZ_CNTP_CTL "GTI_BZ_CNTP_CTL" 226 #define device_bar_ODY_GTI_BZ_CNTP_CTL 0x0 /* PF_BAR0 */ 227 #define busnum_ODY_GTI_BZ_CNTP_CTL 0 228 #define arguments_ODY_GTI_BZ_CNTP_CTL -1, -1, -1, -1 229 230 /** 231 * Register (NCB) gti_bz_cntp_cval 232 * 233 * GTI Base Physical Timer Compare Value Register 234 */ 235 union ody_gti_bz_cntp_cval { 236 uint64_t u; 237 struct ody_gti_bz_cntp_cval_s { 238 uint64_t data : 64; 239 } s; 240 /* struct ody_gti_bz_cntp_cval_s cn; */ 241 }; 242 typedef union ody_gti_bz_cntp_cval ody_gti_bz_cntp_cval_t; 243 244 #define ODY_GTI_BZ_CNTP_CVAL ODY_GTI_BZ_CNTP_CVAL_FUNC() 245 static inline uint64_t ODY_GTI_BZ_CNTP_CVAL_FUNC(void) __attribute__ ((pure, always_inline)); 246 static inline uint64_t ODY_GTI_BZ_CNTP_CVAL_FUNC(void) 247 { 248 return 0x802000030020ll; 249 } 250 251 #define typedef_ODY_GTI_BZ_CNTP_CVAL ody_gti_bz_cntp_cval_t 252 #define bustype_ODY_GTI_BZ_CNTP_CVAL CSR_TYPE_NCB 253 #define basename_ODY_GTI_BZ_CNTP_CVAL "GTI_BZ_CNTP_CVAL" 254 #define device_bar_ODY_GTI_BZ_CNTP_CVAL 0x0 /* PF_BAR0 */ 255 #define busnum_ODY_GTI_BZ_CNTP_CVAL 0 256 #define arguments_ODY_GTI_BZ_CNTP_CVAL -1, -1, -1, -1 257 258 /** 259 * Register (NCB32b) gti_bz_cntp_tval 260 * 261 * GTI Base Physical Timer Value Register 262 */ 263 union ody_gti_bz_cntp_tval { 264 uint32_t u; 265 struct ody_gti_bz_cntp_tval_s { 266 uint32_t timervalue : 32; 267 } s; 268 /* struct ody_gti_bz_cntp_tval_s cn; */ 269 }; 270 typedef union ody_gti_bz_cntp_tval ody_gti_bz_cntp_tval_t; 271 272 #define ODY_GTI_BZ_CNTP_TVAL ODY_GTI_BZ_CNTP_TVAL_FUNC() 273 static inline uint64_t ODY_GTI_BZ_CNTP_TVAL_FUNC(void) __attribute__ ((pure, always_inline)); 274 static inline uint64_t ODY_GTI_BZ_CNTP_TVAL_FUNC(void) 275 { 276 return 0x802000030028ll; 277 } 278 279 #define typedef_ODY_GTI_BZ_CNTP_TVAL ody_gti_bz_cntp_tval_t 280 #define bustype_ODY_GTI_BZ_CNTP_TVAL CSR_TYPE_NCB32b 281 #define basename_ODY_GTI_BZ_CNTP_TVAL "GTI_BZ_CNTP_TVAL" 282 #define device_bar_ODY_GTI_BZ_CNTP_TVAL 0x0 /* PF_BAR0 */ 283 #define busnum_ODY_GTI_BZ_CNTP_TVAL 0 284 #define arguments_ODY_GTI_BZ_CNTP_TVAL -1, -1, -1, -1 285 286 /** 287 * Register (NCB32b) gti_bz_pidr0 288 * 289 * GTI Base Peripheral Identification Register 0 290 */ 291 union ody_gti_bz_pidr0 { 292 uint32_t u; 293 struct ody_gti_bz_pidr0_s { 294 uint32_t partnum0 : 8; 295 uint32_t reserved_8_31 : 24; 296 } s; 297 /* struct ody_gti_bz_pidr0_s cn; */ 298 }; 299 typedef union ody_gti_bz_pidr0 ody_gti_bz_pidr0_t; 300 301 #define ODY_GTI_BZ_PIDR0 ODY_GTI_BZ_PIDR0_FUNC() 302 static inline uint64_t ODY_GTI_BZ_PIDR0_FUNC(void) __attribute__ ((pure, always_inline)); 303 static inline uint64_t ODY_GTI_BZ_PIDR0_FUNC(void) 304 { 305 return 0x802000030fe0ll; 306 } 307 308 #define typedef_ODY_GTI_BZ_PIDR0 ody_gti_bz_pidr0_t 309 #define bustype_ODY_GTI_BZ_PIDR0 CSR_TYPE_NCB32b 310 #define basename_ODY_GTI_BZ_PIDR0 "GTI_BZ_PIDR0" 311 #define device_bar_ODY_GTI_BZ_PIDR0 0x0 /* PF_BAR0 */ 312 #define busnum_ODY_GTI_BZ_PIDR0 0 313 #define arguments_ODY_GTI_BZ_PIDR0 -1, -1, -1, -1 314 315 /** 316 * Register (NCB32b) gti_bz_pidr1 317 * 318 * GTI Base Peripheral Identification Register 1 319 */ 320 union ody_gti_bz_pidr1 { 321 uint32_t u; 322 struct ody_gti_bz_pidr1_s { 323 uint32_t partnum1 : 4; 324 uint32_t idcode : 4; 325 uint32_t reserved_8_31 : 24; 326 } s; 327 /* struct ody_gti_bz_pidr1_s cn; */ 328 }; 329 typedef union ody_gti_bz_pidr1 ody_gti_bz_pidr1_t; 330 331 #define ODY_GTI_BZ_PIDR1 ODY_GTI_BZ_PIDR1_FUNC() 332 static inline uint64_t ODY_GTI_BZ_PIDR1_FUNC(void) __attribute__ ((pure, always_inline)); 333 static inline uint64_t ODY_GTI_BZ_PIDR1_FUNC(void) 334 { 335 return 0x802000030fe4ll; 336 } 337 338 #define typedef_ODY_GTI_BZ_PIDR1 ody_gti_bz_pidr1_t 339 #define bustype_ODY_GTI_BZ_PIDR1 CSR_TYPE_NCB32b 340 #define basename_ODY_GTI_BZ_PIDR1 "GTI_BZ_PIDR1" 341 #define device_bar_ODY_GTI_BZ_PIDR1 0x0 /* PF_BAR0 */ 342 #define busnum_ODY_GTI_BZ_PIDR1 0 343 #define arguments_ODY_GTI_BZ_PIDR1 -1, -1, -1, -1 344 345 /** 346 * Register (NCB32b) gti_bz_pidr2 347 * 348 * GTI Base Peripheral Identification Register 2 349 */ 350 union ody_gti_bz_pidr2 { 351 uint32_t u; 352 struct ody_gti_bz_pidr2_s { 353 uint32_t idcode : 3; 354 uint32_t jedec : 1; 355 uint32_t revision : 4; 356 uint32_t reserved_8_31 : 24; 357 } s; 358 /* struct ody_gti_bz_pidr2_s cn; */ 359 }; 360 typedef union ody_gti_bz_pidr2 ody_gti_bz_pidr2_t; 361 362 #define ODY_GTI_BZ_PIDR2 ODY_GTI_BZ_PIDR2_FUNC() 363 static inline uint64_t ODY_GTI_BZ_PIDR2_FUNC(void) __attribute__ ((pure, always_inline)); 364 static inline uint64_t ODY_GTI_BZ_PIDR2_FUNC(void) 365 { 366 return 0x802000030fe8ll; 367 } 368 369 #define typedef_ODY_GTI_BZ_PIDR2 ody_gti_bz_pidr2_t 370 #define bustype_ODY_GTI_BZ_PIDR2 CSR_TYPE_NCB32b 371 #define basename_ODY_GTI_BZ_PIDR2 "GTI_BZ_PIDR2" 372 #define device_bar_ODY_GTI_BZ_PIDR2 0x0 /* PF_BAR0 */ 373 #define busnum_ODY_GTI_BZ_PIDR2 0 374 #define arguments_ODY_GTI_BZ_PIDR2 -1, -1, -1, -1 375 376 /** 377 * Register (NCB32b) gti_bz_pidr3 378 * 379 * GTI Base Peripheral Identification Register 3 380 */ 381 union ody_gti_bz_pidr3 { 382 uint32_t u; 383 struct ody_gti_bz_pidr3_s { 384 uint32_t cust : 4; 385 uint32_t revand : 4; 386 uint32_t reserved_8_31 : 24; 387 } s; 388 /* struct ody_gti_bz_pidr3_s cn; */ 389 }; 390 typedef union ody_gti_bz_pidr3 ody_gti_bz_pidr3_t; 391 392 #define ODY_GTI_BZ_PIDR3 ODY_GTI_BZ_PIDR3_FUNC() 393 static inline uint64_t ODY_GTI_BZ_PIDR3_FUNC(void) __attribute__ ((pure, always_inline)); 394 static inline uint64_t ODY_GTI_BZ_PIDR3_FUNC(void) 395 { 396 return 0x802000030fecll; 397 } 398 399 #define typedef_ODY_GTI_BZ_PIDR3 ody_gti_bz_pidr3_t 400 #define bustype_ODY_GTI_BZ_PIDR3 CSR_TYPE_NCB32b 401 #define basename_ODY_GTI_BZ_PIDR3 "GTI_BZ_PIDR3" 402 #define device_bar_ODY_GTI_BZ_PIDR3 0x0 /* PF_BAR0 */ 403 #define busnum_ODY_GTI_BZ_PIDR3 0 404 #define arguments_ODY_GTI_BZ_PIDR3 -1, -1, -1, -1 405 406 /** 407 * Register (NCB32b) gti_bz_pidr4 408 * 409 * GTI Base Peripheral Identification Register 4 410 */ 411 union ody_gti_bz_pidr4 { 412 uint32_t u; 413 struct ody_gti_bz_pidr4_s { 414 uint32_t jepcont : 4; 415 uint32_t pagecnt : 4; 416 uint32_t reserved_8_31 : 24; 417 } s; 418 /* struct ody_gti_bz_pidr4_s cn; */ 419 }; 420 typedef union ody_gti_bz_pidr4 ody_gti_bz_pidr4_t; 421 422 #define ODY_GTI_BZ_PIDR4 ODY_GTI_BZ_PIDR4_FUNC() 423 static inline uint64_t ODY_GTI_BZ_PIDR4_FUNC(void) __attribute__ ((pure, always_inline)); 424 static inline uint64_t ODY_GTI_BZ_PIDR4_FUNC(void) 425 { 426 return 0x802000030fd0ll; 427 } 428 429 #define typedef_ODY_GTI_BZ_PIDR4 ody_gti_bz_pidr4_t 430 #define bustype_ODY_GTI_BZ_PIDR4 CSR_TYPE_NCB32b 431 #define basename_ODY_GTI_BZ_PIDR4 "GTI_BZ_PIDR4" 432 #define device_bar_ODY_GTI_BZ_PIDR4 0x0 /* PF_BAR0 */ 433 #define busnum_ODY_GTI_BZ_PIDR4 0 434 #define arguments_ODY_GTI_BZ_PIDR4 -1, -1, -1, -1 435 436 /** 437 * Register (NCB32b) gti_bz_pidr5 438 * 439 * GTI Base Peripheral Identification Register 5 440 */ 441 union ody_gti_bz_pidr5 { 442 uint32_t u; 443 struct ody_gti_bz_pidr5_s { 444 uint32_t reserved_0_31 : 32; 445 } s; 446 /* struct ody_gti_bz_pidr5_s cn; */ 447 }; 448 typedef union ody_gti_bz_pidr5 ody_gti_bz_pidr5_t; 449 450 #define ODY_GTI_BZ_PIDR5 ODY_GTI_BZ_PIDR5_FUNC() 451 static inline uint64_t ODY_GTI_BZ_PIDR5_FUNC(void) __attribute__ ((pure, always_inline)); 452 static inline uint64_t ODY_GTI_BZ_PIDR5_FUNC(void) 453 { 454 return 0x802000030fd4ll; 455 } 456 457 #define typedef_ODY_GTI_BZ_PIDR5 ody_gti_bz_pidr5_t 458 #define bustype_ODY_GTI_BZ_PIDR5 CSR_TYPE_NCB32b 459 #define basename_ODY_GTI_BZ_PIDR5 "GTI_BZ_PIDR5" 460 #define device_bar_ODY_GTI_BZ_PIDR5 0x0 /* PF_BAR0 */ 461 #define busnum_ODY_GTI_BZ_PIDR5 0 462 #define arguments_ODY_GTI_BZ_PIDR5 -1, -1, -1, -1 463 464 /** 465 * Register (NCB32b) gti_bz_pidr6 466 * 467 * GTI Base Peripheral Identification Register 6 468 */ 469 union ody_gti_bz_pidr6 { 470 uint32_t u; 471 struct ody_gti_bz_pidr6_s { 472 uint32_t reserved_0_31 : 32; 473 } s; 474 /* struct ody_gti_bz_pidr6_s cn; */ 475 }; 476 typedef union ody_gti_bz_pidr6 ody_gti_bz_pidr6_t; 477 478 #define ODY_GTI_BZ_PIDR6 ODY_GTI_BZ_PIDR6_FUNC() 479 static inline uint64_t ODY_GTI_BZ_PIDR6_FUNC(void) __attribute__ ((pure, always_inline)); 480 static inline uint64_t ODY_GTI_BZ_PIDR6_FUNC(void) 481 { 482 return 0x802000030fd8ll; 483 } 484 485 #define typedef_ODY_GTI_BZ_PIDR6 ody_gti_bz_pidr6_t 486 #define bustype_ODY_GTI_BZ_PIDR6 CSR_TYPE_NCB32b 487 #define basename_ODY_GTI_BZ_PIDR6 "GTI_BZ_PIDR6" 488 #define device_bar_ODY_GTI_BZ_PIDR6 0x0 /* PF_BAR0 */ 489 #define busnum_ODY_GTI_BZ_PIDR6 0 490 #define arguments_ODY_GTI_BZ_PIDR6 -1, -1, -1, -1 491 492 /** 493 * Register (NCB32b) gti_bz_pidr7 494 * 495 * GTI Base Peripheral Identification Register 7 496 */ 497 union ody_gti_bz_pidr7 { 498 uint32_t u; 499 struct ody_gti_bz_pidr7_s { 500 uint32_t reserved_0_31 : 32; 501 } s; 502 /* struct ody_gti_bz_pidr7_s cn; */ 503 }; 504 typedef union ody_gti_bz_pidr7 ody_gti_bz_pidr7_t; 505 506 #define ODY_GTI_BZ_PIDR7 ODY_GTI_BZ_PIDR7_FUNC() 507 static inline uint64_t ODY_GTI_BZ_PIDR7_FUNC(void) __attribute__ ((pure, always_inline)); 508 static inline uint64_t ODY_GTI_BZ_PIDR7_FUNC(void) 509 { 510 return 0x802000030fdcll; 511 } 512 513 #define typedef_ODY_GTI_BZ_PIDR7 ody_gti_bz_pidr7_t 514 #define bustype_ODY_GTI_BZ_PIDR7 CSR_TYPE_NCB32b 515 #define basename_ODY_GTI_BZ_PIDR7 "GTI_BZ_PIDR7" 516 #define device_bar_ODY_GTI_BZ_PIDR7 0x0 /* PF_BAR0 */ 517 #define busnum_ODY_GTI_BZ_PIDR7 0 518 #define arguments_ODY_GTI_BZ_PIDR7 -1, -1, -1, -1 519 520 /** 521 * Register (NCB32b) gti_cc_cidr0 522 * 523 * GTI Counter Control Component Identification Secure Register 0 524 */ 525 union ody_gti_cc_cidr0 { 526 uint32_t u; 527 struct ody_gti_cc_cidr0_s { 528 uint32_t preamble : 8; 529 uint32_t reserved_8_31 : 24; 530 } s; 531 /* struct ody_gti_cc_cidr0_s cn; */ 532 }; 533 typedef union ody_gti_cc_cidr0 ody_gti_cc_cidr0_t; 534 535 #define ODY_GTI_CC_CIDR0 ODY_GTI_CC_CIDR0_FUNC() 536 static inline uint64_t ODY_GTI_CC_CIDR0_FUNC(void) __attribute__ ((pure, always_inline)); 537 static inline uint64_t ODY_GTI_CC_CIDR0_FUNC(void) 538 { 539 return 0x802000000ff0ll; 540 } 541 542 #define typedef_ODY_GTI_CC_CIDR0 ody_gti_cc_cidr0_t 543 #define bustype_ODY_GTI_CC_CIDR0 CSR_TYPE_NCB32b 544 #define basename_ODY_GTI_CC_CIDR0 "GTI_CC_CIDR0" 545 #define device_bar_ODY_GTI_CC_CIDR0 0x0 /* PF_BAR0 */ 546 #define busnum_ODY_GTI_CC_CIDR0 0 547 #define arguments_ODY_GTI_CC_CIDR0 -1, -1, -1, -1 548 549 /** 550 * Register (NCB32b) gti_cc_cidr1 551 * 552 * GTI Counter Control Component Identification Secure Register 1 553 */ 554 union ody_gti_cc_cidr1 { 555 uint32_t u; 556 struct ody_gti_cc_cidr1_s { 557 uint32_t preamble : 4; 558 uint32_t cclass : 4; 559 uint32_t reserved_8_31 : 24; 560 } s; 561 /* struct ody_gti_cc_cidr1_s cn; */ 562 }; 563 typedef union ody_gti_cc_cidr1 ody_gti_cc_cidr1_t; 564 565 #define ODY_GTI_CC_CIDR1 ODY_GTI_CC_CIDR1_FUNC() 566 static inline uint64_t ODY_GTI_CC_CIDR1_FUNC(void) __attribute__ ((pure, always_inline)); 567 static inline uint64_t ODY_GTI_CC_CIDR1_FUNC(void) 568 { 569 return 0x802000000ff4ll; 570 } 571 572 #define typedef_ODY_GTI_CC_CIDR1 ody_gti_cc_cidr1_t 573 #define bustype_ODY_GTI_CC_CIDR1 CSR_TYPE_NCB32b 574 #define basename_ODY_GTI_CC_CIDR1 "GTI_CC_CIDR1" 575 #define device_bar_ODY_GTI_CC_CIDR1 0x0 /* PF_BAR0 */ 576 #define busnum_ODY_GTI_CC_CIDR1 0 577 #define arguments_ODY_GTI_CC_CIDR1 -1, -1, -1, -1 578 579 /** 580 * Register (NCB32b) gti_cc_cidr2 581 * 582 * GTI Counter Control Component Identification Secure Register 2 583 */ 584 union ody_gti_cc_cidr2 { 585 uint32_t u; 586 struct ody_gti_cc_cidr2_s { 587 uint32_t preamble : 8; 588 uint32_t reserved_8_31 : 24; 589 } s; 590 /* struct ody_gti_cc_cidr2_s cn; */ 591 }; 592 typedef union ody_gti_cc_cidr2 ody_gti_cc_cidr2_t; 593 594 #define ODY_GTI_CC_CIDR2 ODY_GTI_CC_CIDR2_FUNC() 595 static inline uint64_t ODY_GTI_CC_CIDR2_FUNC(void) __attribute__ ((pure, always_inline)); 596 static inline uint64_t ODY_GTI_CC_CIDR2_FUNC(void) 597 { 598 return 0x802000000ff8ll; 599 } 600 601 #define typedef_ODY_GTI_CC_CIDR2 ody_gti_cc_cidr2_t 602 #define bustype_ODY_GTI_CC_CIDR2 CSR_TYPE_NCB32b 603 #define basename_ODY_GTI_CC_CIDR2 "GTI_CC_CIDR2" 604 #define device_bar_ODY_GTI_CC_CIDR2 0x0 /* PF_BAR0 */ 605 #define busnum_ODY_GTI_CC_CIDR2 0 606 #define arguments_ODY_GTI_CC_CIDR2 -1, -1, -1, -1 607 608 /** 609 * Register (NCB32b) gti_cc_cidr3 610 * 611 * GTI Counter Control Component Identification Secure Register 3 612 */ 613 union ody_gti_cc_cidr3 { 614 uint32_t u; 615 struct ody_gti_cc_cidr3_s { 616 uint32_t preamble : 8; 617 uint32_t reserved_8_31 : 24; 618 } s; 619 /* struct ody_gti_cc_cidr3_s cn; */ 620 }; 621 typedef union ody_gti_cc_cidr3 ody_gti_cc_cidr3_t; 622 623 #define ODY_GTI_CC_CIDR3 ODY_GTI_CC_CIDR3_FUNC() 624 static inline uint64_t ODY_GTI_CC_CIDR3_FUNC(void) __attribute__ ((pure, always_inline)); 625 static inline uint64_t ODY_GTI_CC_CIDR3_FUNC(void) 626 { 627 return 0x802000000ffcll; 628 } 629 630 #define typedef_ODY_GTI_CC_CIDR3 ody_gti_cc_cidr3_t 631 #define bustype_ODY_GTI_CC_CIDR3 CSR_TYPE_NCB32b 632 #define basename_ODY_GTI_CC_CIDR3 "GTI_CC_CIDR3" 633 #define device_bar_ODY_GTI_CC_CIDR3 0x0 /* PF_BAR0 */ 634 #define busnum_ODY_GTI_CC_CIDR3 0 635 #define arguments_ODY_GTI_CC_CIDR3 -1, -1, -1, -1 636 637 /** 638 * Register (NCB) gti_cc_cntadd 639 * 640 * GTI Counter Control Atomic Add Secure Register 641 * Implementation defined register. 642 */ 643 union ody_gti_cc_cntadd { 644 uint64_t u; 645 struct ody_gti_cc_cntadd_s { 646 uint64_t cntadd : 64; 647 } s; 648 /* struct ody_gti_cc_cntadd_s cn; */ 649 }; 650 typedef union ody_gti_cc_cntadd ody_gti_cc_cntadd_t; 651 652 #define ODY_GTI_CC_CNTADD ODY_GTI_CC_CNTADD_FUNC() 653 static inline uint64_t ODY_GTI_CC_CNTADD_FUNC(void) __attribute__ ((pure, always_inline)); 654 static inline uint64_t ODY_GTI_CC_CNTADD_FUNC(void) 655 { 656 return 0x8020000000c8ll; 657 } 658 659 #define typedef_ODY_GTI_CC_CNTADD ody_gti_cc_cntadd_t 660 #define bustype_ODY_GTI_CC_CNTADD CSR_TYPE_NCB 661 #define basename_ODY_GTI_CC_CNTADD "GTI_CC_CNTADD" 662 #define device_bar_ODY_GTI_CC_CNTADD 0x0 /* PF_BAR0 */ 663 #define busnum_ODY_GTI_CC_CNTADD 0 664 #define arguments_ODY_GTI_CC_CNTADD -1, -1, -1, -1 665 666 /** 667 * Register (NCB32b) gti_cc_cntcr 668 * 669 * GTI Counter Control Secure Register 670 */ 671 union ody_gti_cc_cntcr { 672 uint32_t u; 673 struct ody_gti_cc_cntcr_s { 674 uint32_t en : 1; 675 uint32_t hdbg : 1; 676 uint32_t scen : 1; 677 uint32_t reserved_3_7 : 5; 678 uint32_t fcreq : 1; 679 uint32_t reserved_9_31 : 23; 680 } s; 681 /* struct ody_gti_cc_cntcr_s cn; */ 682 }; 683 typedef union ody_gti_cc_cntcr ody_gti_cc_cntcr_t; 684 685 #define ODY_GTI_CC_CNTCR ODY_GTI_CC_CNTCR_FUNC() 686 static inline uint64_t ODY_GTI_CC_CNTCR_FUNC(void) __attribute__ ((pure, always_inline)); 687 static inline uint64_t ODY_GTI_CC_CNTCR_FUNC(void) 688 { 689 return 0x802000000000ll; 690 } 691 692 #define typedef_ODY_GTI_CC_CNTCR ody_gti_cc_cntcr_t 693 #define bustype_ODY_GTI_CC_CNTCR CSR_TYPE_NCB32b 694 #define basename_ODY_GTI_CC_CNTCR "GTI_CC_CNTCR" 695 #define device_bar_ODY_GTI_CC_CNTCR 0x0 /* PF_BAR0 */ 696 #define busnum_ODY_GTI_CC_CNTCR 0 697 #define arguments_ODY_GTI_CC_CNTCR -1, -1, -1, -1 698 699 /** 700 * Register (NCB) gti_cc_cntcv 701 * 702 * GTI Counter Control Count Value Secure Register 703 */ 704 union ody_gti_cc_cntcv { 705 uint64_t u; 706 struct ody_gti_cc_cntcv_s { 707 uint64_t cnt : 64; 708 } s; 709 /* struct ody_gti_cc_cntcv_s cn; */ 710 }; 711 typedef union ody_gti_cc_cntcv ody_gti_cc_cntcv_t; 712 713 #define ODY_GTI_CC_CNTCV ODY_GTI_CC_CNTCV_FUNC() 714 static inline uint64_t ODY_GTI_CC_CNTCV_FUNC(void) __attribute__ ((pure, always_inline)); 715 static inline uint64_t ODY_GTI_CC_CNTCV_FUNC(void) 716 { 717 return 0x802000000008ll; 718 } 719 720 #define typedef_ODY_GTI_CC_CNTCV ody_gti_cc_cntcv_t 721 #define bustype_ODY_GTI_CC_CNTCV CSR_TYPE_NCB 722 #define basename_ODY_GTI_CC_CNTCV "GTI_CC_CNTCV" 723 #define device_bar_ODY_GTI_CC_CNTCV 0x0 /* PF_BAR0 */ 724 #define busnum_ODY_GTI_CC_CNTCV 0 725 #define arguments_ODY_GTI_CC_CNTCV -1, -1, -1, -1 726 727 /** 728 * Register (NCB32b) gti_cc_cntfid0 729 * 730 * GTI Counter Control Frequency Mode Table Secure Register 0 731 */ 732 union ody_gti_cc_cntfid0 { 733 uint32_t u; 734 struct ody_gti_cc_cntfid0_s { 735 uint32_t data : 32; 736 } s; 737 /* struct ody_gti_cc_cntfid0_s cn; */ 738 }; 739 typedef union ody_gti_cc_cntfid0 ody_gti_cc_cntfid0_t; 740 741 #define ODY_GTI_CC_CNTFID0 ODY_GTI_CC_CNTFID0_FUNC() 742 static inline uint64_t ODY_GTI_CC_CNTFID0_FUNC(void) __attribute__ ((pure, always_inline)); 743 static inline uint64_t ODY_GTI_CC_CNTFID0_FUNC(void) 744 { 745 return 0x802000000020ll; 746 } 747 748 #define typedef_ODY_GTI_CC_CNTFID0 ody_gti_cc_cntfid0_t 749 #define bustype_ODY_GTI_CC_CNTFID0 CSR_TYPE_NCB32b 750 #define basename_ODY_GTI_CC_CNTFID0 "GTI_CC_CNTFID0" 751 #define device_bar_ODY_GTI_CC_CNTFID0 0x0 /* PF_BAR0 */ 752 #define busnum_ODY_GTI_CC_CNTFID0 0 753 #define arguments_ODY_GTI_CC_CNTFID0 -1, -1, -1, -1 754 755 /** 756 * Register (NCB32b) gti_cc_cntfid1 757 * 758 * GTI Counter Control Frequency Mode Table Secure Register 1 759 */ 760 union ody_gti_cc_cntfid1 { 761 uint32_t u; 762 struct ody_gti_cc_cntfid1_s { 763 uint32_t constant : 32; 764 } s; 765 /* struct ody_gti_cc_cntfid1_s cn; */ 766 }; 767 typedef union ody_gti_cc_cntfid1 ody_gti_cc_cntfid1_t; 768 769 #define ODY_GTI_CC_CNTFID1 ODY_GTI_CC_CNTFID1_FUNC() 770 static inline uint64_t ODY_GTI_CC_CNTFID1_FUNC(void) __attribute__ ((pure, always_inline)); 771 static inline uint64_t ODY_GTI_CC_CNTFID1_FUNC(void) 772 { 773 return 0x802000000024ll; 774 } 775 776 #define typedef_ODY_GTI_CC_CNTFID1 ody_gti_cc_cntfid1_t 777 #define bustype_ODY_GTI_CC_CNTFID1 CSR_TYPE_NCB32b 778 #define basename_ODY_GTI_CC_CNTFID1 "GTI_CC_CNTFID1" 779 #define device_bar_ODY_GTI_CC_CNTFID1 0x0 /* PF_BAR0 */ 780 #define busnum_ODY_GTI_CC_CNTFID1 0 781 #define arguments_ODY_GTI_CC_CNTFID1 -1, -1, -1, -1 782 783 /** 784 * Register (NCB32b) gti_cc_cntid 785 * 786 * GTI Counter Control Counter Identification Register 787 */ 788 union ody_gti_cc_cntid { 789 uint32_t u; 790 struct ody_gti_cc_cntid_s { 791 uint32_t cntsc : 4; 792 uint32_t reserved_4_31 : 28; 793 } s; 794 /* struct ody_gti_cc_cntid_s cn; */ 795 }; 796 typedef union ody_gti_cc_cntid ody_gti_cc_cntid_t; 797 798 #define ODY_GTI_CC_CNTID ODY_GTI_CC_CNTID_FUNC() 799 static inline uint64_t ODY_GTI_CC_CNTID_FUNC(void) __attribute__ ((pure, always_inline)); 800 static inline uint64_t ODY_GTI_CC_CNTID_FUNC(void) 801 { 802 return 0x80200000001cll; 803 } 804 805 #define typedef_ODY_GTI_CC_CNTID ody_gti_cc_cntid_t 806 #define bustype_ODY_GTI_CC_CNTID CSR_TYPE_NCB32b 807 #define basename_ODY_GTI_CC_CNTID "GTI_CC_CNTID" 808 #define device_bar_ODY_GTI_CC_CNTID 0x0 /* PF_BAR0 */ 809 #define busnum_ODY_GTI_CC_CNTID 0 810 #define arguments_ODY_GTI_CC_CNTID -1, -1, -1, -1 811 812 /** 813 * Register (NCB32b) gti_cc_cntracc 814 * 815 * GTI Counter Control Count Rate Accumulator Secure Register 816 * Implementation defined register. 817 */ 818 union ody_gti_cc_cntracc { 819 uint32_t u; 820 struct ody_gti_cc_cntracc_s { 821 uint32_t cntracc : 24; 822 uint32_t reserved_24_31 : 8; 823 } s; 824 /* struct ody_gti_cc_cntracc_s cn; */ 825 }; 826 typedef union ody_gti_cc_cntracc ody_gti_cc_cntracc_t; 827 828 #define ODY_GTI_CC_CNTRACC ODY_GTI_CC_CNTRACC_FUNC() 829 static inline uint64_t ODY_GTI_CC_CNTRACC_FUNC(void) __attribute__ ((pure, always_inline)); 830 static inline uint64_t ODY_GTI_CC_CNTRACC_FUNC(void) 831 { 832 return 0x8020000000c4ll; 833 } 834 835 #define typedef_ODY_GTI_CC_CNTRACC ody_gti_cc_cntracc_t 836 #define bustype_ODY_GTI_CC_CNTRACC CSR_TYPE_NCB32b 837 #define basename_ODY_GTI_CC_CNTRACC "GTI_CC_CNTRACC" 838 #define device_bar_ODY_GTI_CC_CNTRACC 0x0 /* PF_BAR0 */ 839 #define busnum_ODY_GTI_CC_CNTRACC 0 840 #define arguments_ODY_GTI_CC_CNTRACC -1, -1, -1, -1 841 842 /** 843 * Register (NCB32b) gti_cc_cntrate 844 * 845 * GTI Counter Control Count Rate Secure Register 846 * Implementation defined register. 847 */ 848 union ody_gti_cc_cntrate { 849 uint32_t u; 850 struct ody_gti_cc_cntrate_s { 851 uint32_t reserved_0_31 : 32; 852 } s; 853 /* struct ody_gti_cc_cntrate_s cn; */ 854 }; 855 typedef union ody_gti_cc_cntrate ody_gti_cc_cntrate_t; 856 857 #define ODY_GTI_CC_CNTRATE ODY_GTI_CC_CNTRATE_FUNC() 858 static inline uint64_t ODY_GTI_CC_CNTRATE_FUNC(void) __attribute__ ((pure, always_inline)); 859 static inline uint64_t ODY_GTI_CC_CNTRATE_FUNC(void) 860 { 861 return 0x8020000000c0ll; 862 } 863 864 #define typedef_ODY_GTI_CC_CNTRATE ody_gti_cc_cntrate_t 865 #define bustype_ODY_GTI_CC_CNTRATE CSR_TYPE_NCB32b 866 #define basename_ODY_GTI_CC_CNTRATE "GTI_CC_CNTRATE" 867 #define device_bar_ODY_GTI_CC_CNTRATE 0x0 /* PF_BAR0 */ 868 #define busnum_ODY_GTI_CC_CNTRATE 0 869 #define arguments_ODY_GTI_CC_CNTRATE -1, -1, -1, -1 870 871 /** 872 * Register (NCB32b) gti_cc_cntscr 873 * 874 * GTI Counter Control Counter Scale Register 875 */ 876 union ody_gti_cc_cntscr { 877 uint32_t u; 878 struct ody_gti_cc_cntscr_s { 879 uint32_t scaleval : 32; 880 } s; 881 /* struct ody_gti_cc_cntscr_s cn; */ 882 }; 883 typedef union ody_gti_cc_cntscr ody_gti_cc_cntscr_t; 884 885 #define ODY_GTI_CC_CNTSCR ODY_GTI_CC_CNTSCR_FUNC() 886 static inline uint64_t ODY_GTI_CC_CNTSCR_FUNC(void) __attribute__ ((pure, always_inline)); 887 static inline uint64_t ODY_GTI_CC_CNTSCR_FUNC(void) 888 { 889 return 0x802000000010ll; 890 } 891 892 #define typedef_ODY_GTI_CC_CNTSCR ody_gti_cc_cntscr_t 893 #define bustype_ODY_GTI_CC_CNTSCR CSR_TYPE_NCB32b 894 #define basename_ODY_GTI_CC_CNTSCR "GTI_CC_CNTSCR" 895 #define device_bar_ODY_GTI_CC_CNTSCR 0x0 /* PF_BAR0 */ 896 #define busnum_ODY_GTI_CC_CNTSCR 0 897 #define arguments_ODY_GTI_CC_CNTSCR -1, -1, -1, -1 898 899 /** 900 * Register (NCB32b) gti_cc_cntsr 901 * 902 * GTI Counter Control Status Secure Register 903 */ 904 union ody_gti_cc_cntsr { 905 uint32_t u; 906 struct ody_gti_cc_cntsr_s { 907 uint32_t reserved_0 : 1; 908 uint32_t dbgh : 1; 909 uint32_t reserved_2_7 : 6; 910 uint32_t fcack : 1; 911 uint32_t reserved_9_31 : 23; 912 } s; 913 /* struct ody_gti_cc_cntsr_s cn; */ 914 }; 915 typedef union ody_gti_cc_cntsr ody_gti_cc_cntsr_t; 916 917 #define ODY_GTI_CC_CNTSR ODY_GTI_CC_CNTSR_FUNC() 918 static inline uint64_t ODY_GTI_CC_CNTSR_FUNC(void) __attribute__ ((pure, always_inline)); 919 static inline uint64_t ODY_GTI_CC_CNTSR_FUNC(void) 920 { 921 return 0x802000000004ll; 922 } 923 924 #define typedef_ODY_GTI_CC_CNTSR ody_gti_cc_cntsr_t 925 #define bustype_ODY_GTI_CC_CNTSR CSR_TYPE_NCB32b 926 #define basename_ODY_GTI_CC_CNTSR "GTI_CC_CNTSR" 927 #define device_bar_ODY_GTI_CC_CNTSR 0x0 /* PF_BAR0 */ 928 #define busnum_ODY_GTI_CC_CNTSR 0 929 #define arguments_ODY_GTI_CC_CNTSR -1, -1, -1, -1 930 931 /** 932 * Register (NCB) gti_cc_imp_ctl 933 * 934 * GTI Counter Control Implementation Control Register 935 * Implementation defined register. 936 */ 937 union ody_gti_cc_imp_ctl { 938 uint64_t u; 939 struct ody_gti_cc_imp_ctl_s { 940 uint64_t clk_src : 1; 941 uint64_t reserved_1_63 : 63; 942 } s; 943 /* struct ody_gti_cc_imp_ctl_s cn; */ 944 }; 945 typedef union ody_gti_cc_imp_ctl ody_gti_cc_imp_ctl_t; 946 947 #define ODY_GTI_CC_IMP_CTL ODY_GTI_CC_IMP_CTL_FUNC() 948 static inline uint64_t ODY_GTI_CC_IMP_CTL_FUNC(void) __attribute__ ((pure, always_inline)); 949 static inline uint64_t ODY_GTI_CC_IMP_CTL_FUNC(void) 950 { 951 return 0x802000000100ll; 952 } 953 954 #define typedef_ODY_GTI_CC_IMP_CTL ody_gti_cc_imp_ctl_t 955 #define bustype_ODY_GTI_CC_IMP_CTL CSR_TYPE_NCB 956 #define basename_ODY_GTI_CC_IMP_CTL "GTI_CC_IMP_CTL" 957 #define device_bar_ODY_GTI_CC_IMP_CTL 0x0 /* PF_BAR0 */ 958 #define busnum_ODY_GTI_CC_IMP_CTL 0 959 #define arguments_ODY_GTI_CC_IMP_CTL -1, -1, -1, -1 960 961 /** 962 * Register (NCB32b) gti_cc_pidr0 963 * 964 * GTI Counter Control Peripheral Identification Secure Register 0 965 */ 966 union ody_gti_cc_pidr0 { 967 uint32_t u; 968 struct ody_gti_cc_pidr0_s { 969 uint32_t partnum0 : 8; 970 uint32_t reserved_8_31 : 24; 971 } s; 972 /* struct ody_gti_cc_pidr0_s cn; */ 973 }; 974 typedef union ody_gti_cc_pidr0 ody_gti_cc_pidr0_t; 975 976 #define ODY_GTI_CC_PIDR0 ODY_GTI_CC_PIDR0_FUNC() 977 static inline uint64_t ODY_GTI_CC_PIDR0_FUNC(void) __attribute__ ((pure, always_inline)); 978 static inline uint64_t ODY_GTI_CC_PIDR0_FUNC(void) 979 { 980 return 0x802000000fe0ll; 981 } 982 983 #define typedef_ODY_GTI_CC_PIDR0 ody_gti_cc_pidr0_t 984 #define bustype_ODY_GTI_CC_PIDR0 CSR_TYPE_NCB32b 985 #define basename_ODY_GTI_CC_PIDR0 "GTI_CC_PIDR0" 986 #define device_bar_ODY_GTI_CC_PIDR0 0x0 /* PF_BAR0 */ 987 #define busnum_ODY_GTI_CC_PIDR0 0 988 #define arguments_ODY_GTI_CC_PIDR0 -1, -1, -1, -1 989 990 /** 991 * Register (NCB32b) gti_cc_pidr1 992 * 993 * GTI Counter Control Peripheral Identification Secure Register 1 994 */ 995 union ody_gti_cc_pidr1 { 996 uint32_t u; 997 struct ody_gti_cc_pidr1_s { 998 uint32_t partnum1 : 4; 999 uint32_t idcode : 4; 1000 uint32_t reserved_8_31 : 24; 1001 } s; 1002 /* struct ody_gti_cc_pidr1_s cn; */ 1003 }; 1004 typedef union ody_gti_cc_pidr1 ody_gti_cc_pidr1_t; 1005 1006 #define ODY_GTI_CC_PIDR1 ODY_GTI_CC_PIDR1_FUNC() 1007 static inline uint64_t ODY_GTI_CC_PIDR1_FUNC(void) __attribute__ ((pure, always_inline)); 1008 static inline uint64_t ODY_GTI_CC_PIDR1_FUNC(void) 1009 { 1010 return 0x802000000fe4ll; 1011 } 1012 1013 #define typedef_ODY_GTI_CC_PIDR1 ody_gti_cc_pidr1_t 1014 #define bustype_ODY_GTI_CC_PIDR1 CSR_TYPE_NCB32b 1015 #define basename_ODY_GTI_CC_PIDR1 "GTI_CC_PIDR1" 1016 #define device_bar_ODY_GTI_CC_PIDR1 0x0 /* PF_BAR0 */ 1017 #define busnum_ODY_GTI_CC_PIDR1 0 1018 #define arguments_ODY_GTI_CC_PIDR1 -1, -1, -1, -1 1019 1020 /** 1021 * Register (NCB32b) gti_cc_pidr2 1022 * 1023 * GTI Counter Control Peripheral Identification Secure Register 2 1024 */ 1025 union ody_gti_cc_pidr2 { 1026 uint32_t u; 1027 struct ody_gti_cc_pidr2_s { 1028 uint32_t idcode : 3; 1029 uint32_t jedec : 1; 1030 uint32_t revision : 4; 1031 uint32_t reserved_8_31 : 24; 1032 } s; 1033 /* struct ody_gti_cc_pidr2_s cn; */ 1034 }; 1035 typedef union ody_gti_cc_pidr2 ody_gti_cc_pidr2_t; 1036 1037 #define ODY_GTI_CC_PIDR2 ODY_GTI_CC_PIDR2_FUNC() 1038 static inline uint64_t ODY_GTI_CC_PIDR2_FUNC(void) __attribute__ ((pure, always_inline)); 1039 static inline uint64_t ODY_GTI_CC_PIDR2_FUNC(void) 1040 { 1041 return 0x802000000fe8ll; 1042 } 1043 1044 #define typedef_ODY_GTI_CC_PIDR2 ody_gti_cc_pidr2_t 1045 #define bustype_ODY_GTI_CC_PIDR2 CSR_TYPE_NCB32b 1046 #define basename_ODY_GTI_CC_PIDR2 "GTI_CC_PIDR2" 1047 #define device_bar_ODY_GTI_CC_PIDR2 0x0 /* PF_BAR0 */ 1048 #define busnum_ODY_GTI_CC_PIDR2 0 1049 #define arguments_ODY_GTI_CC_PIDR2 -1, -1, -1, -1 1050 1051 /** 1052 * Register (NCB32b) gti_cc_pidr3 1053 * 1054 * GTI Counter Control Peripheral Identification Secure Register 3 1055 */ 1056 union ody_gti_cc_pidr3 { 1057 uint32_t u; 1058 struct ody_gti_cc_pidr3_s { 1059 uint32_t cust : 4; 1060 uint32_t revand : 4; 1061 uint32_t reserved_8_31 : 24; 1062 } s; 1063 /* struct ody_gti_cc_pidr3_s cn; */ 1064 }; 1065 typedef union ody_gti_cc_pidr3 ody_gti_cc_pidr3_t; 1066 1067 #define ODY_GTI_CC_PIDR3 ODY_GTI_CC_PIDR3_FUNC() 1068 static inline uint64_t ODY_GTI_CC_PIDR3_FUNC(void) __attribute__ ((pure, always_inline)); 1069 static inline uint64_t ODY_GTI_CC_PIDR3_FUNC(void) 1070 { 1071 return 0x802000000fecll; 1072 } 1073 1074 #define typedef_ODY_GTI_CC_PIDR3 ody_gti_cc_pidr3_t 1075 #define bustype_ODY_GTI_CC_PIDR3 CSR_TYPE_NCB32b 1076 #define basename_ODY_GTI_CC_PIDR3 "GTI_CC_PIDR3" 1077 #define device_bar_ODY_GTI_CC_PIDR3 0x0 /* PF_BAR0 */ 1078 #define busnum_ODY_GTI_CC_PIDR3 0 1079 #define arguments_ODY_GTI_CC_PIDR3 -1, -1, -1, -1 1080 1081 /** 1082 * Register (NCB32b) gti_cc_pidr4 1083 * 1084 * GTI Counter Control Peripheral Identification Secure Register 4 1085 */ 1086 union ody_gti_cc_pidr4 { 1087 uint32_t u; 1088 struct ody_gti_cc_pidr4_s { 1089 uint32_t jepcont : 4; 1090 uint32_t pagecnt : 4; 1091 uint32_t reserved_8_31 : 24; 1092 } s; 1093 /* struct ody_gti_cc_pidr4_s cn; */ 1094 }; 1095 typedef union ody_gti_cc_pidr4 ody_gti_cc_pidr4_t; 1096 1097 #define ODY_GTI_CC_PIDR4 ODY_GTI_CC_PIDR4_FUNC() 1098 static inline uint64_t ODY_GTI_CC_PIDR4_FUNC(void) __attribute__ ((pure, always_inline)); 1099 static inline uint64_t ODY_GTI_CC_PIDR4_FUNC(void) 1100 { 1101 return 0x802000000fd0ll; 1102 } 1103 1104 #define typedef_ODY_GTI_CC_PIDR4 ody_gti_cc_pidr4_t 1105 #define bustype_ODY_GTI_CC_PIDR4 CSR_TYPE_NCB32b 1106 #define basename_ODY_GTI_CC_PIDR4 "GTI_CC_PIDR4" 1107 #define device_bar_ODY_GTI_CC_PIDR4 0x0 /* PF_BAR0 */ 1108 #define busnum_ODY_GTI_CC_PIDR4 0 1109 #define arguments_ODY_GTI_CC_PIDR4 -1, -1, -1, -1 1110 1111 /** 1112 * Register (NCB32b) gti_cc_pidr5 1113 * 1114 * GTI Counter Control Peripheral Identification Secure Register 5 1115 */ 1116 union ody_gti_cc_pidr5 { 1117 uint32_t u; 1118 struct ody_gti_cc_pidr5_s { 1119 uint32_t reserved_0_31 : 32; 1120 } s; 1121 /* struct ody_gti_cc_pidr5_s cn; */ 1122 }; 1123 typedef union ody_gti_cc_pidr5 ody_gti_cc_pidr5_t; 1124 1125 #define ODY_GTI_CC_PIDR5 ODY_GTI_CC_PIDR5_FUNC() 1126 static inline uint64_t ODY_GTI_CC_PIDR5_FUNC(void) __attribute__ ((pure, always_inline)); 1127 static inline uint64_t ODY_GTI_CC_PIDR5_FUNC(void) 1128 { 1129 return 0x802000000fd4ll; 1130 } 1131 1132 #define typedef_ODY_GTI_CC_PIDR5 ody_gti_cc_pidr5_t 1133 #define bustype_ODY_GTI_CC_PIDR5 CSR_TYPE_NCB32b 1134 #define basename_ODY_GTI_CC_PIDR5 "GTI_CC_PIDR5" 1135 #define device_bar_ODY_GTI_CC_PIDR5 0x0 /* PF_BAR0 */ 1136 #define busnum_ODY_GTI_CC_PIDR5 0 1137 #define arguments_ODY_GTI_CC_PIDR5 -1, -1, -1, -1 1138 1139 /** 1140 * Register (NCB32b) gti_cc_pidr6 1141 * 1142 * GTI Counter Control Peripheral Identification Secure Register 6 1143 */ 1144 union ody_gti_cc_pidr6 { 1145 uint32_t u; 1146 struct ody_gti_cc_pidr6_s { 1147 uint32_t reserved_0_31 : 32; 1148 } s; 1149 /* struct ody_gti_cc_pidr6_s cn; */ 1150 }; 1151 typedef union ody_gti_cc_pidr6 ody_gti_cc_pidr6_t; 1152 1153 #define ODY_GTI_CC_PIDR6 ODY_GTI_CC_PIDR6_FUNC() 1154 static inline uint64_t ODY_GTI_CC_PIDR6_FUNC(void) __attribute__ ((pure, always_inline)); 1155 static inline uint64_t ODY_GTI_CC_PIDR6_FUNC(void) 1156 { 1157 return 0x802000000fd8ll; 1158 } 1159 1160 #define typedef_ODY_GTI_CC_PIDR6 ody_gti_cc_pidr6_t 1161 #define bustype_ODY_GTI_CC_PIDR6 CSR_TYPE_NCB32b 1162 #define basename_ODY_GTI_CC_PIDR6 "GTI_CC_PIDR6" 1163 #define device_bar_ODY_GTI_CC_PIDR6 0x0 /* PF_BAR0 */ 1164 #define busnum_ODY_GTI_CC_PIDR6 0 1165 #define arguments_ODY_GTI_CC_PIDR6 -1, -1, -1, -1 1166 1167 /** 1168 * Register (NCB32b) gti_cc_pidr7 1169 * 1170 * GTI Counter Control Peripheral Identification Secure Register 7 1171 */ 1172 union ody_gti_cc_pidr7 { 1173 uint32_t u; 1174 struct ody_gti_cc_pidr7_s { 1175 uint32_t reserved_0_31 : 32; 1176 } s; 1177 /* struct ody_gti_cc_pidr7_s cn; */ 1178 }; 1179 typedef union ody_gti_cc_pidr7 ody_gti_cc_pidr7_t; 1180 1181 #define ODY_GTI_CC_PIDR7 ODY_GTI_CC_PIDR7_FUNC() 1182 static inline uint64_t ODY_GTI_CC_PIDR7_FUNC(void) __attribute__ ((pure, always_inline)); 1183 static inline uint64_t ODY_GTI_CC_PIDR7_FUNC(void) 1184 { 1185 return 0x802000000fdcll; 1186 } 1187 1188 #define typedef_ODY_GTI_CC_PIDR7 ody_gti_cc_pidr7_t 1189 #define bustype_ODY_GTI_CC_PIDR7 CSR_TYPE_NCB32b 1190 #define basename_ODY_GTI_CC_PIDR7 "GTI_CC_PIDR7" 1191 #define device_bar_ODY_GTI_CC_PIDR7 0x0 /* PF_BAR0 */ 1192 #define busnum_ODY_GTI_CC_PIDR7 0 1193 #define arguments_ODY_GTI_CC_PIDR7 -1, -1, -1, -1 1194 1195 /** 1196 * Register (NCB32b) gti_const 1197 * 1198 * GTI Constants Register 1199 */ 1200 union ody_gti_const { 1201 uint32_t u; 1202 struct ody_gti_const_s { 1203 uint32_t reserved_0_31 : 32; 1204 } s; 1205 /* struct ody_gti_const_s cn; */ 1206 }; 1207 typedef union ody_gti_const ody_gti_const_t; 1208 1209 #define ODY_GTI_CONST ODY_GTI_CONST_FUNC() 1210 static inline uint64_t ODY_GTI_CONST_FUNC(void) __attribute__ ((pure, always_inline)); 1211 static inline uint64_t ODY_GTI_CONST_FUNC(void) 1212 { 1213 return 0x8020000e0004ll; 1214 } 1215 1216 #define typedef_ODY_GTI_CONST ody_gti_const_t 1217 #define bustype_ODY_GTI_CONST CSR_TYPE_NCB32b 1218 #define basename_ODY_GTI_CONST "GTI_CONST" 1219 #define device_bar_ODY_GTI_CONST 0x0 /* PF_BAR0 */ 1220 #define busnum_ODY_GTI_CONST 0 1221 #define arguments_ODY_GTI_CONST -1, -1, -1, -1 1222 1223 /** 1224 * Register (NCB32b) gti_ctl_cidr0 1225 * 1226 * GTI Control Component Identification Register 0 1227 */ 1228 union ody_gti_ctl_cidr0 { 1229 uint32_t u; 1230 struct ody_gti_ctl_cidr0_s { 1231 uint32_t preamble : 8; 1232 uint32_t reserved_8_31 : 24; 1233 } s; 1234 /* struct ody_gti_ctl_cidr0_s cn; */ 1235 }; 1236 typedef union ody_gti_ctl_cidr0 ody_gti_ctl_cidr0_t; 1237 1238 #define ODY_GTI_CTL_CIDR0 ODY_GTI_CTL_CIDR0_FUNC() 1239 static inline uint64_t ODY_GTI_CTL_CIDR0_FUNC(void) __attribute__ ((pure, always_inline)); 1240 static inline uint64_t ODY_GTI_CTL_CIDR0_FUNC(void) 1241 { 1242 return 0x802000020ff0ll; 1243 } 1244 1245 #define typedef_ODY_GTI_CTL_CIDR0 ody_gti_ctl_cidr0_t 1246 #define bustype_ODY_GTI_CTL_CIDR0 CSR_TYPE_NCB32b 1247 #define basename_ODY_GTI_CTL_CIDR0 "GTI_CTL_CIDR0" 1248 #define device_bar_ODY_GTI_CTL_CIDR0 0x0 /* PF_BAR0 */ 1249 #define busnum_ODY_GTI_CTL_CIDR0 0 1250 #define arguments_ODY_GTI_CTL_CIDR0 -1, -1, -1, -1 1251 1252 /** 1253 * Register (NCB32b) gti_ctl_cidr1 1254 * 1255 * GTI Control Component Identification Register 1 1256 */ 1257 union ody_gti_ctl_cidr1 { 1258 uint32_t u; 1259 struct ody_gti_ctl_cidr1_s { 1260 uint32_t preamble : 4; 1261 uint32_t cclass : 4; 1262 uint32_t reserved_8_31 : 24; 1263 } s; 1264 /* struct ody_gti_ctl_cidr1_s cn; */ 1265 }; 1266 typedef union ody_gti_ctl_cidr1 ody_gti_ctl_cidr1_t; 1267 1268 #define ODY_GTI_CTL_CIDR1 ODY_GTI_CTL_CIDR1_FUNC() 1269 static inline uint64_t ODY_GTI_CTL_CIDR1_FUNC(void) __attribute__ ((pure, always_inline)); 1270 static inline uint64_t ODY_GTI_CTL_CIDR1_FUNC(void) 1271 { 1272 return 0x802000020ff4ll; 1273 } 1274 1275 #define typedef_ODY_GTI_CTL_CIDR1 ody_gti_ctl_cidr1_t 1276 #define bustype_ODY_GTI_CTL_CIDR1 CSR_TYPE_NCB32b 1277 #define basename_ODY_GTI_CTL_CIDR1 "GTI_CTL_CIDR1" 1278 #define device_bar_ODY_GTI_CTL_CIDR1 0x0 /* PF_BAR0 */ 1279 #define busnum_ODY_GTI_CTL_CIDR1 0 1280 #define arguments_ODY_GTI_CTL_CIDR1 -1, -1, -1, -1 1281 1282 /** 1283 * Register (NCB32b) gti_ctl_cidr2 1284 * 1285 * GTI Control Component Identification Register 2 1286 */ 1287 union ody_gti_ctl_cidr2 { 1288 uint32_t u; 1289 struct ody_gti_ctl_cidr2_s { 1290 uint32_t preamble : 8; 1291 uint32_t reserved_8_31 : 24; 1292 } s; 1293 /* struct ody_gti_ctl_cidr2_s cn; */ 1294 }; 1295 typedef union ody_gti_ctl_cidr2 ody_gti_ctl_cidr2_t; 1296 1297 #define ODY_GTI_CTL_CIDR2 ODY_GTI_CTL_CIDR2_FUNC() 1298 static inline uint64_t ODY_GTI_CTL_CIDR2_FUNC(void) __attribute__ ((pure, always_inline)); 1299 static inline uint64_t ODY_GTI_CTL_CIDR2_FUNC(void) 1300 { 1301 return 0x802000020ff8ll; 1302 } 1303 1304 #define typedef_ODY_GTI_CTL_CIDR2 ody_gti_ctl_cidr2_t 1305 #define bustype_ODY_GTI_CTL_CIDR2 CSR_TYPE_NCB32b 1306 #define basename_ODY_GTI_CTL_CIDR2 "GTI_CTL_CIDR2" 1307 #define device_bar_ODY_GTI_CTL_CIDR2 0x0 /* PF_BAR0 */ 1308 #define busnum_ODY_GTI_CTL_CIDR2 0 1309 #define arguments_ODY_GTI_CTL_CIDR2 -1, -1, -1, -1 1310 1311 /** 1312 * Register (NCB32b) gti_ctl_cidr3 1313 * 1314 * GTI Control Component Identification Register 3 1315 */ 1316 union ody_gti_ctl_cidr3 { 1317 uint32_t u; 1318 struct ody_gti_ctl_cidr3_s { 1319 uint32_t preamble : 8; 1320 uint32_t reserved_8_31 : 24; 1321 } s; 1322 /* struct ody_gti_ctl_cidr3_s cn; */ 1323 }; 1324 typedef union ody_gti_ctl_cidr3 ody_gti_ctl_cidr3_t; 1325 1326 #define ODY_GTI_CTL_CIDR3 ODY_GTI_CTL_CIDR3_FUNC() 1327 static inline uint64_t ODY_GTI_CTL_CIDR3_FUNC(void) __attribute__ ((pure, always_inline)); 1328 static inline uint64_t ODY_GTI_CTL_CIDR3_FUNC(void) 1329 { 1330 return 0x802000020ffcll; 1331 } 1332 1333 #define typedef_ODY_GTI_CTL_CIDR3 ody_gti_ctl_cidr3_t 1334 #define bustype_ODY_GTI_CTL_CIDR3 CSR_TYPE_NCB32b 1335 #define basename_ODY_GTI_CTL_CIDR3 "GTI_CTL_CIDR3" 1336 #define device_bar_ODY_GTI_CTL_CIDR3 0x0 /* PF_BAR0 */ 1337 #define busnum_ODY_GTI_CTL_CIDR3 0 1338 #define arguments_ODY_GTI_CTL_CIDR3 -1, -1, -1, -1 1339 1340 /** 1341 * Register (NCB32b) gti_ctl_cntacr0 1342 * 1343 * GTI Control Access Control 0 Register 1344 */ 1345 union ody_gti_ctl_cntacr0 { 1346 uint32_t u; 1347 struct ody_gti_ctl_cntacr0_s { 1348 uint32_t constant : 32; 1349 } s; 1350 /* struct ody_gti_ctl_cntacr0_s cn; */ 1351 }; 1352 typedef union ody_gti_ctl_cntacr0 ody_gti_ctl_cntacr0_t; 1353 1354 #define ODY_GTI_CTL_CNTACR0 ODY_GTI_CTL_CNTACR0_FUNC() 1355 static inline uint64_t ODY_GTI_CTL_CNTACR0_FUNC(void) __attribute__ ((pure, always_inline)); 1356 static inline uint64_t ODY_GTI_CTL_CNTACR0_FUNC(void) 1357 { 1358 return 0x802000020040ll; 1359 } 1360 1361 #define typedef_ODY_GTI_CTL_CNTACR0 ody_gti_ctl_cntacr0_t 1362 #define bustype_ODY_GTI_CTL_CNTACR0 CSR_TYPE_NCB32b 1363 #define basename_ODY_GTI_CTL_CNTACR0 "GTI_CTL_CNTACR0" 1364 #define device_bar_ODY_GTI_CTL_CNTACR0 0x0 /* PF_BAR0 */ 1365 #define busnum_ODY_GTI_CTL_CNTACR0 0 1366 #define arguments_ODY_GTI_CTL_CNTACR0 -1, -1, -1, -1 1367 1368 /** 1369 * Register (NCB32b) gti_ctl_cntfrq 1370 * 1371 * GTI Control Counter Frequency Secure Register 1372 */ 1373 union ody_gti_ctl_cntfrq { 1374 uint32_t u; 1375 struct ody_gti_ctl_cntfrq_s { 1376 uint32_t data : 32; 1377 } s; 1378 /* struct ody_gti_ctl_cntfrq_s cn; */ 1379 }; 1380 typedef union ody_gti_ctl_cntfrq ody_gti_ctl_cntfrq_t; 1381 1382 #define ODY_GTI_CTL_CNTFRQ ODY_GTI_CTL_CNTFRQ_FUNC() 1383 static inline uint64_t ODY_GTI_CTL_CNTFRQ_FUNC(void) __attribute__ ((pure, always_inline)); 1384 static inline uint64_t ODY_GTI_CTL_CNTFRQ_FUNC(void) 1385 { 1386 return 0x802000020000ll; 1387 } 1388 1389 #define typedef_ODY_GTI_CTL_CNTFRQ ody_gti_ctl_cntfrq_t 1390 #define bustype_ODY_GTI_CTL_CNTFRQ CSR_TYPE_NCB32b 1391 #define basename_ODY_GTI_CTL_CNTFRQ "GTI_CTL_CNTFRQ" 1392 #define device_bar_ODY_GTI_CTL_CNTFRQ 0x0 /* PF_BAR0 */ 1393 #define busnum_ODY_GTI_CTL_CNTFRQ 0 1394 #define arguments_ODY_GTI_CTL_CNTFRQ -1, -1, -1, -1 1395 1396 /** 1397 * Register (NCB32b) gti_ctl_cntnsar 1398 * 1399 * GTI Control Counter Nonsecure Access Secure Register 1400 */ 1401 union ody_gti_ctl_cntnsar { 1402 uint32_t u; 1403 struct ody_gti_ctl_cntnsar_s { 1404 uint32_t constant : 32; 1405 } s; 1406 /* struct ody_gti_ctl_cntnsar_s cn; */ 1407 }; 1408 typedef union ody_gti_ctl_cntnsar ody_gti_ctl_cntnsar_t; 1409 1410 #define ODY_GTI_CTL_CNTNSAR ODY_GTI_CTL_CNTNSAR_FUNC() 1411 static inline uint64_t ODY_GTI_CTL_CNTNSAR_FUNC(void) __attribute__ ((pure, always_inline)); 1412 static inline uint64_t ODY_GTI_CTL_CNTNSAR_FUNC(void) 1413 { 1414 return 0x802000020004ll; 1415 } 1416 1417 #define typedef_ODY_GTI_CTL_CNTNSAR ody_gti_ctl_cntnsar_t 1418 #define bustype_ODY_GTI_CTL_CNTNSAR CSR_TYPE_NCB32b 1419 #define basename_ODY_GTI_CTL_CNTNSAR "GTI_CTL_CNTNSAR" 1420 #define device_bar_ODY_GTI_CTL_CNTNSAR 0x0 /* PF_BAR0 */ 1421 #define busnum_ODY_GTI_CTL_CNTNSAR 0 1422 #define arguments_ODY_GTI_CTL_CNTNSAR -1, -1, -1, -1 1423 1424 /** 1425 * Register (NCB32b) gti_ctl_cnttidr 1426 * 1427 * GTI Control Counter Timer ID Register 1428 */ 1429 union ody_gti_ctl_cnttidr { 1430 uint32_t u; 1431 struct ody_gti_ctl_cnttidr_s { 1432 uint32_t constant : 32; 1433 } s; 1434 /* struct ody_gti_ctl_cnttidr_s cn; */ 1435 }; 1436 typedef union ody_gti_ctl_cnttidr ody_gti_ctl_cnttidr_t; 1437 1438 #define ODY_GTI_CTL_CNTTIDR ODY_GTI_CTL_CNTTIDR_FUNC() 1439 static inline uint64_t ODY_GTI_CTL_CNTTIDR_FUNC(void) __attribute__ ((pure, always_inline)); 1440 static inline uint64_t ODY_GTI_CTL_CNTTIDR_FUNC(void) 1441 { 1442 return 0x802000020008ll; 1443 } 1444 1445 #define typedef_ODY_GTI_CTL_CNTTIDR ody_gti_ctl_cnttidr_t 1446 #define bustype_ODY_GTI_CTL_CNTTIDR CSR_TYPE_NCB32b 1447 #define basename_ODY_GTI_CTL_CNTTIDR "GTI_CTL_CNTTIDR" 1448 #define device_bar_ODY_GTI_CTL_CNTTIDR 0x0 /* PF_BAR0 */ 1449 #define busnum_ODY_GTI_CTL_CNTTIDR 0 1450 #define arguments_ODY_GTI_CTL_CNTTIDR -1, -1, -1, -1 1451 1452 /** 1453 * Register (NCB32b) gti_ctl_pidr0 1454 * 1455 * GTI Control Peripheral Identification Register 0 1456 */ 1457 union ody_gti_ctl_pidr0 { 1458 uint32_t u; 1459 struct ody_gti_ctl_pidr0_s { 1460 uint32_t partnum0 : 8; 1461 uint32_t reserved_8_31 : 24; 1462 } s; 1463 /* struct ody_gti_ctl_pidr0_s cn; */ 1464 }; 1465 typedef union ody_gti_ctl_pidr0 ody_gti_ctl_pidr0_t; 1466 1467 #define ODY_GTI_CTL_PIDR0 ODY_GTI_CTL_PIDR0_FUNC() 1468 static inline uint64_t ODY_GTI_CTL_PIDR0_FUNC(void) __attribute__ ((pure, always_inline)); 1469 static inline uint64_t ODY_GTI_CTL_PIDR0_FUNC(void) 1470 { 1471 return 0x802000020fe0ll; 1472 } 1473 1474 #define typedef_ODY_GTI_CTL_PIDR0 ody_gti_ctl_pidr0_t 1475 #define bustype_ODY_GTI_CTL_PIDR0 CSR_TYPE_NCB32b 1476 #define basename_ODY_GTI_CTL_PIDR0 "GTI_CTL_PIDR0" 1477 #define device_bar_ODY_GTI_CTL_PIDR0 0x0 /* PF_BAR0 */ 1478 #define busnum_ODY_GTI_CTL_PIDR0 0 1479 #define arguments_ODY_GTI_CTL_PIDR0 -1, -1, -1, -1 1480 1481 /** 1482 * Register (NCB32b) gti_ctl_pidr1 1483 * 1484 * GTI Control Peripheral Identification Register 1 1485 */ 1486 union ody_gti_ctl_pidr1 { 1487 uint32_t u; 1488 struct ody_gti_ctl_pidr1_s { 1489 uint32_t partnum1 : 4; 1490 uint32_t idcode : 4; 1491 uint32_t reserved_8_31 : 24; 1492 } s; 1493 /* struct ody_gti_ctl_pidr1_s cn; */ 1494 }; 1495 typedef union ody_gti_ctl_pidr1 ody_gti_ctl_pidr1_t; 1496 1497 #define ODY_GTI_CTL_PIDR1 ODY_GTI_CTL_PIDR1_FUNC() 1498 static inline uint64_t ODY_GTI_CTL_PIDR1_FUNC(void) __attribute__ ((pure, always_inline)); 1499 static inline uint64_t ODY_GTI_CTL_PIDR1_FUNC(void) 1500 { 1501 return 0x802000020fe4ll; 1502 } 1503 1504 #define typedef_ODY_GTI_CTL_PIDR1 ody_gti_ctl_pidr1_t 1505 #define bustype_ODY_GTI_CTL_PIDR1 CSR_TYPE_NCB32b 1506 #define basename_ODY_GTI_CTL_PIDR1 "GTI_CTL_PIDR1" 1507 #define device_bar_ODY_GTI_CTL_PIDR1 0x0 /* PF_BAR0 */ 1508 #define busnum_ODY_GTI_CTL_PIDR1 0 1509 #define arguments_ODY_GTI_CTL_PIDR1 -1, -1, -1, -1 1510 1511 /** 1512 * Register (NCB32b) gti_ctl_pidr2 1513 * 1514 * GTI Control Peripheral Identification Register 2 1515 */ 1516 union ody_gti_ctl_pidr2 { 1517 uint32_t u; 1518 struct ody_gti_ctl_pidr2_s { 1519 uint32_t idcode : 3; 1520 uint32_t jedec : 1; 1521 uint32_t revision : 4; 1522 uint32_t reserved_8_31 : 24; 1523 } s; 1524 /* struct ody_gti_ctl_pidr2_s cn; */ 1525 }; 1526 typedef union ody_gti_ctl_pidr2 ody_gti_ctl_pidr2_t; 1527 1528 #define ODY_GTI_CTL_PIDR2 ODY_GTI_CTL_PIDR2_FUNC() 1529 static inline uint64_t ODY_GTI_CTL_PIDR2_FUNC(void) __attribute__ ((pure, always_inline)); 1530 static inline uint64_t ODY_GTI_CTL_PIDR2_FUNC(void) 1531 { 1532 return 0x802000020fe8ll; 1533 } 1534 1535 #define typedef_ODY_GTI_CTL_PIDR2 ody_gti_ctl_pidr2_t 1536 #define bustype_ODY_GTI_CTL_PIDR2 CSR_TYPE_NCB32b 1537 #define basename_ODY_GTI_CTL_PIDR2 "GTI_CTL_PIDR2" 1538 #define device_bar_ODY_GTI_CTL_PIDR2 0x0 /* PF_BAR0 */ 1539 #define busnum_ODY_GTI_CTL_PIDR2 0 1540 #define arguments_ODY_GTI_CTL_PIDR2 -1, -1, -1, -1 1541 1542 /** 1543 * Register (NCB32b) gti_ctl_pidr3 1544 * 1545 * GTI Control Peripheral Identification Register 3 1546 */ 1547 union ody_gti_ctl_pidr3 { 1548 uint32_t u; 1549 struct ody_gti_ctl_pidr3_s { 1550 uint32_t cust : 4; 1551 uint32_t revand : 4; 1552 uint32_t reserved_8_31 : 24; 1553 } s; 1554 /* struct ody_gti_ctl_pidr3_s cn; */ 1555 }; 1556 typedef union ody_gti_ctl_pidr3 ody_gti_ctl_pidr3_t; 1557 1558 #define ODY_GTI_CTL_PIDR3 ODY_GTI_CTL_PIDR3_FUNC() 1559 static inline uint64_t ODY_GTI_CTL_PIDR3_FUNC(void) __attribute__ ((pure, always_inline)); 1560 static inline uint64_t ODY_GTI_CTL_PIDR3_FUNC(void) 1561 { 1562 return 0x802000020fecll; 1563 } 1564 1565 #define typedef_ODY_GTI_CTL_PIDR3 ody_gti_ctl_pidr3_t 1566 #define bustype_ODY_GTI_CTL_PIDR3 CSR_TYPE_NCB32b 1567 #define basename_ODY_GTI_CTL_PIDR3 "GTI_CTL_PIDR3" 1568 #define device_bar_ODY_GTI_CTL_PIDR3 0x0 /* PF_BAR0 */ 1569 #define busnum_ODY_GTI_CTL_PIDR3 0 1570 #define arguments_ODY_GTI_CTL_PIDR3 -1, -1, -1, -1 1571 1572 /** 1573 * Register (NCB32b) gti_ctl_pidr4 1574 * 1575 * GTI Control Peripheral Identification Register 4 1576 */ 1577 union ody_gti_ctl_pidr4 { 1578 uint32_t u; 1579 struct ody_gti_ctl_pidr4_s { 1580 uint32_t jepcont : 4; 1581 uint32_t pagecnt : 4; 1582 uint32_t reserved_8_31 : 24; 1583 } s; 1584 /* struct ody_gti_ctl_pidr4_s cn; */ 1585 }; 1586 typedef union ody_gti_ctl_pidr4 ody_gti_ctl_pidr4_t; 1587 1588 #define ODY_GTI_CTL_PIDR4 ODY_GTI_CTL_PIDR4_FUNC() 1589 static inline uint64_t ODY_GTI_CTL_PIDR4_FUNC(void) __attribute__ ((pure, always_inline)); 1590 static inline uint64_t ODY_GTI_CTL_PIDR4_FUNC(void) 1591 { 1592 return 0x802000020fd0ll; 1593 } 1594 1595 #define typedef_ODY_GTI_CTL_PIDR4 ody_gti_ctl_pidr4_t 1596 #define bustype_ODY_GTI_CTL_PIDR4 CSR_TYPE_NCB32b 1597 #define basename_ODY_GTI_CTL_PIDR4 "GTI_CTL_PIDR4" 1598 #define device_bar_ODY_GTI_CTL_PIDR4 0x0 /* PF_BAR0 */ 1599 #define busnum_ODY_GTI_CTL_PIDR4 0 1600 #define arguments_ODY_GTI_CTL_PIDR4 -1, -1, -1, -1 1601 1602 /** 1603 * Register (NCB32b) gti_ctl_pidr5 1604 * 1605 * GTI Control Peripheral Identification Register 5 1606 */ 1607 union ody_gti_ctl_pidr5 { 1608 uint32_t u; 1609 struct ody_gti_ctl_pidr5_s { 1610 uint32_t reserved_0_31 : 32; 1611 } s; 1612 /* struct ody_gti_ctl_pidr5_s cn; */ 1613 }; 1614 typedef union ody_gti_ctl_pidr5 ody_gti_ctl_pidr5_t; 1615 1616 #define ODY_GTI_CTL_PIDR5 ODY_GTI_CTL_PIDR5_FUNC() 1617 static inline uint64_t ODY_GTI_CTL_PIDR5_FUNC(void) __attribute__ ((pure, always_inline)); 1618 static inline uint64_t ODY_GTI_CTL_PIDR5_FUNC(void) 1619 { 1620 return 0x802000020fd4ll; 1621 } 1622 1623 #define typedef_ODY_GTI_CTL_PIDR5 ody_gti_ctl_pidr5_t 1624 #define bustype_ODY_GTI_CTL_PIDR5 CSR_TYPE_NCB32b 1625 #define basename_ODY_GTI_CTL_PIDR5 "GTI_CTL_PIDR5" 1626 #define device_bar_ODY_GTI_CTL_PIDR5 0x0 /* PF_BAR0 */ 1627 #define busnum_ODY_GTI_CTL_PIDR5 0 1628 #define arguments_ODY_GTI_CTL_PIDR5 -1, -1, -1, -1 1629 1630 /** 1631 * Register (NCB32b) gti_ctl_pidr6 1632 * 1633 * GTI Control Peripheral Identification Register 6 1634 */ 1635 union ody_gti_ctl_pidr6 { 1636 uint32_t u; 1637 struct ody_gti_ctl_pidr6_s { 1638 uint32_t reserved_0_31 : 32; 1639 } s; 1640 /* struct ody_gti_ctl_pidr6_s cn; */ 1641 }; 1642 typedef union ody_gti_ctl_pidr6 ody_gti_ctl_pidr6_t; 1643 1644 #define ODY_GTI_CTL_PIDR6 ODY_GTI_CTL_PIDR6_FUNC() 1645 static inline uint64_t ODY_GTI_CTL_PIDR6_FUNC(void) __attribute__ ((pure, always_inline)); 1646 static inline uint64_t ODY_GTI_CTL_PIDR6_FUNC(void) 1647 { 1648 return 0x802000020fd8ll; 1649 } 1650 1651 #define typedef_ODY_GTI_CTL_PIDR6 ody_gti_ctl_pidr6_t 1652 #define bustype_ODY_GTI_CTL_PIDR6 CSR_TYPE_NCB32b 1653 #define basename_ODY_GTI_CTL_PIDR6 "GTI_CTL_PIDR6" 1654 #define device_bar_ODY_GTI_CTL_PIDR6 0x0 /* PF_BAR0 */ 1655 #define busnum_ODY_GTI_CTL_PIDR6 0 1656 #define arguments_ODY_GTI_CTL_PIDR6 -1, -1, -1, -1 1657 1658 /** 1659 * Register (NCB32b) gti_ctl_pidr7 1660 * 1661 * GTI Control Peripheral Identification Register 7 1662 */ 1663 union ody_gti_ctl_pidr7 { 1664 uint32_t u; 1665 struct ody_gti_ctl_pidr7_s { 1666 uint32_t reserved_0_31 : 32; 1667 } s; 1668 /* struct ody_gti_ctl_pidr7_s cn; */ 1669 }; 1670 typedef union ody_gti_ctl_pidr7 ody_gti_ctl_pidr7_t; 1671 1672 #define ODY_GTI_CTL_PIDR7 ODY_GTI_CTL_PIDR7_FUNC() 1673 static inline uint64_t ODY_GTI_CTL_PIDR7_FUNC(void) __attribute__ ((pure, always_inline)); 1674 static inline uint64_t ODY_GTI_CTL_PIDR7_FUNC(void) 1675 { 1676 return 0x802000020fdcll; 1677 } 1678 1679 #define typedef_ODY_GTI_CTL_PIDR7 ody_gti_ctl_pidr7_t 1680 #define bustype_ODY_GTI_CTL_PIDR7 CSR_TYPE_NCB32b 1681 #define basename_ODY_GTI_CTL_PIDR7 "GTI_CTL_PIDR7" 1682 #define device_bar_ODY_GTI_CTL_PIDR7 0x0 /* PF_BAR0 */ 1683 #define busnum_ODY_GTI_CTL_PIDR7 0 1684 #define arguments_ODY_GTI_CTL_PIDR7 -1, -1, -1, -1 1685 1686 /** 1687 * Register (NCB) gti_cwd_del3t0 1688 * 1689 * GTI Per-core Watchdog SCP Interrupt Register 1690 * Generic timer per-core watchdog SCP interrupts from 0 to 63 core. 1691 */ 1692 union ody_gti_cwd_del3t0 { 1693 uint64_t u; 1694 struct ody_gti_cwd_del3t0_s { 1695 uint64_t core : 64; 1696 } s; 1697 /* struct ody_gti_cwd_del3t0_s cn; */ 1698 }; 1699 typedef union ody_gti_cwd_del3t0 ody_gti_cwd_del3t0_t; 1700 1701 #define ODY_GTI_CWD_DEL3T0 ODY_GTI_CWD_DEL3T0_FUNC() 1702 static inline uint64_t ODY_GTI_CWD_DEL3T0_FUNC(void) __attribute__ ((pure, always_inline)); 1703 static inline uint64_t ODY_GTI_CWD_DEL3T0_FUNC(void) 1704 { 1705 return 0x802000040880ll; 1706 } 1707 1708 #define typedef_ODY_GTI_CWD_DEL3T0 ody_gti_cwd_del3t0_t 1709 #define bustype_ODY_GTI_CWD_DEL3T0 CSR_TYPE_NCB 1710 #define basename_ODY_GTI_CWD_DEL3T0 "GTI_CWD_DEL3T0" 1711 #define device_bar_ODY_GTI_CWD_DEL3T0 0x0 /* PF_BAR0 */ 1712 #define busnum_ODY_GTI_CWD_DEL3T0 0 1713 #define arguments_ODY_GTI_CWD_DEL3T0 -1, -1, -1, -1 1714 1715 /** 1716 * Register (NCB) gti_cwd_del3t0_ena_clr 1717 * 1718 * GTI Per-core Watchdog Interrupt Enable Clear Register 1719 * This register clears interrupt enable bits. 1720 */ 1721 union ody_gti_cwd_del3t0_ena_clr { 1722 uint64_t u; 1723 struct ody_gti_cwd_del3t0_ena_clr_s { 1724 uint64_t core : 64; 1725 } s; 1726 /* struct ody_gti_cwd_del3t0_ena_clr_s cn; */ 1727 }; 1728 typedef union ody_gti_cwd_del3t0_ena_clr ody_gti_cwd_del3t0_ena_clr_t; 1729 1730 #define ODY_GTI_CWD_DEL3T0_ENA_CLR ODY_GTI_CWD_DEL3T0_ENA_CLR_FUNC() 1731 static inline uint64_t ODY_GTI_CWD_DEL3T0_ENA_CLR_FUNC(void) __attribute__ ((pure, always_inline)); 1732 static inline uint64_t ODY_GTI_CWD_DEL3T0_ENA_CLR_FUNC(void) 1733 { 1734 return 0x8020000408c0ll; 1735 } 1736 1737 #define typedef_ODY_GTI_CWD_DEL3T0_ENA_CLR ody_gti_cwd_del3t0_ena_clr_t 1738 #define bustype_ODY_GTI_CWD_DEL3T0_ENA_CLR CSR_TYPE_NCB 1739 #define basename_ODY_GTI_CWD_DEL3T0_ENA_CLR "GTI_CWD_DEL3T0_ENA_CLR" 1740 #define device_bar_ODY_GTI_CWD_DEL3T0_ENA_CLR 0x0 /* PF_BAR0 */ 1741 #define busnum_ODY_GTI_CWD_DEL3T0_ENA_CLR 0 1742 #define arguments_ODY_GTI_CWD_DEL3T0_ENA_CLR -1, -1, -1, -1 1743 1744 /** 1745 * Register (NCB) gti_cwd_del3t0_ena_set 1746 * 1747 * GTI Per-core Watchdog SCP Interrupt Enable Set Register 1748 * This register sets interrupt enable bits. 1749 */ 1750 union ody_gti_cwd_del3t0_ena_set { 1751 uint64_t u; 1752 struct ody_gti_cwd_del3t0_ena_set_s { 1753 uint64_t core : 64; 1754 } s; 1755 /* struct ody_gti_cwd_del3t0_ena_set_s cn; */ 1756 }; 1757 typedef union ody_gti_cwd_del3t0_ena_set ody_gti_cwd_del3t0_ena_set_t; 1758 1759 #define ODY_GTI_CWD_DEL3T0_ENA_SET ODY_GTI_CWD_DEL3T0_ENA_SET_FUNC() 1760 static inline uint64_t ODY_GTI_CWD_DEL3T0_ENA_SET_FUNC(void) __attribute__ ((pure, always_inline)); 1761 static inline uint64_t ODY_GTI_CWD_DEL3T0_ENA_SET_FUNC(void) 1762 { 1763 return 0x8020000408e0ll; 1764 } 1765 1766 #define typedef_ODY_GTI_CWD_DEL3T0_ENA_SET ody_gti_cwd_del3t0_ena_set_t 1767 #define bustype_ODY_GTI_CWD_DEL3T0_ENA_SET CSR_TYPE_NCB 1768 #define basename_ODY_GTI_CWD_DEL3T0_ENA_SET "GTI_CWD_DEL3T0_ENA_SET" 1769 #define device_bar_ODY_GTI_CWD_DEL3T0_ENA_SET 0x0 /* PF_BAR0 */ 1770 #define busnum_ODY_GTI_CWD_DEL3T0_ENA_SET 0 1771 #define arguments_ODY_GTI_CWD_DEL3T0_ENA_SET -1, -1, -1, -1 1772 1773 /** 1774 * Register (NCB) gti_cwd_del3t0_set 1775 * 1776 * GTI Per-core Watchdog SCP Interrupt Set Register 1777 * This register sets interrupt bits. 1778 */ 1779 union ody_gti_cwd_del3t0_set { 1780 uint64_t u; 1781 struct ody_gti_cwd_del3t0_set_s { 1782 uint64_t core : 64; 1783 } s; 1784 /* struct ody_gti_cwd_del3t0_set_s cn; */ 1785 }; 1786 typedef union ody_gti_cwd_del3t0_set ody_gti_cwd_del3t0_set_t; 1787 1788 #define ODY_GTI_CWD_DEL3T0_SET ODY_GTI_CWD_DEL3T0_SET_FUNC() 1789 static inline uint64_t ODY_GTI_CWD_DEL3T0_SET_FUNC(void) __attribute__ ((pure, always_inline)); 1790 static inline uint64_t ODY_GTI_CWD_DEL3T0_SET_FUNC(void) 1791 { 1792 return 0x8020000408a0ll; 1793 } 1794 1795 #define typedef_ODY_GTI_CWD_DEL3T0_SET ody_gti_cwd_del3t0_set_t 1796 #define bustype_ODY_GTI_CWD_DEL3T0_SET CSR_TYPE_NCB 1797 #define basename_ODY_GTI_CWD_DEL3T0_SET "GTI_CWD_DEL3T0_SET" 1798 #define device_bar_ODY_GTI_CWD_DEL3T0_SET 0x0 /* PF_BAR0 */ 1799 #define busnum_ODY_GTI_CWD_DEL3T0_SET 0 1800 #define arguments_ODY_GTI_CWD_DEL3T0_SET -1, -1, -1, -1 1801 1802 /** 1803 * Register (NCB) gti_cwd_del3t1 1804 * 1805 * GTI Per-core Watchdog SCP Interrupt Register 1806 * Generic timer per-core watchdog SCP interrupts from 64 to 81 core. 1807 */ 1808 union ody_gti_cwd_del3t1 { 1809 uint64_t u; 1810 struct ody_gti_cwd_del3t1_s { 1811 uint64_t core : 18; 1812 uint64_t reserved_18_63 : 46; 1813 } s; 1814 /* struct ody_gti_cwd_del3t1_s cn; */ 1815 }; 1816 typedef union ody_gti_cwd_del3t1 ody_gti_cwd_del3t1_t; 1817 1818 #define ODY_GTI_CWD_DEL3T1 ODY_GTI_CWD_DEL3T1_FUNC() 1819 static inline uint64_t ODY_GTI_CWD_DEL3T1_FUNC(void) __attribute__ ((pure, always_inline)); 1820 static inline uint64_t ODY_GTI_CWD_DEL3T1_FUNC(void) 1821 { 1822 return 0x802000040888ll; 1823 } 1824 1825 #define typedef_ODY_GTI_CWD_DEL3T1 ody_gti_cwd_del3t1_t 1826 #define bustype_ODY_GTI_CWD_DEL3T1 CSR_TYPE_NCB 1827 #define basename_ODY_GTI_CWD_DEL3T1 "GTI_CWD_DEL3T1" 1828 #define device_bar_ODY_GTI_CWD_DEL3T1 0x0 /* PF_BAR0 */ 1829 #define busnum_ODY_GTI_CWD_DEL3T1 0 1830 #define arguments_ODY_GTI_CWD_DEL3T1 -1, -1, -1, -1 1831 1832 /** 1833 * Register (NCB) gti_cwd_del3t1_ena_clr 1834 * 1835 * GTI Per-core Watchdog Interrupt Enable Clear Register 1836 * This register clears interrupt enable bits. 1837 */ 1838 union ody_gti_cwd_del3t1_ena_clr { 1839 uint64_t u; 1840 struct ody_gti_cwd_del3t1_ena_clr_s { 1841 uint64_t core : 18; 1842 uint64_t reserved_18_63 : 46; 1843 } s; 1844 /* struct ody_gti_cwd_del3t1_ena_clr_s cn; */ 1845 }; 1846 typedef union ody_gti_cwd_del3t1_ena_clr ody_gti_cwd_del3t1_ena_clr_t; 1847 1848 #define ODY_GTI_CWD_DEL3T1_ENA_CLR ODY_GTI_CWD_DEL3T1_ENA_CLR_FUNC() 1849 static inline uint64_t ODY_GTI_CWD_DEL3T1_ENA_CLR_FUNC(void) __attribute__ ((pure, always_inline)); 1850 static inline uint64_t ODY_GTI_CWD_DEL3T1_ENA_CLR_FUNC(void) 1851 { 1852 return 0x8020000408c8ll; 1853 } 1854 1855 #define typedef_ODY_GTI_CWD_DEL3T1_ENA_CLR ody_gti_cwd_del3t1_ena_clr_t 1856 #define bustype_ODY_GTI_CWD_DEL3T1_ENA_CLR CSR_TYPE_NCB 1857 #define basename_ODY_GTI_CWD_DEL3T1_ENA_CLR "GTI_CWD_DEL3T1_ENA_CLR" 1858 #define device_bar_ODY_GTI_CWD_DEL3T1_ENA_CLR 0x0 /* PF_BAR0 */ 1859 #define busnum_ODY_GTI_CWD_DEL3T1_ENA_CLR 0 1860 #define arguments_ODY_GTI_CWD_DEL3T1_ENA_CLR -1, -1, -1, -1 1861 1862 /** 1863 * Register (NCB) gti_cwd_del3t1_ena_set 1864 * 1865 * GTI Per-core Watchdog SCP Interrupt Enable Set Register 1866 * This register sets interrupt enable bits. 1867 */ 1868 union ody_gti_cwd_del3t1_ena_set { 1869 uint64_t u; 1870 struct ody_gti_cwd_del3t1_ena_set_s { 1871 uint64_t core : 18; 1872 uint64_t reserved_18_63 : 46; 1873 } s; 1874 /* struct ody_gti_cwd_del3t1_ena_set_s cn; */ 1875 }; 1876 typedef union ody_gti_cwd_del3t1_ena_set ody_gti_cwd_del3t1_ena_set_t; 1877 1878 #define ODY_GTI_CWD_DEL3T1_ENA_SET ODY_GTI_CWD_DEL3T1_ENA_SET_FUNC() 1879 static inline uint64_t ODY_GTI_CWD_DEL3T1_ENA_SET_FUNC(void) __attribute__ ((pure, always_inline)); 1880 static inline uint64_t ODY_GTI_CWD_DEL3T1_ENA_SET_FUNC(void) 1881 { 1882 return 0x8020000408e8ll; 1883 } 1884 1885 #define typedef_ODY_GTI_CWD_DEL3T1_ENA_SET ody_gti_cwd_del3t1_ena_set_t 1886 #define bustype_ODY_GTI_CWD_DEL3T1_ENA_SET CSR_TYPE_NCB 1887 #define basename_ODY_GTI_CWD_DEL3T1_ENA_SET "GTI_CWD_DEL3T1_ENA_SET" 1888 #define device_bar_ODY_GTI_CWD_DEL3T1_ENA_SET 0x0 /* PF_BAR0 */ 1889 #define busnum_ODY_GTI_CWD_DEL3T1_ENA_SET 0 1890 #define arguments_ODY_GTI_CWD_DEL3T1_ENA_SET -1, -1, -1, -1 1891 1892 /** 1893 * Register (NCB) gti_cwd_del3t1_set 1894 * 1895 * GTI Per-core Watchdog SCP Interrupt Set Register 1896 * This register sets interrupt bits. 1897 */ 1898 union ody_gti_cwd_del3t1_set { 1899 uint64_t u; 1900 struct ody_gti_cwd_del3t1_set_s { 1901 uint64_t core : 18; 1902 uint64_t reserved_18_63 : 46; 1903 } s; 1904 /* struct ody_gti_cwd_del3t1_set_s cn; */ 1905 }; 1906 typedef union ody_gti_cwd_del3t1_set ody_gti_cwd_del3t1_set_t; 1907 1908 #define ODY_GTI_CWD_DEL3T1_SET ODY_GTI_CWD_DEL3T1_SET_FUNC() 1909 static inline uint64_t ODY_GTI_CWD_DEL3T1_SET_FUNC(void) __attribute__ ((pure, always_inline)); 1910 static inline uint64_t ODY_GTI_CWD_DEL3T1_SET_FUNC(void) 1911 { 1912 return 0x8020000408a8ll; 1913 } 1914 1915 #define typedef_ODY_GTI_CWD_DEL3T1_SET ody_gti_cwd_del3t1_set_t 1916 #define bustype_ODY_GTI_CWD_DEL3T1_SET CSR_TYPE_NCB 1917 #define basename_ODY_GTI_CWD_DEL3T1_SET "GTI_CWD_DEL3T1_SET" 1918 #define device_bar_ODY_GTI_CWD_DEL3T1_SET 0x0 /* PF_BAR0 */ 1919 #define busnum_ODY_GTI_CWD_DEL3T1_SET 0 1920 #define arguments_ODY_GTI_CWD_DEL3T1_SET -1, -1, -1, -1 1921 1922 /** 1923 * Register (NCB) gti_cwd_int0 1924 * 1925 * GTI Per-core Watchdog Interrupt Register 1926 * Generic timer per-core watchdog interrupts from 0 to 63 core. 1927 */ 1928 union ody_gti_cwd_int0 { 1929 uint64_t u; 1930 struct ody_gti_cwd_int0_s { 1931 uint64_t core : 64; 1932 } s; 1933 /* struct ody_gti_cwd_int0_s cn; */ 1934 }; 1935 typedef union ody_gti_cwd_int0 ody_gti_cwd_int0_t; 1936 1937 #define ODY_GTI_CWD_INT0 ODY_GTI_CWD_INT0_FUNC() 1938 static inline uint64_t ODY_GTI_CWD_INT0_FUNC(void) __attribute__ ((pure, always_inline)); 1939 static inline uint64_t ODY_GTI_CWD_INT0_FUNC(void) 1940 { 1941 return 0x802000040800ll; 1942 } 1943 1944 #define typedef_ODY_GTI_CWD_INT0 ody_gti_cwd_int0_t 1945 #define bustype_ODY_GTI_CWD_INT0 CSR_TYPE_NCB 1946 #define basename_ODY_GTI_CWD_INT0 "GTI_CWD_INT0" 1947 #define device_bar_ODY_GTI_CWD_INT0 0x0 /* PF_BAR0 */ 1948 #define busnum_ODY_GTI_CWD_INT0 0 1949 #define arguments_ODY_GTI_CWD_INT0 -1, -1, -1, -1 1950 1951 /** 1952 * Register (NCB) gti_cwd_int0_ena_clr 1953 * 1954 * GTI Per-core Watchdog Interrupt Enable Clear Register 1955 * This register clears interrupt enable bits. 1956 */ 1957 union ody_gti_cwd_int0_ena_clr { 1958 uint64_t u; 1959 struct ody_gti_cwd_int0_ena_clr_s { 1960 uint64_t core : 64; 1961 } s; 1962 /* struct ody_gti_cwd_int0_ena_clr_s cn; */ 1963 }; 1964 typedef union ody_gti_cwd_int0_ena_clr ody_gti_cwd_int0_ena_clr_t; 1965 1966 #define ODY_GTI_CWD_INT0_ENA_CLR ODY_GTI_CWD_INT0_ENA_CLR_FUNC() 1967 static inline uint64_t ODY_GTI_CWD_INT0_ENA_CLR_FUNC(void) __attribute__ ((pure, always_inline)); 1968 static inline uint64_t ODY_GTI_CWD_INT0_ENA_CLR_FUNC(void) 1969 { 1970 return 0x802000040840ll; 1971 } 1972 1973 #define typedef_ODY_GTI_CWD_INT0_ENA_CLR ody_gti_cwd_int0_ena_clr_t 1974 #define bustype_ODY_GTI_CWD_INT0_ENA_CLR CSR_TYPE_NCB 1975 #define basename_ODY_GTI_CWD_INT0_ENA_CLR "GTI_CWD_INT0_ENA_CLR" 1976 #define device_bar_ODY_GTI_CWD_INT0_ENA_CLR 0x0 /* PF_BAR0 */ 1977 #define busnum_ODY_GTI_CWD_INT0_ENA_CLR 0 1978 #define arguments_ODY_GTI_CWD_INT0_ENA_CLR -1, -1, -1, -1 1979 1980 /** 1981 * Register (NCB) gti_cwd_int0_ena_set 1982 * 1983 * GTI Per-core Watchdog Interrupt Enable Set Register 1984 * This register sets interrupt enable bits. 1985 */ 1986 union ody_gti_cwd_int0_ena_set { 1987 uint64_t u; 1988 struct ody_gti_cwd_int0_ena_set_s { 1989 uint64_t core : 64; 1990 } s; 1991 /* struct ody_gti_cwd_int0_ena_set_s cn; */ 1992 }; 1993 typedef union ody_gti_cwd_int0_ena_set ody_gti_cwd_int0_ena_set_t; 1994 1995 #define ODY_GTI_CWD_INT0_ENA_SET ODY_GTI_CWD_INT0_ENA_SET_FUNC() 1996 static inline uint64_t ODY_GTI_CWD_INT0_ENA_SET_FUNC(void) __attribute__ ((pure, always_inline)); 1997 static inline uint64_t ODY_GTI_CWD_INT0_ENA_SET_FUNC(void) 1998 { 1999 return 0x802000040860ll; 2000 } 2001 2002 #define typedef_ODY_GTI_CWD_INT0_ENA_SET ody_gti_cwd_int0_ena_set_t 2003 #define bustype_ODY_GTI_CWD_INT0_ENA_SET CSR_TYPE_NCB 2004 #define basename_ODY_GTI_CWD_INT0_ENA_SET "GTI_CWD_INT0_ENA_SET" 2005 #define device_bar_ODY_GTI_CWD_INT0_ENA_SET 0x0 /* PF_BAR0 */ 2006 #define busnum_ODY_GTI_CWD_INT0_ENA_SET 0 2007 #define arguments_ODY_GTI_CWD_INT0_ENA_SET -1, -1, -1, -1 2008 2009 /** 2010 * Register (NCB) gti_cwd_int0_set 2011 * 2012 * GTI Per-core Watchdog Interrupt Set Register 2013 * This register sets interrupt bits. 2014 */ 2015 union ody_gti_cwd_int0_set { 2016 uint64_t u; 2017 struct ody_gti_cwd_int0_set_s { 2018 uint64_t core : 64; 2019 } s; 2020 /* struct ody_gti_cwd_int0_set_s cn; */ 2021 }; 2022 typedef union ody_gti_cwd_int0_set ody_gti_cwd_int0_set_t; 2023 2024 #define ODY_GTI_CWD_INT0_SET ODY_GTI_CWD_INT0_SET_FUNC() 2025 static inline uint64_t ODY_GTI_CWD_INT0_SET_FUNC(void) __attribute__ ((pure, always_inline)); 2026 static inline uint64_t ODY_GTI_CWD_INT0_SET_FUNC(void) 2027 { 2028 return 0x802000040820ll; 2029 } 2030 2031 #define typedef_ODY_GTI_CWD_INT0_SET ody_gti_cwd_int0_set_t 2032 #define bustype_ODY_GTI_CWD_INT0_SET CSR_TYPE_NCB 2033 #define basename_ODY_GTI_CWD_INT0_SET "GTI_CWD_INT0_SET" 2034 #define device_bar_ODY_GTI_CWD_INT0_SET 0x0 /* PF_BAR0 */ 2035 #define busnum_ODY_GTI_CWD_INT0_SET 0 2036 #define arguments_ODY_GTI_CWD_INT0_SET -1, -1, -1, -1 2037 2038 /** 2039 * Register (NCB) gti_cwd_int1 2040 * 2041 * GTI Per-core Watchdog Interrupt Register 2042 * Generic timer per-core watchdog interrupts from 64 to 81 core. 2043 */ 2044 union ody_gti_cwd_int1 { 2045 uint64_t u; 2046 struct ody_gti_cwd_int1_s { 2047 uint64_t core : 18; 2048 uint64_t reserved_18_63 : 46; 2049 } s; 2050 /* struct ody_gti_cwd_int1_s cn; */ 2051 }; 2052 typedef union ody_gti_cwd_int1 ody_gti_cwd_int1_t; 2053 2054 #define ODY_GTI_CWD_INT1 ODY_GTI_CWD_INT1_FUNC() 2055 static inline uint64_t ODY_GTI_CWD_INT1_FUNC(void) __attribute__ ((pure, always_inline)); 2056 static inline uint64_t ODY_GTI_CWD_INT1_FUNC(void) 2057 { 2058 return 0x802000040808ll; 2059 } 2060 2061 #define typedef_ODY_GTI_CWD_INT1 ody_gti_cwd_int1_t 2062 #define bustype_ODY_GTI_CWD_INT1 CSR_TYPE_NCB 2063 #define basename_ODY_GTI_CWD_INT1 "GTI_CWD_INT1" 2064 #define device_bar_ODY_GTI_CWD_INT1 0x0 /* PF_BAR0 */ 2065 #define busnum_ODY_GTI_CWD_INT1 0 2066 #define arguments_ODY_GTI_CWD_INT1 -1, -1, -1, -1 2067 2068 /** 2069 * Register (NCB) gti_cwd_int1_ena_clr 2070 * 2071 * GTI Per-core Watchdog Interrupt Enable Clear Register 2072 * This register clears interrupt enable bits. 2073 */ 2074 union ody_gti_cwd_int1_ena_clr { 2075 uint64_t u; 2076 struct ody_gti_cwd_int1_ena_clr_s { 2077 uint64_t core : 18; 2078 uint64_t reserved_18_63 : 46; 2079 } s; 2080 /* struct ody_gti_cwd_int1_ena_clr_s cn; */ 2081 }; 2082 typedef union ody_gti_cwd_int1_ena_clr ody_gti_cwd_int1_ena_clr_t; 2083 2084 #define ODY_GTI_CWD_INT1_ENA_CLR ODY_GTI_CWD_INT1_ENA_CLR_FUNC() 2085 static inline uint64_t ODY_GTI_CWD_INT1_ENA_CLR_FUNC(void) __attribute__ ((pure, always_inline)); 2086 static inline uint64_t ODY_GTI_CWD_INT1_ENA_CLR_FUNC(void) 2087 { 2088 return 0x802000040848ll; 2089 } 2090 2091 #define typedef_ODY_GTI_CWD_INT1_ENA_CLR ody_gti_cwd_int1_ena_clr_t 2092 #define bustype_ODY_GTI_CWD_INT1_ENA_CLR CSR_TYPE_NCB 2093 #define basename_ODY_GTI_CWD_INT1_ENA_CLR "GTI_CWD_INT1_ENA_CLR" 2094 #define device_bar_ODY_GTI_CWD_INT1_ENA_CLR 0x0 /* PF_BAR0 */ 2095 #define busnum_ODY_GTI_CWD_INT1_ENA_CLR 0 2096 #define arguments_ODY_GTI_CWD_INT1_ENA_CLR -1, -1, -1, -1 2097 2098 /** 2099 * Register (NCB) gti_cwd_int1_ena_set 2100 * 2101 * GTI Per-core Watchdog Interrupt Enable Set Register 2102 * This register sets interrupt enable bits. 2103 */ 2104 union ody_gti_cwd_int1_ena_set { 2105 uint64_t u; 2106 struct ody_gti_cwd_int1_ena_set_s { 2107 uint64_t core : 18; 2108 uint64_t reserved_18_63 : 46; 2109 } s; 2110 /* struct ody_gti_cwd_int1_ena_set_s cn; */ 2111 }; 2112 typedef union ody_gti_cwd_int1_ena_set ody_gti_cwd_int1_ena_set_t; 2113 2114 #define ODY_GTI_CWD_INT1_ENA_SET ODY_GTI_CWD_INT1_ENA_SET_FUNC() 2115 static inline uint64_t ODY_GTI_CWD_INT1_ENA_SET_FUNC(void) __attribute__ ((pure, always_inline)); 2116 static inline uint64_t ODY_GTI_CWD_INT1_ENA_SET_FUNC(void) 2117 { 2118 return 0x802000040868ll; 2119 } 2120 2121 #define typedef_ODY_GTI_CWD_INT1_ENA_SET ody_gti_cwd_int1_ena_set_t 2122 #define bustype_ODY_GTI_CWD_INT1_ENA_SET CSR_TYPE_NCB 2123 #define basename_ODY_GTI_CWD_INT1_ENA_SET "GTI_CWD_INT1_ENA_SET" 2124 #define device_bar_ODY_GTI_CWD_INT1_ENA_SET 0x0 /* PF_BAR0 */ 2125 #define busnum_ODY_GTI_CWD_INT1_ENA_SET 0 2126 #define arguments_ODY_GTI_CWD_INT1_ENA_SET -1, -1, -1, -1 2127 2128 /** 2129 * Register (NCB) gti_cwd_int1_set 2130 * 2131 * GTI Per-core Watchdog Interrupt Set Register 2132 * This register sets interrupt bits. 2133 */ 2134 union ody_gti_cwd_int1_set { 2135 uint64_t u; 2136 struct ody_gti_cwd_int1_set_s { 2137 uint64_t core : 18; 2138 uint64_t reserved_18_63 : 46; 2139 } s; 2140 /* struct ody_gti_cwd_int1_set_s cn; */ 2141 }; 2142 typedef union ody_gti_cwd_int1_set ody_gti_cwd_int1_set_t; 2143 2144 #define ODY_GTI_CWD_INT1_SET ODY_GTI_CWD_INT1_SET_FUNC() 2145 static inline uint64_t ODY_GTI_CWD_INT1_SET_FUNC(void) __attribute__ ((pure, always_inline)); 2146 static inline uint64_t ODY_GTI_CWD_INT1_SET_FUNC(void) 2147 { 2148 return 0x802000040828ll; 2149 } 2150 2151 #define typedef_ODY_GTI_CWD_INT1_SET ody_gti_cwd_int1_set_t 2152 #define bustype_ODY_GTI_CWD_INT1_SET CSR_TYPE_NCB 2153 #define basename_ODY_GTI_CWD_INT1_SET "GTI_CWD_INT1_SET" 2154 #define device_bar_ODY_GTI_CWD_INT1_SET 0x0 /* PF_BAR0 */ 2155 #define busnum_ODY_GTI_CWD_INT1_SET 0 2156 #define arguments_ODY_GTI_CWD_INT1_SET -1, -1, -1, -1 2157 2158 /** 2159 * Register (NCB) gti_cwd_poke# 2160 * 2161 * GTI Per-core Watchdog Poke Registers 2162 * Per-core watchdog poke. Writing any value to this register does the following: 2163 * * Clears any pending interrupt generated by the associated watchdog. 2164 * * Resets GTI_CWD_WDOG()[STATE] to 0x0. 2165 * * Sets GTI_CWD_WDOG()[CNT] to (GTI_CWD_WDOG()[LEN] \<\< 8). 2166 * 2167 * Reading this register returns the associated GTI_CWD_WDOG() register. 2168 */ 2169 union ody_gti_cwd_pokex { 2170 uint64_t u; 2171 struct ody_gti_cwd_pokex_s { 2172 uint64_t mode : 2; 2173 uint64_t state : 2; 2174 uint64_t len : 16; 2175 uint64_t cnt : 24; 2176 uint64_t dstop : 1; 2177 uint64_t gstop : 1; 2178 uint64_t zero : 18; 2179 } s; 2180 /* struct ody_gti_cwd_pokex_s cn; */ 2181 }; 2182 typedef union ody_gti_cwd_pokex ody_gti_cwd_pokex_t; 2183 2184 static inline uint64_t ODY_GTI_CWD_POKEX(uint64_t a) __attribute__ ((pure, always_inline)); 2185 static inline uint64_t ODY_GTI_CWD_POKEX(uint64_t a) 2186 { 2187 if (a <= 81) 2188 return 0x802000050000ll + 8ll * ((a) & 0x7f); 2189 __ody_csr_fatal("GTI_CWD_POKEX", 1, a, 0, 0, 0, 0, 0); 2190 } 2191 2192 #define typedef_ODY_GTI_CWD_POKEX(a) ody_gti_cwd_pokex_t 2193 #define bustype_ODY_GTI_CWD_POKEX(a) CSR_TYPE_NCB 2194 #define basename_ODY_GTI_CWD_POKEX(a) "GTI_CWD_POKEX" 2195 #define device_bar_ODY_GTI_CWD_POKEX(a) 0x0 /* PF_BAR0 */ 2196 #define busnum_ODY_GTI_CWD_POKEX(a) (a) 2197 #define arguments_ODY_GTI_CWD_POKEX(a) (a), -1, -1, -1 2198 2199 /** 2200 * Register (NCB) gti_cwd_wdog0# 2201 * 2202 * GTI CWD Watchdog Registers 2203 * These registers allow configuring the per-core watchdogs. The number of per-core 2204 * (from 0 to 63 core: first 64 cores) 2205 * watchdogs exceeds the number of cores; software may leave the remaining unused, or 2206 * use them for other purposes. 2207 */ 2208 union ody_gti_cwd_wdog0x { 2209 uint64_t u; 2210 struct ody_gti_cwd_wdog0x_s { 2211 uint64_t mode : 2; 2212 uint64_t state : 2; 2213 uint64_t len : 16; 2214 uint64_t cnt : 24; 2215 uint64_t dstop : 1; 2216 uint64_t gstop : 1; 2217 uint64_t reserved_46_63 : 18; 2218 } s; 2219 /* struct ody_gti_cwd_wdog0x_s cn; */ 2220 }; 2221 typedef union ody_gti_cwd_wdog0x ody_gti_cwd_wdog0x_t; 2222 2223 static inline uint64_t ODY_GTI_CWD_WDOG0X(uint64_t a) __attribute__ ((pure, always_inline)); 2224 static inline uint64_t ODY_GTI_CWD_WDOG0X(uint64_t a) 2225 { 2226 if (a <= 63) 2227 return 0x802000040000ll + 8ll * ((a) & 0x3f); 2228 __ody_csr_fatal("GTI_CWD_WDOG0X", 1, a, 0, 0, 0, 0, 0); 2229 } 2230 2231 #define typedef_ODY_GTI_CWD_WDOG0X(a) ody_gti_cwd_wdog0x_t 2232 #define bustype_ODY_GTI_CWD_WDOG0X(a) CSR_TYPE_NCB 2233 #define basename_ODY_GTI_CWD_WDOG0X(a) "GTI_CWD_WDOG0X" 2234 #define device_bar_ODY_GTI_CWD_WDOG0X(a) 0x0 /* PF_BAR0 */ 2235 #define busnum_ODY_GTI_CWD_WDOG0X(a) (a) 2236 #define arguments_ODY_GTI_CWD_WDOG0X(a) (a), -1, -1, -1 2237 2238 /** 2239 * Register (NCB) gti_cwd_wdog1# 2240 * 2241 * GTI CWD Watchdog Registers 2242 * These registers allow configuring the per-core watchdogs. The number of per-core 2243 * (next cores from 64 to 81: total 82 cores) 2244 * watchdogs exceeds the number of cores; software may leave the remaining unused, or 2245 * use them for other purposes. 2246 */ 2247 union ody_gti_cwd_wdog1x { 2248 uint64_t u; 2249 struct ody_gti_cwd_wdog1x_s { 2250 uint64_t mode : 2; 2251 uint64_t state : 2; 2252 uint64_t len : 16; 2253 uint64_t cnt : 24; 2254 uint64_t dstop : 1; 2255 uint64_t gstop : 1; 2256 uint64_t reserved_46_63 : 18; 2257 } s; 2258 /* struct ody_gti_cwd_wdog1x_s cn; */ 2259 }; 2260 typedef union ody_gti_cwd_wdog1x ody_gti_cwd_wdog1x_t; 2261 2262 static inline uint64_t ODY_GTI_CWD_WDOG1X(uint64_t a) __attribute__ ((pure, always_inline)); 2263 static inline uint64_t ODY_GTI_CWD_WDOG1X(uint64_t a) 2264 { 2265 if (a <= 17) 2266 return 0x802000040200ll + 8ll * ((a) & 0x1f); 2267 __ody_csr_fatal("GTI_CWD_WDOG1X", 1, a, 0, 0, 0, 0, 0); 2268 } 2269 2270 #define typedef_ODY_GTI_CWD_WDOG1X(a) ody_gti_cwd_wdog1x_t 2271 #define bustype_ODY_GTI_CWD_WDOG1X(a) CSR_TYPE_NCB 2272 #define basename_ODY_GTI_CWD_WDOG1X(a) "GTI_CWD_WDOG1X" 2273 #define device_bar_ODY_GTI_CWD_WDOG1X(a) 0x0 /* PF_BAR0 */ 2274 #define busnum_ODY_GTI_CWD_WDOG1X(a) (a) 2275 #define arguments_ODY_GTI_CWD_WDOG1X(a) (a), -1, -1, -1 2276 2277 /** 2278 * Register (NCB32b) gti_force_clken 2279 * 2280 * GTI Force Clock Enable Register 2281 */ 2282 union ody_gti_force_clken { 2283 uint32_t u; 2284 struct ody_gti_force_clken_s { 2285 uint32_t clken : 1; 2286 uint32_t reserved_1_31 : 31; 2287 } s; 2288 /* struct ody_gti_force_clken_s cn; */ 2289 }; 2290 typedef union ody_gti_force_clken ody_gti_force_clken_t; 2291 2292 #define ODY_GTI_FORCE_CLKEN ODY_GTI_FORCE_CLKEN_FUNC() 2293 static inline uint64_t ODY_GTI_FORCE_CLKEN_FUNC(void) __attribute__ ((pure, always_inline)); 2294 static inline uint64_t ODY_GTI_FORCE_CLKEN_FUNC(void) 2295 { 2296 return 0x8020000e0000ll; 2297 } 2298 2299 #define typedef_ODY_GTI_FORCE_CLKEN ody_gti_force_clken_t 2300 #define bustype_ODY_GTI_FORCE_CLKEN CSR_TYPE_NCB32b 2301 #define basename_ODY_GTI_FORCE_CLKEN "GTI_FORCE_CLKEN" 2302 #define device_bar_ODY_GTI_FORCE_CLKEN 0x0 /* PF_BAR0 */ 2303 #define busnum_ODY_GTI_FORCE_CLKEN 0 2304 #define arguments_ODY_GTI_FORCE_CLKEN -1, -1, -1, -1 2305 2306 /** 2307 * Register (NCB32b) gti_imp_const 2308 * 2309 * GTI Implementation Constant Register 2310 */ 2311 union ody_gti_imp_const { 2312 uint32_t u; 2313 struct ody_gti_imp_const_s { 2314 uint32_t wdogs : 8; 2315 uint32_t reserved_8_31 : 24; 2316 } s; 2317 /* struct ody_gti_imp_const_s cn; */ 2318 }; 2319 typedef union ody_gti_imp_const ody_gti_imp_const_t; 2320 2321 #define ODY_GTI_IMP_CONST ODY_GTI_IMP_CONST_FUNC() 2322 static inline uint64_t ODY_GTI_IMP_CONST_FUNC(void) __attribute__ ((pure, always_inline)); 2323 static inline uint64_t ODY_GTI_IMP_CONST_FUNC(void) 2324 { 2325 return 0x8020000e0010ll; 2326 } 2327 2328 #define typedef_ODY_GTI_IMP_CONST ody_gti_imp_const_t 2329 #define bustype_ODY_GTI_IMP_CONST CSR_TYPE_NCB32b 2330 #define basename_ODY_GTI_IMP_CONST "GTI_IMP_CONST" 2331 #define device_bar_ODY_GTI_IMP_CONST 0x0 /* PF_BAR0 */ 2332 #define busnum_ODY_GTI_IMP_CONST 0 2333 #define arguments_ODY_GTI_IMP_CONST -1, -1, -1, -1 2334 2335 /** 2336 * Register (NCB) gti_msix_pba# 2337 * 2338 * GTI MSI-X Pending Bit Array Registers 2339 * This register is the MSI-X PBA table, the bit number is indexed by the GTI_INT_VEC_E enumeration. 2340 */ 2341 union ody_gti_msix_pbax { 2342 uint64_t u; 2343 struct ody_gti_msix_pbax_s { 2344 uint64_t pend : 64; 2345 } s; 2346 /* struct ody_gti_msix_pbax_s cn; */ 2347 }; 2348 typedef union ody_gti_msix_pbax ody_gti_msix_pbax_t; 2349 2350 static inline uint64_t ODY_GTI_MSIX_PBAX(uint64_t a) __attribute__ ((pure, always_inline)); 2351 static inline uint64_t ODY_GTI_MSIX_PBAX(uint64_t a) 2352 { 2353 if (a <= 2) 2354 return 0x80200f0f0000ll + 8ll * ((a) & 0x3); 2355 __ody_csr_fatal("GTI_MSIX_PBAX", 1, a, 0, 0, 0, 0, 0); 2356 } 2357 2358 #define typedef_ODY_GTI_MSIX_PBAX(a) ody_gti_msix_pbax_t 2359 #define bustype_ODY_GTI_MSIX_PBAX(a) CSR_TYPE_NCB 2360 #define basename_ODY_GTI_MSIX_PBAX(a) "GTI_MSIX_PBAX" 2361 #define device_bar_ODY_GTI_MSIX_PBAX(a) 0x4 /* PF_BAR4 */ 2362 #define busnum_ODY_GTI_MSIX_PBAX(a) (a) 2363 #define arguments_ODY_GTI_MSIX_PBAX(a) (a), -1, -1, -1 2364 2365 /** 2366 * Register (NCB) gti_msix_vec#_addr 2367 * 2368 * GTI MSI-X Vector Table Address Registers 2369 * This register is the MSI-X vector table, indexed by the GTI_INT_VEC_E enumeration. 2370 */ 2371 union ody_gti_msix_vecx_addr { 2372 uint64_t u; 2373 struct ody_gti_msix_vecx_addr_s { 2374 uint64_t secvec : 1; 2375 uint64_t reserved_1 : 1; 2376 uint64_t addr : 51; 2377 uint64_t reserved_53_63 : 11; 2378 } s; 2379 /* struct ody_gti_msix_vecx_addr_s cn; */ 2380 }; 2381 typedef union ody_gti_msix_vecx_addr ody_gti_msix_vecx_addr_t; 2382 2383 static inline uint64_t ODY_GTI_MSIX_VECX_ADDR(uint64_t a) __attribute__ ((pure, always_inline)); 2384 static inline uint64_t ODY_GTI_MSIX_VECX_ADDR(uint64_t a) 2385 { 2386 if (a <= 173) 2387 return 0x80200f000000ll + 0x10ll * ((a) & 0xff); 2388 __ody_csr_fatal("GTI_MSIX_VECX_ADDR", 1, a, 0, 0, 0, 0, 0); 2389 } 2390 2391 #define typedef_ODY_GTI_MSIX_VECX_ADDR(a) ody_gti_msix_vecx_addr_t 2392 #define bustype_ODY_GTI_MSIX_VECX_ADDR(a) CSR_TYPE_NCB 2393 #define basename_ODY_GTI_MSIX_VECX_ADDR(a) "GTI_MSIX_VECX_ADDR" 2394 #define device_bar_ODY_GTI_MSIX_VECX_ADDR(a) 0x4 /* PF_BAR4 */ 2395 #define busnum_ODY_GTI_MSIX_VECX_ADDR(a) (a) 2396 #define arguments_ODY_GTI_MSIX_VECX_ADDR(a) (a), -1, -1, -1 2397 2398 /** 2399 * Register (NCB) gti_msix_vec#_ctl 2400 * 2401 * GTI MSI-X Vector Table Control and Data Registers 2402 * This register is the MSI-X vector table, indexed by the GTI_INT_VEC_E enumeration. 2403 */ 2404 union ody_gti_msix_vecx_ctl { 2405 uint64_t u; 2406 struct ody_gti_msix_vecx_ctl_s { 2407 uint64_t data : 32; 2408 uint64_t mask : 1; 2409 uint64_t reserved_33_63 : 31; 2410 } s; 2411 /* struct ody_gti_msix_vecx_ctl_s cn; */ 2412 }; 2413 typedef union ody_gti_msix_vecx_ctl ody_gti_msix_vecx_ctl_t; 2414 2415 static inline uint64_t ODY_GTI_MSIX_VECX_CTL(uint64_t a) __attribute__ ((pure, always_inline)); 2416 static inline uint64_t ODY_GTI_MSIX_VECX_CTL(uint64_t a) 2417 { 2418 if (a <= 173) 2419 return 0x80200f000008ll + 0x10ll * ((a) & 0xff); 2420 __ody_csr_fatal("GTI_MSIX_VECX_CTL", 1, a, 0, 0, 0, 0, 0); 2421 } 2422 2423 #define typedef_ODY_GTI_MSIX_VECX_CTL(a) ody_gti_msix_vecx_ctl_t 2424 #define bustype_ODY_GTI_MSIX_VECX_CTL(a) CSR_TYPE_NCB 2425 #define basename_ODY_GTI_MSIX_VECX_CTL(a) "GTI_MSIX_VECX_CTL" 2426 #define device_bar_ODY_GTI_MSIX_VECX_CTL(a) 0x4 /* PF_BAR4 */ 2427 #define busnum_ODY_GTI_MSIX_VECX_CTL(a) (a) 2428 #define arguments_ODY_GTI_MSIX_VECX_CTL(a) (a), -1, -1, -1 2429 2430 /** 2431 * Register (NCB32b) gti_rd_cidr0 2432 * 2433 * GTI Counter Read Component Identification Register 0 2434 */ 2435 union ody_gti_rd_cidr0 { 2436 uint32_t u; 2437 struct ody_gti_rd_cidr0_s { 2438 uint32_t preamble : 8; 2439 uint32_t reserved_8_31 : 24; 2440 } s; 2441 /* struct ody_gti_rd_cidr0_s cn; */ 2442 }; 2443 typedef union ody_gti_rd_cidr0 ody_gti_rd_cidr0_t; 2444 2445 #define ODY_GTI_RD_CIDR0 ODY_GTI_RD_CIDR0_FUNC() 2446 static inline uint64_t ODY_GTI_RD_CIDR0_FUNC(void) __attribute__ ((pure, always_inline)); 2447 static inline uint64_t ODY_GTI_RD_CIDR0_FUNC(void) 2448 { 2449 return 0x802000010ff0ll; 2450 } 2451 2452 #define typedef_ODY_GTI_RD_CIDR0 ody_gti_rd_cidr0_t 2453 #define bustype_ODY_GTI_RD_CIDR0 CSR_TYPE_NCB32b 2454 #define basename_ODY_GTI_RD_CIDR0 "GTI_RD_CIDR0" 2455 #define device_bar_ODY_GTI_RD_CIDR0 0x0 /* PF_BAR0 */ 2456 #define busnum_ODY_GTI_RD_CIDR0 0 2457 #define arguments_ODY_GTI_RD_CIDR0 -1, -1, -1, -1 2458 2459 /** 2460 * Register (NCB32b) gti_rd_cidr1 2461 * 2462 * GTI Counter Read Component Identification Register 1 2463 */ 2464 union ody_gti_rd_cidr1 { 2465 uint32_t u; 2466 struct ody_gti_rd_cidr1_s { 2467 uint32_t preamble : 4; 2468 uint32_t cclass : 4; 2469 uint32_t reserved_8_31 : 24; 2470 } s; 2471 /* struct ody_gti_rd_cidr1_s cn; */ 2472 }; 2473 typedef union ody_gti_rd_cidr1 ody_gti_rd_cidr1_t; 2474 2475 #define ODY_GTI_RD_CIDR1 ODY_GTI_RD_CIDR1_FUNC() 2476 static inline uint64_t ODY_GTI_RD_CIDR1_FUNC(void) __attribute__ ((pure, always_inline)); 2477 static inline uint64_t ODY_GTI_RD_CIDR1_FUNC(void) 2478 { 2479 return 0x802000010ff4ll; 2480 } 2481 2482 #define typedef_ODY_GTI_RD_CIDR1 ody_gti_rd_cidr1_t 2483 #define bustype_ODY_GTI_RD_CIDR1 CSR_TYPE_NCB32b 2484 #define basename_ODY_GTI_RD_CIDR1 "GTI_RD_CIDR1" 2485 #define device_bar_ODY_GTI_RD_CIDR1 0x0 /* PF_BAR0 */ 2486 #define busnum_ODY_GTI_RD_CIDR1 0 2487 #define arguments_ODY_GTI_RD_CIDR1 -1, -1, -1, -1 2488 2489 /** 2490 * Register (NCB32b) gti_rd_cidr2 2491 * 2492 * GTI Counter Read Component Identification Register 2 2493 */ 2494 union ody_gti_rd_cidr2 { 2495 uint32_t u; 2496 struct ody_gti_rd_cidr2_s { 2497 uint32_t preamble : 8; 2498 uint32_t reserved_8_31 : 24; 2499 } s; 2500 /* struct ody_gti_rd_cidr2_s cn; */ 2501 }; 2502 typedef union ody_gti_rd_cidr2 ody_gti_rd_cidr2_t; 2503 2504 #define ODY_GTI_RD_CIDR2 ODY_GTI_RD_CIDR2_FUNC() 2505 static inline uint64_t ODY_GTI_RD_CIDR2_FUNC(void) __attribute__ ((pure, always_inline)); 2506 static inline uint64_t ODY_GTI_RD_CIDR2_FUNC(void) 2507 { 2508 return 0x802000010ff8ll; 2509 } 2510 2511 #define typedef_ODY_GTI_RD_CIDR2 ody_gti_rd_cidr2_t 2512 #define bustype_ODY_GTI_RD_CIDR2 CSR_TYPE_NCB32b 2513 #define basename_ODY_GTI_RD_CIDR2 "GTI_RD_CIDR2" 2514 #define device_bar_ODY_GTI_RD_CIDR2 0x0 /* PF_BAR0 */ 2515 #define busnum_ODY_GTI_RD_CIDR2 0 2516 #define arguments_ODY_GTI_RD_CIDR2 -1, -1, -1, -1 2517 2518 /** 2519 * Register (NCB32b) gti_rd_cidr3 2520 * 2521 * GTI Counter Read Component Identification Register 3 2522 */ 2523 union ody_gti_rd_cidr3 { 2524 uint32_t u; 2525 struct ody_gti_rd_cidr3_s { 2526 uint32_t preamble : 8; 2527 uint32_t reserved_8_31 : 24; 2528 } s; 2529 /* struct ody_gti_rd_cidr3_s cn; */ 2530 }; 2531 typedef union ody_gti_rd_cidr3 ody_gti_rd_cidr3_t; 2532 2533 #define ODY_GTI_RD_CIDR3 ODY_GTI_RD_CIDR3_FUNC() 2534 static inline uint64_t ODY_GTI_RD_CIDR3_FUNC(void) __attribute__ ((pure, always_inline)); 2535 static inline uint64_t ODY_GTI_RD_CIDR3_FUNC(void) 2536 { 2537 return 0x802000010ffcll; 2538 } 2539 2540 #define typedef_ODY_GTI_RD_CIDR3 ody_gti_rd_cidr3_t 2541 #define bustype_ODY_GTI_RD_CIDR3 CSR_TYPE_NCB32b 2542 #define basename_ODY_GTI_RD_CIDR3 "GTI_RD_CIDR3" 2543 #define device_bar_ODY_GTI_RD_CIDR3 0x0 /* PF_BAR0 */ 2544 #define busnum_ODY_GTI_RD_CIDR3 0 2545 #define arguments_ODY_GTI_RD_CIDR3 -1, -1, -1, -1 2546 2547 /** 2548 * Register (NCB) gti_rd_cntcv 2549 * 2550 * GTI Counter Read Value Register 2551 */ 2552 union ody_gti_rd_cntcv { 2553 uint64_t u; 2554 struct ody_gti_rd_cntcv_s { 2555 uint64_t cnt : 64; 2556 } s; 2557 /* struct ody_gti_rd_cntcv_s cn; */ 2558 }; 2559 typedef union ody_gti_rd_cntcv ody_gti_rd_cntcv_t; 2560 2561 #define ODY_GTI_RD_CNTCV ODY_GTI_RD_CNTCV_FUNC() 2562 static inline uint64_t ODY_GTI_RD_CNTCV_FUNC(void) __attribute__ ((pure, always_inline)); 2563 static inline uint64_t ODY_GTI_RD_CNTCV_FUNC(void) 2564 { 2565 return 0x802000010000ll; 2566 } 2567 2568 #define typedef_ODY_GTI_RD_CNTCV ody_gti_rd_cntcv_t 2569 #define bustype_ODY_GTI_RD_CNTCV CSR_TYPE_NCB 2570 #define basename_ODY_GTI_RD_CNTCV "GTI_RD_CNTCV" 2571 #define device_bar_ODY_GTI_RD_CNTCV 0x0 /* PF_BAR0 */ 2572 #define busnum_ODY_GTI_RD_CNTCV 0 2573 #define arguments_ODY_GTI_RD_CNTCV -1, -1, -1, -1 2574 2575 /** 2576 * Register (NCB32b) gti_rd_pidr0 2577 * 2578 * GTI Counter Read Peripheral Identification Register 0 2579 */ 2580 union ody_gti_rd_pidr0 { 2581 uint32_t u; 2582 struct ody_gti_rd_pidr0_s { 2583 uint32_t partnum0 : 8; 2584 uint32_t reserved_8_31 : 24; 2585 } s; 2586 /* struct ody_gti_rd_pidr0_s cn; */ 2587 }; 2588 typedef union ody_gti_rd_pidr0 ody_gti_rd_pidr0_t; 2589 2590 #define ODY_GTI_RD_PIDR0 ODY_GTI_RD_PIDR0_FUNC() 2591 static inline uint64_t ODY_GTI_RD_PIDR0_FUNC(void) __attribute__ ((pure, always_inline)); 2592 static inline uint64_t ODY_GTI_RD_PIDR0_FUNC(void) 2593 { 2594 return 0x802000010fe0ll; 2595 } 2596 2597 #define typedef_ODY_GTI_RD_PIDR0 ody_gti_rd_pidr0_t 2598 #define bustype_ODY_GTI_RD_PIDR0 CSR_TYPE_NCB32b 2599 #define basename_ODY_GTI_RD_PIDR0 "GTI_RD_PIDR0" 2600 #define device_bar_ODY_GTI_RD_PIDR0 0x0 /* PF_BAR0 */ 2601 #define busnum_ODY_GTI_RD_PIDR0 0 2602 #define arguments_ODY_GTI_RD_PIDR0 -1, -1, -1, -1 2603 2604 /** 2605 * Register (NCB32b) gti_rd_pidr1 2606 * 2607 * GTI Counter Read Peripheral Identification Register 1 2608 */ 2609 union ody_gti_rd_pidr1 { 2610 uint32_t u; 2611 struct ody_gti_rd_pidr1_s { 2612 uint32_t partnum1 : 4; 2613 uint32_t idcode : 4; 2614 uint32_t reserved_8_31 : 24; 2615 } s; 2616 /* struct ody_gti_rd_pidr1_s cn; */ 2617 }; 2618 typedef union ody_gti_rd_pidr1 ody_gti_rd_pidr1_t; 2619 2620 #define ODY_GTI_RD_PIDR1 ODY_GTI_RD_PIDR1_FUNC() 2621 static inline uint64_t ODY_GTI_RD_PIDR1_FUNC(void) __attribute__ ((pure, always_inline)); 2622 static inline uint64_t ODY_GTI_RD_PIDR1_FUNC(void) 2623 { 2624 return 0x802000010fe4ll; 2625 } 2626 2627 #define typedef_ODY_GTI_RD_PIDR1 ody_gti_rd_pidr1_t 2628 #define bustype_ODY_GTI_RD_PIDR1 CSR_TYPE_NCB32b 2629 #define basename_ODY_GTI_RD_PIDR1 "GTI_RD_PIDR1" 2630 #define device_bar_ODY_GTI_RD_PIDR1 0x0 /* PF_BAR0 */ 2631 #define busnum_ODY_GTI_RD_PIDR1 0 2632 #define arguments_ODY_GTI_RD_PIDR1 -1, -1, -1, -1 2633 2634 /** 2635 * Register (NCB32b) gti_rd_pidr2 2636 * 2637 * GTI Counter Read Peripheral Identification Register 2 2638 */ 2639 union ody_gti_rd_pidr2 { 2640 uint32_t u; 2641 struct ody_gti_rd_pidr2_s { 2642 uint32_t idcode : 3; 2643 uint32_t jedec : 1; 2644 uint32_t revision : 4; 2645 uint32_t reserved_8_31 : 24; 2646 } s; 2647 /* struct ody_gti_rd_pidr2_s cn; */ 2648 }; 2649 typedef union ody_gti_rd_pidr2 ody_gti_rd_pidr2_t; 2650 2651 #define ODY_GTI_RD_PIDR2 ODY_GTI_RD_PIDR2_FUNC() 2652 static inline uint64_t ODY_GTI_RD_PIDR2_FUNC(void) __attribute__ ((pure, always_inline)); 2653 static inline uint64_t ODY_GTI_RD_PIDR2_FUNC(void) 2654 { 2655 return 0x802000010fe8ll; 2656 } 2657 2658 #define typedef_ODY_GTI_RD_PIDR2 ody_gti_rd_pidr2_t 2659 #define bustype_ODY_GTI_RD_PIDR2 CSR_TYPE_NCB32b 2660 #define basename_ODY_GTI_RD_PIDR2 "GTI_RD_PIDR2" 2661 #define device_bar_ODY_GTI_RD_PIDR2 0x0 /* PF_BAR0 */ 2662 #define busnum_ODY_GTI_RD_PIDR2 0 2663 #define arguments_ODY_GTI_RD_PIDR2 -1, -1, -1, -1 2664 2665 /** 2666 * Register (NCB32b) gti_rd_pidr3 2667 * 2668 * GTI Counter Read Peripheral Identification Register 3 2669 */ 2670 union ody_gti_rd_pidr3 { 2671 uint32_t u; 2672 struct ody_gti_rd_pidr3_s { 2673 uint32_t cust : 4; 2674 uint32_t revand : 4; 2675 uint32_t reserved_8_31 : 24; 2676 } s; 2677 /* struct ody_gti_rd_pidr3_s cn; */ 2678 }; 2679 typedef union ody_gti_rd_pidr3 ody_gti_rd_pidr3_t; 2680 2681 #define ODY_GTI_RD_PIDR3 ODY_GTI_RD_PIDR3_FUNC() 2682 static inline uint64_t ODY_GTI_RD_PIDR3_FUNC(void) __attribute__ ((pure, always_inline)); 2683 static inline uint64_t ODY_GTI_RD_PIDR3_FUNC(void) 2684 { 2685 return 0x802000010fecll; 2686 } 2687 2688 #define typedef_ODY_GTI_RD_PIDR3 ody_gti_rd_pidr3_t 2689 #define bustype_ODY_GTI_RD_PIDR3 CSR_TYPE_NCB32b 2690 #define basename_ODY_GTI_RD_PIDR3 "GTI_RD_PIDR3" 2691 #define device_bar_ODY_GTI_RD_PIDR3 0x0 /* PF_BAR0 */ 2692 #define busnum_ODY_GTI_RD_PIDR3 0 2693 #define arguments_ODY_GTI_RD_PIDR3 -1, -1, -1, -1 2694 2695 /** 2696 * Register (NCB32b) gti_rd_pidr4 2697 * 2698 * GTI Counter Read Peripheral Identification Register 4 2699 */ 2700 union ody_gti_rd_pidr4 { 2701 uint32_t u; 2702 struct ody_gti_rd_pidr4_s { 2703 uint32_t jepcont : 4; 2704 uint32_t pagecnt : 4; 2705 uint32_t reserved_8_31 : 24; 2706 } s; 2707 /* struct ody_gti_rd_pidr4_s cn; */ 2708 }; 2709 typedef union ody_gti_rd_pidr4 ody_gti_rd_pidr4_t; 2710 2711 #define ODY_GTI_RD_PIDR4 ODY_GTI_RD_PIDR4_FUNC() 2712 static inline uint64_t ODY_GTI_RD_PIDR4_FUNC(void) __attribute__ ((pure, always_inline)); 2713 static inline uint64_t ODY_GTI_RD_PIDR4_FUNC(void) 2714 { 2715 return 0x802000010fd0ll; 2716 } 2717 2718 #define typedef_ODY_GTI_RD_PIDR4 ody_gti_rd_pidr4_t 2719 #define bustype_ODY_GTI_RD_PIDR4 CSR_TYPE_NCB32b 2720 #define basename_ODY_GTI_RD_PIDR4 "GTI_RD_PIDR4" 2721 #define device_bar_ODY_GTI_RD_PIDR4 0x0 /* PF_BAR0 */ 2722 #define busnum_ODY_GTI_RD_PIDR4 0 2723 #define arguments_ODY_GTI_RD_PIDR4 -1, -1, -1, -1 2724 2725 /** 2726 * Register (NCB32b) gti_rd_pidr5 2727 * 2728 * GTI Counter Read Peripheral Identification Register 5 2729 */ 2730 union ody_gti_rd_pidr5 { 2731 uint32_t u; 2732 struct ody_gti_rd_pidr5_s { 2733 uint32_t reserved_0_31 : 32; 2734 } s; 2735 /* struct ody_gti_rd_pidr5_s cn; */ 2736 }; 2737 typedef union ody_gti_rd_pidr5 ody_gti_rd_pidr5_t; 2738 2739 #define ODY_GTI_RD_PIDR5 ODY_GTI_RD_PIDR5_FUNC() 2740 static inline uint64_t ODY_GTI_RD_PIDR5_FUNC(void) __attribute__ ((pure, always_inline)); 2741 static inline uint64_t ODY_GTI_RD_PIDR5_FUNC(void) 2742 { 2743 return 0x802000010fd4ll; 2744 } 2745 2746 #define typedef_ODY_GTI_RD_PIDR5 ody_gti_rd_pidr5_t 2747 #define bustype_ODY_GTI_RD_PIDR5 CSR_TYPE_NCB32b 2748 #define basename_ODY_GTI_RD_PIDR5 "GTI_RD_PIDR5" 2749 #define device_bar_ODY_GTI_RD_PIDR5 0x0 /* PF_BAR0 */ 2750 #define busnum_ODY_GTI_RD_PIDR5 0 2751 #define arguments_ODY_GTI_RD_PIDR5 -1, -1, -1, -1 2752 2753 /** 2754 * Register (NCB32b) gti_rd_pidr6 2755 * 2756 * GTI Counter Read Peripheral Identification Register 6 2757 */ 2758 union ody_gti_rd_pidr6 { 2759 uint32_t u; 2760 struct ody_gti_rd_pidr6_s { 2761 uint32_t reserved_0_31 : 32; 2762 } s; 2763 /* struct ody_gti_rd_pidr6_s cn; */ 2764 }; 2765 typedef union ody_gti_rd_pidr6 ody_gti_rd_pidr6_t; 2766 2767 #define ODY_GTI_RD_PIDR6 ODY_GTI_RD_PIDR6_FUNC() 2768 static inline uint64_t ODY_GTI_RD_PIDR6_FUNC(void) __attribute__ ((pure, always_inline)); 2769 static inline uint64_t ODY_GTI_RD_PIDR6_FUNC(void) 2770 { 2771 return 0x802000010fd8ll; 2772 } 2773 2774 #define typedef_ODY_GTI_RD_PIDR6 ody_gti_rd_pidr6_t 2775 #define bustype_ODY_GTI_RD_PIDR6 CSR_TYPE_NCB32b 2776 #define basename_ODY_GTI_RD_PIDR6 "GTI_RD_PIDR6" 2777 #define device_bar_ODY_GTI_RD_PIDR6 0x0 /* PF_BAR0 */ 2778 #define busnum_ODY_GTI_RD_PIDR6 0 2779 #define arguments_ODY_GTI_RD_PIDR6 -1, -1, -1, -1 2780 2781 /** 2782 * Register (NCB32b) gti_rd_pidr7 2783 * 2784 * GTI Counter Read Peripheral Identification Register 7 2785 */ 2786 union ody_gti_rd_pidr7 { 2787 uint32_t u; 2788 struct ody_gti_rd_pidr7_s { 2789 uint32_t reserved_0_31 : 32; 2790 } s; 2791 /* struct ody_gti_rd_pidr7_s cn; */ 2792 }; 2793 typedef union ody_gti_rd_pidr7 ody_gti_rd_pidr7_t; 2794 2795 #define ODY_GTI_RD_PIDR7 ODY_GTI_RD_PIDR7_FUNC() 2796 static inline uint64_t ODY_GTI_RD_PIDR7_FUNC(void) __attribute__ ((pure, always_inline)); 2797 static inline uint64_t ODY_GTI_RD_PIDR7_FUNC(void) 2798 { 2799 return 0x802000010fdcll; 2800 } 2801 2802 #define typedef_ODY_GTI_RD_PIDR7 ody_gti_rd_pidr7_t 2803 #define bustype_ODY_GTI_RD_PIDR7 CSR_TYPE_NCB32b 2804 #define basename_ODY_GTI_RD_PIDR7 "GTI_RD_PIDR7" 2805 #define device_bar_ODY_GTI_RD_PIDR7 0x0 /* PF_BAR0 */ 2806 #define busnum_ODY_GTI_RD_PIDR7 0 2807 #define arguments_ODY_GTI_RD_PIDR7 -1, -1, -1, -1 2808 2809 /** 2810 * Register (NCB32b) gti_wc#_cidr0 2811 * 2812 * GTI Watchdog Control Component Identification Register 0 2813 */ 2814 union ody_gti_wcx_cidr0 { 2815 uint32_t u; 2816 struct ody_gti_wcx_cidr0_s { 2817 uint32_t preamble : 8; 2818 uint32_t reserved_8_31 : 24; 2819 } s; 2820 /* struct ody_gti_wcx_cidr0_s cn; */ 2821 }; 2822 typedef union ody_gti_wcx_cidr0 ody_gti_wcx_cidr0_t; 2823 2824 static inline uint64_t ODY_GTI_WCX_CIDR0(uint64_t a) __attribute__ ((pure, always_inline)); 2825 static inline uint64_t ODY_GTI_WCX_CIDR0(uint64_t a) 2826 { 2827 if (a <= 1) 2828 return 0x802000080ff0ll + 0x20000ll * ((a) & 0x1); 2829 __ody_csr_fatal("GTI_WCX_CIDR0", 1, a, 0, 0, 0, 0, 0); 2830 } 2831 2832 #define typedef_ODY_GTI_WCX_CIDR0(a) ody_gti_wcx_cidr0_t 2833 #define bustype_ODY_GTI_WCX_CIDR0(a) CSR_TYPE_NCB32b 2834 #define basename_ODY_GTI_WCX_CIDR0(a) "GTI_WCX_CIDR0" 2835 #define device_bar_ODY_GTI_WCX_CIDR0(a) 0x0 /* PF_BAR0 */ 2836 #define busnum_ODY_GTI_WCX_CIDR0(a) (a) 2837 #define arguments_ODY_GTI_WCX_CIDR0(a) (a), -1, -1, -1 2838 2839 /** 2840 * Register (NCB32b) gti_wc#_cidr1 2841 * 2842 * GTI Watchdog Control Component Identification Register 1 2843 */ 2844 union ody_gti_wcx_cidr1 { 2845 uint32_t u; 2846 struct ody_gti_wcx_cidr1_s { 2847 uint32_t preamble : 4; 2848 uint32_t cclass : 4; 2849 uint32_t reserved_8_31 : 24; 2850 } s; 2851 /* struct ody_gti_wcx_cidr1_s cn; */ 2852 }; 2853 typedef union ody_gti_wcx_cidr1 ody_gti_wcx_cidr1_t; 2854 2855 static inline uint64_t ODY_GTI_WCX_CIDR1(uint64_t a) __attribute__ ((pure, always_inline)); 2856 static inline uint64_t ODY_GTI_WCX_CIDR1(uint64_t a) 2857 { 2858 if (a <= 1) 2859 return 0x802000080ff4ll + 0x20000ll * ((a) & 0x1); 2860 __ody_csr_fatal("GTI_WCX_CIDR1", 1, a, 0, 0, 0, 0, 0); 2861 } 2862 2863 #define typedef_ODY_GTI_WCX_CIDR1(a) ody_gti_wcx_cidr1_t 2864 #define bustype_ODY_GTI_WCX_CIDR1(a) CSR_TYPE_NCB32b 2865 #define basename_ODY_GTI_WCX_CIDR1(a) "GTI_WCX_CIDR1" 2866 #define device_bar_ODY_GTI_WCX_CIDR1(a) 0x0 /* PF_BAR0 */ 2867 #define busnum_ODY_GTI_WCX_CIDR1(a) (a) 2868 #define arguments_ODY_GTI_WCX_CIDR1(a) (a), -1, -1, -1 2869 2870 /** 2871 * Register (NCB32b) gti_wc#_cidr2 2872 * 2873 * GTI Watchdog Control Component Identification Register 2 2874 */ 2875 union ody_gti_wcx_cidr2 { 2876 uint32_t u; 2877 struct ody_gti_wcx_cidr2_s { 2878 uint32_t preamble : 8; 2879 uint32_t reserved_8_31 : 24; 2880 } s; 2881 /* struct ody_gti_wcx_cidr2_s cn; */ 2882 }; 2883 typedef union ody_gti_wcx_cidr2 ody_gti_wcx_cidr2_t; 2884 2885 static inline uint64_t ODY_GTI_WCX_CIDR2(uint64_t a) __attribute__ ((pure, always_inline)); 2886 static inline uint64_t ODY_GTI_WCX_CIDR2(uint64_t a) 2887 { 2888 if (a <= 1) 2889 return 0x802000080ff8ll + 0x20000ll * ((a) & 0x1); 2890 __ody_csr_fatal("GTI_WCX_CIDR2", 1, a, 0, 0, 0, 0, 0); 2891 } 2892 2893 #define typedef_ODY_GTI_WCX_CIDR2(a) ody_gti_wcx_cidr2_t 2894 #define bustype_ODY_GTI_WCX_CIDR2(a) CSR_TYPE_NCB32b 2895 #define basename_ODY_GTI_WCX_CIDR2(a) "GTI_WCX_CIDR2" 2896 #define device_bar_ODY_GTI_WCX_CIDR2(a) 0x0 /* PF_BAR0 */ 2897 #define busnum_ODY_GTI_WCX_CIDR2(a) (a) 2898 #define arguments_ODY_GTI_WCX_CIDR2(a) (a), -1, -1, -1 2899 2900 /** 2901 * Register (NCB32b) gti_wc#_cidr3 2902 * 2903 * GTI Watchdog Control Component Identification Register 3 2904 */ 2905 union ody_gti_wcx_cidr3 { 2906 uint32_t u; 2907 struct ody_gti_wcx_cidr3_s { 2908 uint32_t preamble : 8; 2909 uint32_t reserved_8_31 : 24; 2910 } s; 2911 /* struct ody_gti_wcx_cidr3_s cn; */ 2912 }; 2913 typedef union ody_gti_wcx_cidr3 ody_gti_wcx_cidr3_t; 2914 2915 static inline uint64_t ODY_GTI_WCX_CIDR3(uint64_t a) __attribute__ ((pure, always_inline)); 2916 static inline uint64_t ODY_GTI_WCX_CIDR3(uint64_t a) 2917 { 2918 if (a <= 1) 2919 return 0x802000080ffcll + 0x20000ll * ((a) & 0x1); 2920 __ody_csr_fatal("GTI_WCX_CIDR3", 1, a, 0, 0, 0, 0, 0); 2921 } 2922 2923 #define typedef_ODY_GTI_WCX_CIDR3(a) ody_gti_wcx_cidr3_t 2924 #define bustype_ODY_GTI_WCX_CIDR3(a) CSR_TYPE_NCB32b 2925 #define basename_ODY_GTI_WCX_CIDR3(a) "GTI_WCX_CIDR3" 2926 #define device_bar_ODY_GTI_WCX_CIDR3(a) 0x0 /* PF_BAR0 */ 2927 #define busnum_ODY_GTI_WCX_CIDR3(a) (a) 2928 #define arguments_ODY_GTI_WCX_CIDR3(a) (a), -1, -1, -1 2929 2930 /** 2931 * Register (NCB32b) gti_wc#_pidr0 2932 * 2933 * GTI Watchdog Control Peripheral Identification Register 0 2934 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 2935 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 2936 */ 2937 union ody_gti_wcx_pidr0 { 2938 uint32_t u; 2939 struct ody_gti_wcx_pidr0_s { 2940 uint32_t partnum0 : 8; 2941 uint32_t reserved_8_31 : 24; 2942 } s; 2943 /* struct ody_gti_wcx_pidr0_s cn; */ 2944 }; 2945 typedef union ody_gti_wcx_pidr0 ody_gti_wcx_pidr0_t; 2946 2947 static inline uint64_t ODY_GTI_WCX_PIDR0(uint64_t a) __attribute__ ((pure, always_inline)); 2948 static inline uint64_t ODY_GTI_WCX_PIDR0(uint64_t a) 2949 { 2950 if (a <= 1) 2951 return 0x802000080fe0ll + 0x20000ll * ((a) & 0x1); 2952 __ody_csr_fatal("GTI_WCX_PIDR0", 1, a, 0, 0, 0, 0, 0); 2953 } 2954 2955 #define typedef_ODY_GTI_WCX_PIDR0(a) ody_gti_wcx_pidr0_t 2956 #define bustype_ODY_GTI_WCX_PIDR0(a) CSR_TYPE_NCB32b 2957 #define basename_ODY_GTI_WCX_PIDR0(a) "GTI_WCX_PIDR0" 2958 #define device_bar_ODY_GTI_WCX_PIDR0(a) 0x0 /* PF_BAR0 */ 2959 #define busnum_ODY_GTI_WCX_PIDR0(a) (a) 2960 #define arguments_ODY_GTI_WCX_PIDR0(a) (a), -1, -1, -1 2961 2962 /** 2963 * Register (NCB32b) gti_wc#_pidr1 2964 * 2965 * GTI Watchdog Control Peripheral Identification Register 1 2966 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 2967 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 2968 */ 2969 union ody_gti_wcx_pidr1 { 2970 uint32_t u; 2971 struct ody_gti_wcx_pidr1_s { 2972 uint32_t partnum1 : 4; 2973 uint32_t idcode : 4; 2974 uint32_t reserved_8_31 : 24; 2975 } s; 2976 /* struct ody_gti_wcx_pidr1_s cn; */ 2977 }; 2978 typedef union ody_gti_wcx_pidr1 ody_gti_wcx_pidr1_t; 2979 2980 static inline uint64_t ODY_GTI_WCX_PIDR1(uint64_t a) __attribute__ ((pure, always_inline)); 2981 static inline uint64_t ODY_GTI_WCX_PIDR1(uint64_t a) 2982 { 2983 if (a <= 1) 2984 return 0x802000080fe4ll + 0x20000ll * ((a) & 0x1); 2985 __ody_csr_fatal("GTI_WCX_PIDR1", 1, a, 0, 0, 0, 0, 0); 2986 } 2987 2988 #define typedef_ODY_GTI_WCX_PIDR1(a) ody_gti_wcx_pidr1_t 2989 #define bustype_ODY_GTI_WCX_PIDR1(a) CSR_TYPE_NCB32b 2990 #define basename_ODY_GTI_WCX_PIDR1(a) "GTI_WCX_PIDR1" 2991 #define device_bar_ODY_GTI_WCX_PIDR1(a) 0x0 /* PF_BAR0 */ 2992 #define busnum_ODY_GTI_WCX_PIDR1(a) (a) 2993 #define arguments_ODY_GTI_WCX_PIDR1(a) (a), -1, -1, -1 2994 2995 /** 2996 * Register (NCB32b) gti_wc#_pidr2 2997 * 2998 * GTI Watchdog Control Peripheral Identification Register 2 2999 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 3000 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 3001 */ 3002 union ody_gti_wcx_pidr2 { 3003 uint32_t u; 3004 struct ody_gti_wcx_pidr2_s { 3005 uint32_t idcode : 3; 3006 uint32_t jedec : 1; 3007 uint32_t revision : 4; 3008 uint32_t reserved_8_31 : 24; 3009 } s; 3010 /* struct ody_gti_wcx_pidr2_s cn; */ 3011 }; 3012 typedef union ody_gti_wcx_pidr2 ody_gti_wcx_pidr2_t; 3013 3014 static inline uint64_t ODY_GTI_WCX_PIDR2(uint64_t a) __attribute__ ((pure, always_inline)); 3015 static inline uint64_t ODY_GTI_WCX_PIDR2(uint64_t a) 3016 { 3017 if (a <= 1) 3018 return 0x802000080fe8ll + 0x20000ll * ((a) & 0x1); 3019 __ody_csr_fatal("GTI_WCX_PIDR2", 1, a, 0, 0, 0, 0, 0); 3020 } 3021 3022 #define typedef_ODY_GTI_WCX_PIDR2(a) ody_gti_wcx_pidr2_t 3023 #define bustype_ODY_GTI_WCX_PIDR2(a) CSR_TYPE_NCB32b 3024 #define basename_ODY_GTI_WCX_PIDR2(a) "GTI_WCX_PIDR2" 3025 #define device_bar_ODY_GTI_WCX_PIDR2(a) 0x0 /* PF_BAR0 */ 3026 #define busnum_ODY_GTI_WCX_PIDR2(a) (a) 3027 #define arguments_ODY_GTI_WCX_PIDR2(a) (a), -1, -1, -1 3028 3029 /** 3030 * Register (NCB32b) gti_wc#_pidr3 3031 * 3032 * GTI Watchdog Control Peripheral Identification Register 3 3033 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 3034 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 3035 */ 3036 union ody_gti_wcx_pidr3 { 3037 uint32_t u; 3038 struct ody_gti_wcx_pidr3_s { 3039 uint32_t cust : 4; 3040 uint32_t revand : 4; 3041 uint32_t reserved_8_31 : 24; 3042 } s; 3043 /* struct ody_gti_wcx_pidr3_s cn; */ 3044 }; 3045 typedef union ody_gti_wcx_pidr3 ody_gti_wcx_pidr3_t; 3046 3047 static inline uint64_t ODY_GTI_WCX_PIDR3(uint64_t a) __attribute__ ((pure, always_inline)); 3048 static inline uint64_t ODY_GTI_WCX_PIDR3(uint64_t a) 3049 { 3050 if (a <= 1) 3051 return 0x802000080fecll + 0x20000ll * ((a) & 0x1); 3052 __ody_csr_fatal("GTI_WCX_PIDR3", 1, a, 0, 0, 0, 0, 0); 3053 } 3054 3055 #define typedef_ODY_GTI_WCX_PIDR3(a) ody_gti_wcx_pidr3_t 3056 #define bustype_ODY_GTI_WCX_PIDR3(a) CSR_TYPE_NCB32b 3057 #define basename_ODY_GTI_WCX_PIDR3(a) "GTI_WCX_PIDR3" 3058 #define device_bar_ODY_GTI_WCX_PIDR3(a) 0x0 /* PF_BAR0 */ 3059 #define busnum_ODY_GTI_WCX_PIDR3(a) (a) 3060 #define arguments_ODY_GTI_WCX_PIDR3(a) (a), -1, -1, -1 3061 3062 /** 3063 * Register (NCB32b) gti_wc#_pidr4 3064 * 3065 * GTI Watchdog Control Peripheral Identification Register 4 3066 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 3067 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 3068 */ 3069 union ody_gti_wcx_pidr4 { 3070 uint32_t u; 3071 struct ody_gti_wcx_pidr4_s { 3072 uint32_t jepcont : 4; 3073 uint32_t pagecnt : 4; 3074 uint32_t reserved_8_31 : 24; 3075 } s; 3076 /* struct ody_gti_wcx_pidr4_s cn; */ 3077 }; 3078 typedef union ody_gti_wcx_pidr4 ody_gti_wcx_pidr4_t; 3079 3080 static inline uint64_t ODY_GTI_WCX_PIDR4(uint64_t a) __attribute__ ((pure, always_inline)); 3081 static inline uint64_t ODY_GTI_WCX_PIDR4(uint64_t a) 3082 { 3083 if (a <= 1) 3084 return 0x802000080fd0ll + 0x20000ll * ((a) & 0x1); 3085 __ody_csr_fatal("GTI_WCX_PIDR4", 1, a, 0, 0, 0, 0, 0); 3086 } 3087 3088 #define typedef_ODY_GTI_WCX_PIDR4(a) ody_gti_wcx_pidr4_t 3089 #define bustype_ODY_GTI_WCX_PIDR4(a) CSR_TYPE_NCB32b 3090 #define basename_ODY_GTI_WCX_PIDR4(a) "GTI_WCX_PIDR4" 3091 #define device_bar_ODY_GTI_WCX_PIDR4(a) 0x0 /* PF_BAR0 */ 3092 #define busnum_ODY_GTI_WCX_PIDR4(a) (a) 3093 #define arguments_ODY_GTI_WCX_PIDR4(a) (a), -1, -1, -1 3094 3095 /** 3096 * Register (NCB32b) gti_wc#_pidr5 3097 * 3098 * GTI Watchdog Control Peripheral Identification Register 5 3099 */ 3100 union ody_gti_wcx_pidr5 { 3101 uint32_t u; 3102 struct ody_gti_wcx_pidr5_s { 3103 uint32_t reserved_0_31 : 32; 3104 } s; 3105 /* struct ody_gti_wcx_pidr5_s cn; */ 3106 }; 3107 typedef union ody_gti_wcx_pidr5 ody_gti_wcx_pidr5_t; 3108 3109 static inline uint64_t ODY_GTI_WCX_PIDR5(uint64_t a) __attribute__ ((pure, always_inline)); 3110 static inline uint64_t ODY_GTI_WCX_PIDR5(uint64_t a) 3111 { 3112 if (a <= 1) 3113 return 0x802000080fd4ll + 0x20000ll * ((a) & 0x1); 3114 __ody_csr_fatal("GTI_WCX_PIDR5", 1, a, 0, 0, 0, 0, 0); 3115 } 3116 3117 #define typedef_ODY_GTI_WCX_PIDR5(a) ody_gti_wcx_pidr5_t 3118 #define bustype_ODY_GTI_WCX_PIDR5(a) CSR_TYPE_NCB32b 3119 #define basename_ODY_GTI_WCX_PIDR5(a) "GTI_WCX_PIDR5" 3120 #define device_bar_ODY_GTI_WCX_PIDR5(a) 0x0 /* PF_BAR0 */ 3121 #define busnum_ODY_GTI_WCX_PIDR5(a) (a) 3122 #define arguments_ODY_GTI_WCX_PIDR5(a) (a), -1, -1, -1 3123 3124 /** 3125 * Register (NCB32b) gti_wc#_pidr6 3126 * 3127 * GTI Watchdog Control Peripheral Identification Register 6 3128 */ 3129 union ody_gti_wcx_pidr6 { 3130 uint32_t u; 3131 struct ody_gti_wcx_pidr6_s { 3132 uint32_t reserved_0_31 : 32; 3133 } s; 3134 /* struct ody_gti_wcx_pidr6_s cn; */ 3135 }; 3136 typedef union ody_gti_wcx_pidr6 ody_gti_wcx_pidr6_t; 3137 3138 static inline uint64_t ODY_GTI_WCX_PIDR6(uint64_t a) __attribute__ ((pure, always_inline)); 3139 static inline uint64_t ODY_GTI_WCX_PIDR6(uint64_t a) 3140 { 3141 if (a <= 1) 3142 return 0x802000080fd8ll + 0x20000ll * ((a) & 0x1); 3143 __ody_csr_fatal("GTI_WCX_PIDR6", 1, a, 0, 0, 0, 0, 0); 3144 } 3145 3146 #define typedef_ODY_GTI_WCX_PIDR6(a) ody_gti_wcx_pidr6_t 3147 #define bustype_ODY_GTI_WCX_PIDR6(a) CSR_TYPE_NCB32b 3148 #define basename_ODY_GTI_WCX_PIDR6(a) "GTI_WCX_PIDR6" 3149 #define device_bar_ODY_GTI_WCX_PIDR6(a) 0x0 /* PF_BAR0 */ 3150 #define busnum_ODY_GTI_WCX_PIDR6(a) (a) 3151 #define arguments_ODY_GTI_WCX_PIDR6(a) (a), -1, -1, -1 3152 3153 /** 3154 * Register (NCB32b) gti_wc#_pidr7 3155 * 3156 * GTI Watchdog Control Peripheral Identification Register 7 3157 */ 3158 union ody_gti_wcx_pidr7 { 3159 uint32_t u; 3160 struct ody_gti_wcx_pidr7_s { 3161 uint32_t reserved_0_31 : 32; 3162 } s; 3163 /* struct ody_gti_wcx_pidr7_s cn; */ 3164 }; 3165 typedef union ody_gti_wcx_pidr7 ody_gti_wcx_pidr7_t; 3166 3167 static inline uint64_t ODY_GTI_WCX_PIDR7(uint64_t a) __attribute__ ((pure, always_inline)); 3168 static inline uint64_t ODY_GTI_WCX_PIDR7(uint64_t a) 3169 { 3170 if (a <= 1) 3171 return 0x802000080fdcll + 0x20000ll * ((a) & 0x1); 3172 __ody_csr_fatal("GTI_WCX_PIDR7", 1, a, 0, 0, 0, 0, 0); 3173 } 3174 3175 #define typedef_ODY_GTI_WCX_PIDR7(a) ody_gti_wcx_pidr7_t 3176 #define bustype_ODY_GTI_WCX_PIDR7(a) CSR_TYPE_NCB32b 3177 #define basename_ODY_GTI_WCX_PIDR7(a) "GTI_WCX_PIDR7" 3178 #define device_bar_ODY_GTI_WCX_PIDR7(a) 0x0 /* PF_BAR0 */ 3179 #define busnum_ODY_GTI_WCX_PIDR7(a) (a) 3180 #define arguments_ODY_GTI_WCX_PIDR7(a) (a), -1, -1, -1 3181 3182 /** 3183 * Register (NCB32b) gti_wc#_w_iidr 3184 * 3185 * GTI Watchdog Control Interface Identification Register 3186 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 3187 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 3188 */ 3189 union ody_gti_wcx_w_iidr { 3190 uint32_t u; 3191 struct ody_gti_wcx_w_iidr_s { 3192 uint32_t implementer : 12; 3193 uint32_t revision : 4; 3194 uint32_t arch : 4; 3195 uint32_t variant : 4; 3196 uint32_t productid : 8; 3197 } s; 3198 /* struct ody_gti_wcx_w_iidr_s cn; */ 3199 }; 3200 typedef union ody_gti_wcx_w_iidr ody_gti_wcx_w_iidr_t; 3201 3202 static inline uint64_t ODY_GTI_WCX_W_IIDR(uint64_t a) __attribute__ ((pure, always_inline)); 3203 static inline uint64_t ODY_GTI_WCX_W_IIDR(uint64_t a) 3204 { 3205 if (a <= 1) 3206 return 0x802000080fccll + 0x20000ll * ((a) & 0x1); 3207 __ody_csr_fatal("GTI_WCX_W_IIDR", 1, a, 0, 0, 0, 0, 0); 3208 } 3209 3210 #define typedef_ODY_GTI_WCX_W_IIDR(a) ody_gti_wcx_w_iidr_t 3211 #define bustype_ODY_GTI_WCX_W_IIDR(a) CSR_TYPE_NCB32b 3212 #define basename_ODY_GTI_WCX_W_IIDR(a) "GTI_WCX_W_IIDR" 3213 #define device_bar_ODY_GTI_WCX_W_IIDR(a) 0x0 /* PF_BAR0 */ 3214 #define busnum_ODY_GTI_WCX_W_IIDR(a) (a) 3215 #define arguments_ODY_GTI_WCX_W_IIDR(a) (a), -1, -1, -1 3216 3217 /** 3218 * Register (NCB32b) gti_wc#_wcs 3219 * 3220 * GTI Watchdog Control and Status Register 3221 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 3222 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 3223 */ 3224 union ody_gti_wcx_wcs { 3225 uint32_t u; 3226 struct ody_gti_wcx_wcs_s { 3227 uint32_t en : 1; 3228 uint32_t ws0 : 1; 3229 uint32_t ws1 : 1; 3230 uint32_t reserved_3_31 : 29; 3231 } s; 3232 /* struct ody_gti_wcx_wcs_s cn; */ 3233 }; 3234 typedef union ody_gti_wcx_wcs ody_gti_wcx_wcs_t; 3235 3236 static inline uint64_t ODY_GTI_WCX_WCS(uint64_t a) __attribute__ ((pure, always_inline)); 3237 static inline uint64_t ODY_GTI_WCX_WCS(uint64_t a) 3238 { 3239 if (a <= 1) 3240 return 0x802000080000ll + 0x20000ll * ((a) & 0x1); 3241 __ody_csr_fatal("GTI_WCX_WCS", 1, a, 0, 0, 0, 0, 0); 3242 } 3243 3244 #define typedef_ODY_GTI_WCX_WCS(a) ody_gti_wcx_wcs_t 3245 #define bustype_ODY_GTI_WCX_WCS(a) CSR_TYPE_NCB32b 3246 #define basename_ODY_GTI_WCX_WCS(a) "GTI_WCX_WCS" 3247 #define device_bar_ODY_GTI_WCX_WCS(a) 0x0 /* PF_BAR0 */ 3248 #define busnum_ODY_GTI_WCX_WCS(a) (a) 3249 #define arguments_ODY_GTI_WCX_WCS(a) (a), -1, -1, -1 3250 3251 /** 3252 * Register (NCB) gti_wc#_wcv 3253 * 3254 * GTI Watchdog Control Compare Value Register 3255 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 3256 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 3257 */ 3258 union ody_gti_wcx_wcv { 3259 uint64_t u; 3260 struct ody_gti_wcx_wcv_s { 3261 uint64_t wdcv : 64; 3262 } s; 3263 /* struct ody_gti_wcx_wcv_s cn; */ 3264 }; 3265 typedef union ody_gti_wcx_wcv ody_gti_wcx_wcv_t; 3266 3267 static inline uint64_t ODY_GTI_WCX_WCV(uint64_t a) __attribute__ ((pure, always_inline)); 3268 static inline uint64_t ODY_GTI_WCX_WCV(uint64_t a) 3269 { 3270 if (a <= 1) 3271 return 0x802000080010ll + 0x20000ll * ((a) & 0x1); 3272 __ody_csr_fatal("GTI_WCX_WCV", 1, a, 0, 0, 0, 0, 0); 3273 } 3274 3275 #define typedef_ODY_GTI_WCX_WCV(a) ody_gti_wcx_wcv_t 3276 #define bustype_ODY_GTI_WCX_WCV(a) CSR_TYPE_NCB 3277 #define basename_ODY_GTI_WCX_WCV(a) "GTI_WCX_WCV" 3278 #define device_bar_ODY_GTI_WCX_WCV(a) 0x0 /* PF_BAR0 */ 3279 #define busnum_ODY_GTI_WCX_WCV(a) (a) 3280 #define arguments_ODY_GTI_WCX_WCV(a) (a), -1, -1, -1 3281 3282 /** 3283 * Register (NCB32b) gti_wc#_wor 3284 * 3285 * GTI Watchdog Control Offset Register 3286 * GTI_WC(0) accesses the secure watchdog and is accessible only by the 3287 * secure-world. GTI_WC(1) accesses the nonsecure watchdog. 3288 */ 3289 union ody_gti_wcx_wor { 3290 uint64_t u; 3291 struct ody_gti_wcx_wor_s { 3292 uint64_t offset : 32; 3293 uint64_t reserved_32_63 : 32; 3294 } s; 3295 struct ody_gti_wcx_wor_cn { 3296 uint64_t offset : 32; 3297 } cn; 3298 }; 3299 typedef union ody_gti_wcx_wor ody_gti_wcx_wor_t; 3300 3301 static inline uint64_t ODY_GTI_WCX_WOR(uint64_t a) __attribute__ ((pure, always_inline)); 3302 static inline uint64_t ODY_GTI_WCX_WOR(uint64_t a) 3303 { 3304 if (a <= 1) 3305 return 0x802000080008ll + 0x20000ll * ((a) & 0x1); 3306 __ody_csr_fatal("GTI_WCX_WOR", 1, a, 0, 0, 0, 0, 0); 3307 } 3308 3309 #define typedef_ODY_GTI_WCX_WOR(a) ody_gti_wcx_wor_t 3310 #define bustype_ODY_GTI_WCX_WOR(a) CSR_TYPE_NCB32b 3311 #define basename_ODY_GTI_WCX_WOR(a) "GTI_WCX_WOR" 3312 #define device_bar_ODY_GTI_WCX_WOR(a) 0x0 /* PF_BAR0 */ 3313 #define busnum_ODY_GTI_WCX_WOR(a) (a) 3314 #define arguments_ODY_GTI_WCX_WOR(a) (a), -1, -1, -1 3315 3316 /** 3317 * Register (NCB32b) gti_wr#_cidr0 3318 * 3319 * GTI Watchdog Refresh Component Identification Register 0 3320 */ 3321 union ody_gti_wrx_cidr0 { 3322 uint32_t u; 3323 struct ody_gti_wrx_cidr0_s { 3324 uint32_t preamble : 8; 3325 uint32_t reserved_8_31 : 24; 3326 } s; 3327 /* struct ody_gti_wrx_cidr0_s cn; */ 3328 }; 3329 typedef union ody_gti_wrx_cidr0 ody_gti_wrx_cidr0_t; 3330 3331 static inline uint64_t ODY_GTI_WRX_CIDR0(uint64_t a) __attribute__ ((pure, always_inline)); 3332 static inline uint64_t ODY_GTI_WRX_CIDR0(uint64_t a) 3333 { 3334 if (a <= 1) 3335 return 0x802000090ff0ll + 0x20000ll * ((a) & 0x1); 3336 __ody_csr_fatal("GTI_WRX_CIDR0", 1, a, 0, 0, 0, 0, 0); 3337 } 3338 3339 #define typedef_ODY_GTI_WRX_CIDR0(a) ody_gti_wrx_cidr0_t 3340 #define bustype_ODY_GTI_WRX_CIDR0(a) CSR_TYPE_NCB32b 3341 #define basename_ODY_GTI_WRX_CIDR0(a) "GTI_WRX_CIDR0" 3342 #define device_bar_ODY_GTI_WRX_CIDR0(a) 0x0 /* PF_BAR0 */ 3343 #define busnum_ODY_GTI_WRX_CIDR0(a) (a) 3344 #define arguments_ODY_GTI_WRX_CIDR0(a) (a), -1, -1, -1 3345 3346 /** 3347 * Register (NCB32b) gti_wr#_cidr1 3348 * 3349 * GTI Watchdog Refresh Component Identification Register 1 3350 */ 3351 union ody_gti_wrx_cidr1 { 3352 uint32_t u; 3353 struct ody_gti_wrx_cidr1_s { 3354 uint32_t preamble : 4; 3355 uint32_t cclass : 4; 3356 uint32_t reserved_8_31 : 24; 3357 } s; 3358 /* struct ody_gti_wrx_cidr1_s cn; */ 3359 }; 3360 typedef union ody_gti_wrx_cidr1 ody_gti_wrx_cidr1_t; 3361 3362 static inline uint64_t ODY_GTI_WRX_CIDR1(uint64_t a) __attribute__ ((pure, always_inline)); 3363 static inline uint64_t ODY_GTI_WRX_CIDR1(uint64_t a) 3364 { 3365 if (a <= 1) 3366 return 0x802000090ff4ll + 0x20000ll * ((a) & 0x1); 3367 __ody_csr_fatal("GTI_WRX_CIDR1", 1, a, 0, 0, 0, 0, 0); 3368 } 3369 3370 #define typedef_ODY_GTI_WRX_CIDR1(a) ody_gti_wrx_cidr1_t 3371 #define bustype_ODY_GTI_WRX_CIDR1(a) CSR_TYPE_NCB32b 3372 #define basename_ODY_GTI_WRX_CIDR1(a) "GTI_WRX_CIDR1" 3373 #define device_bar_ODY_GTI_WRX_CIDR1(a) 0x0 /* PF_BAR0 */ 3374 #define busnum_ODY_GTI_WRX_CIDR1(a) (a) 3375 #define arguments_ODY_GTI_WRX_CIDR1(a) (a), -1, -1, -1 3376 3377 /** 3378 * Register (NCB32b) gti_wr#_cidr2 3379 * 3380 * GTI Watchdog Refresh Component Identification Register 2 3381 */ 3382 union ody_gti_wrx_cidr2 { 3383 uint32_t u; 3384 struct ody_gti_wrx_cidr2_s { 3385 uint32_t preamble : 8; 3386 uint32_t reserved_8_31 : 24; 3387 } s; 3388 /* struct ody_gti_wrx_cidr2_s cn; */ 3389 }; 3390 typedef union ody_gti_wrx_cidr2 ody_gti_wrx_cidr2_t; 3391 3392 static inline uint64_t ODY_GTI_WRX_CIDR2(uint64_t a) __attribute__ ((pure, always_inline)); 3393 static inline uint64_t ODY_GTI_WRX_CIDR2(uint64_t a) 3394 { 3395 if (a <= 1) 3396 return 0x802000090ff8ll + 0x20000ll * ((a) & 0x1); 3397 __ody_csr_fatal("GTI_WRX_CIDR2", 1, a, 0, 0, 0, 0, 0); 3398 } 3399 3400 #define typedef_ODY_GTI_WRX_CIDR2(a) ody_gti_wrx_cidr2_t 3401 #define bustype_ODY_GTI_WRX_CIDR2(a) CSR_TYPE_NCB32b 3402 #define basename_ODY_GTI_WRX_CIDR2(a) "GTI_WRX_CIDR2" 3403 #define device_bar_ODY_GTI_WRX_CIDR2(a) 0x0 /* PF_BAR0 */ 3404 #define busnum_ODY_GTI_WRX_CIDR2(a) (a) 3405 #define arguments_ODY_GTI_WRX_CIDR2(a) (a), -1, -1, -1 3406 3407 /** 3408 * Register (NCB32b) gti_wr#_cidr3 3409 * 3410 * GTI Watchdog Refresh Component Identification Register 3 3411 */ 3412 union ody_gti_wrx_cidr3 { 3413 uint32_t u; 3414 struct ody_gti_wrx_cidr3_s { 3415 uint32_t preamble : 8; 3416 uint32_t reserved_8_31 : 24; 3417 } s; 3418 /* struct ody_gti_wrx_cidr3_s cn; */ 3419 }; 3420 typedef union ody_gti_wrx_cidr3 ody_gti_wrx_cidr3_t; 3421 3422 static inline uint64_t ODY_GTI_WRX_CIDR3(uint64_t a) __attribute__ ((pure, always_inline)); 3423 static inline uint64_t ODY_GTI_WRX_CIDR3(uint64_t a) 3424 { 3425 if (a <= 1) 3426 return 0x802000090ffcll + 0x20000ll * ((a) & 0x1); 3427 __ody_csr_fatal("GTI_WRX_CIDR3", 1, a, 0, 0, 0, 0, 0); 3428 } 3429 3430 #define typedef_ODY_GTI_WRX_CIDR3(a) ody_gti_wrx_cidr3_t 3431 #define bustype_ODY_GTI_WRX_CIDR3(a) CSR_TYPE_NCB32b 3432 #define basename_ODY_GTI_WRX_CIDR3(a) "GTI_WRX_CIDR3" 3433 #define device_bar_ODY_GTI_WRX_CIDR3(a) 0x0 /* PF_BAR0 */ 3434 #define busnum_ODY_GTI_WRX_CIDR3(a) (a) 3435 #define arguments_ODY_GTI_WRX_CIDR3(a) (a), -1, -1, -1 3436 3437 /** 3438 * Register (NCB32b) gti_wr#_pidr0 3439 * 3440 * GTI Watchdog Refresh Peripheral Identification Register 0 3441 */ 3442 union ody_gti_wrx_pidr0 { 3443 uint32_t u; 3444 struct ody_gti_wrx_pidr0_s { 3445 uint32_t partnum0 : 8; 3446 uint32_t reserved_8_31 : 24; 3447 } s; 3448 /* struct ody_gti_wrx_pidr0_s cn; */ 3449 }; 3450 typedef union ody_gti_wrx_pidr0 ody_gti_wrx_pidr0_t; 3451 3452 static inline uint64_t ODY_GTI_WRX_PIDR0(uint64_t a) __attribute__ ((pure, always_inline)); 3453 static inline uint64_t ODY_GTI_WRX_PIDR0(uint64_t a) 3454 { 3455 if (a <= 1) 3456 return 0x802000090fe0ll + 0x20000ll * ((a) & 0x1); 3457 __ody_csr_fatal("GTI_WRX_PIDR0", 1, a, 0, 0, 0, 0, 0); 3458 } 3459 3460 #define typedef_ODY_GTI_WRX_PIDR0(a) ody_gti_wrx_pidr0_t 3461 #define bustype_ODY_GTI_WRX_PIDR0(a) CSR_TYPE_NCB32b 3462 #define basename_ODY_GTI_WRX_PIDR0(a) "GTI_WRX_PIDR0" 3463 #define device_bar_ODY_GTI_WRX_PIDR0(a) 0x0 /* PF_BAR0 */ 3464 #define busnum_ODY_GTI_WRX_PIDR0(a) (a) 3465 #define arguments_ODY_GTI_WRX_PIDR0(a) (a), -1, -1, -1 3466 3467 /** 3468 * Register (NCB32b) gti_wr#_pidr1 3469 * 3470 * GTI Watchdog Refresh Peripheral Identification Register 1 3471 */ 3472 union ody_gti_wrx_pidr1 { 3473 uint32_t u; 3474 struct ody_gti_wrx_pidr1_s { 3475 uint32_t partnum1 : 4; 3476 uint32_t idcode : 4; 3477 uint32_t reserved_8_31 : 24; 3478 } s; 3479 /* struct ody_gti_wrx_pidr1_s cn; */ 3480 }; 3481 typedef union ody_gti_wrx_pidr1 ody_gti_wrx_pidr1_t; 3482 3483 static inline uint64_t ODY_GTI_WRX_PIDR1(uint64_t a) __attribute__ ((pure, always_inline)); 3484 static inline uint64_t ODY_GTI_WRX_PIDR1(uint64_t a) 3485 { 3486 if (a <= 1) 3487 return 0x802000090fe4ll + 0x20000ll * ((a) & 0x1); 3488 __ody_csr_fatal("GTI_WRX_PIDR1", 1, a, 0, 0, 0, 0, 0); 3489 } 3490 3491 #define typedef_ODY_GTI_WRX_PIDR1(a) ody_gti_wrx_pidr1_t 3492 #define bustype_ODY_GTI_WRX_PIDR1(a) CSR_TYPE_NCB32b 3493 #define basename_ODY_GTI_WRX_PIDR1(a) "GTI_WRX_PIDR1" 3494 #define device_bar_ODY_GTI_WRX_PIDR1(a) 0x0 /* PF_BAR0 */ 3495 #define busnum_ODY_GTI_WRX_PIDR1(a) (a) 3496 #define arguments_ODY_GTI_WRX_PIDR1(a) (a), -1, -1, -1 3497 3498 /** 3499 * Register (NCB32b) gti_wr#_pidr2 3500 * 3501 * GTI Watchdog Refresh Peripheral Identification Register 2 3502 */ 3503 union ody_gti_wrx_pidr2 { 3504 uint32_t u; 3505 struct ody_gti_wrx_pidr2_s { 3506 uint32_t idcode : 3; 3507 uint32_t jedec : 1; 3508 uint32_t revision : 4; 3509 uint32_t reserved_8_31 : 24; 3510 } s; 3511 /* struct ody_gti_wrx_pidr2_s cn; */ 3512 }; 3513 typedef union ody_gti_wrx_pidr2 ody_gti_wrx_pidr2_t; 3514 3515 static inline uint64_t ODY_GTI_WRX_PIDR2(uint64_t a) __attribute__ ((pure, always_inline)); 3516 static inline uint64_t ODY_GTI_WRX_PIDR2(uint64_t a) 3517 { 3518 if (a <= 1) 3519 return 0x802000090fe8ll + 0x20000ll * ((a) & 0x1); 3520 __ody_csr_fatal("GTI_WRX_PIDR2", 1, a, 0, 0, 0, 0, 0); 3521 } 3522 3523 #define typedef_ODY_GTI_WRX_PIDR2(a) ody_gti_wrx_pidr2_t 3524 #define bustype_ODY_GTI_WRX_PIDR2(a) CSR_TYPE_NCB32b 3525 #define basename_ODY_GTI_WRX_PIDR2(a) "GTI_WRX_PIDR2" 3526 #define device_bar_ODY_GTI_WRX_PIDR2(a) 0x0 /* PF_BAR0 */ 3527 #define busnum_ODY_GTI_WRX_PIDR2(a) (a) 3528 #define arguments_ODY_GTI_WRX_PIDR2(a) (a), -1, -1, -1 3529 3530 /** 3531 * Register (NCB32b) gti_wr#_pidr3 3532 * 3533 * GTI Watchdog Refresh Peripheral Identification Register 3 3534 */ 3535 union ody_gti_wrx_pidr3 { 3536 uint32_t u; 3537 struct ody_gti_wrx_pidr3_s { 3538 uint32_t cust : 4; 3539 uint32_t revand : 4; 3540 uint32_t reserved_8_31 : 24; 3541 } s; 3542 /* struct ody_gti_wrx_pidr3_s cn; */ 3543 }; 3544 typedef union ody_gti_wrx_pidr3 ody_gti_wrx_pidr3_t; 3545 3546 static inline uint64_t ODY_GTI_WRX_PIDR3(uint64_t a) __attribute__ ((pure, always_inline)); 3547 static inline uint64_t ODY_GTI_WRX_PIDR3(uint64_t a) 3548 { 3549 if (a <= 1) 3550 return 0x802000090fecll + 0x20000ll * ((a) & 0x1); 3551 __ody_csr_fatal("GTI_WRX_PIDR3", 1, a, 0, 0, 0, 0, 0); 3552 } 3553 3554 #define typedef_ODY_GTI_WRX_PIDR3(a) ody_gti_wrx_pidr3_t 3555 #define bustype_ODY_GTI_WRX_PIDR3(a) CSR_TYPE_NCB32b 3556 #define basename_ODY_GTI_WRX_PIDR3(a) "GTI_WRX_PIDR3" 3557 #define device_bar_ODY_GTI_WRX_PIDR3(a) 0x0 /* PF_BAR0 */ 3558 #define busnum_ODY_GTI_WRX_PIDR3(a) (a) 3559 #define arguments_ODY_GTI_WRX_PIDR3(a) (a), -1, -1, -1 3560 3561 /** 3562 * Register (NCB32b) gti_wr#_pidr4 3563 * 3564 * GTI Watchdog Refresh Peripheral Identification Register 4 3565 */ 3566 union ody_gti_wrx_pidr4 { 3567 uint32_t u; 3568 struct ody_gti_wrx_pidr4_s { 3569 uint32_t jepcont : 4; 3570 uint32_t pagecnt : 4; 3571 uint32_t reserved_8_31 : 24; 3572 } s; 3573 /* struct ody_gti_wrx_pidr4_s cn; */ 3574 }; 3575 typedef union ody_gti_wrx_pidr4 ody_gti_wrx_pidr4_t; 3576 3577 static inline uint64_t ODY_GTI_WRX_PIDR4(uint64_t a) __attribute__ ((pure, always_inline)); 3578 static inline uint64_t ODY_GTI_WRX_PIDR4(uint64_t a) 3579 { 3580 if (a <= 1) 3581 return 0x802000090fd0ll + 0x20000ll * ((a) & 0x1); 3582 __ody_csr_fatal("GTI_WRX_PIDR4", 1, a, 0, 0, 0, 0, 0); 3583 } 3584 3585 #define typedef_ODY_GTI_WRX_PIDR4(a) ody_gti_wrx_pidr4_t 3586 #define bustype_ODY_GTI_WRX_PIDR4(a) CSR_TYPE_NCB32b 3587 #define basename_ODY_GTI_WRX_PIDR4(a) "GTI_WRX_PIDR4" 3588 #define device_bar_ODY_GTI_WRX_PIDR4(a) 0x0 /* PF_BAR0 */ 3589 #define busnum_ODY_GTI_WRX_PIDR4(a) (a) 3590 #define arguments_ODY_GTI_WRX_PIDR4(a) (a), -1, -1, -1 3591 3592 /** 3593 * Register (NCB32b) gti_wr#_pidr5 3594 * 3595 * GTI Watchdog Refresh Peripheral Identification Register 5 3596 */ 3597 union ody_gti_wrx_pidr5 { 3598 uint32_t u; 3599 struct ody_gti_wrx_pidr5_s { 3600 uint32_t reserved_0_31 : 32; 3601 } s; 3602 /* struct ody_gti_wrx_pidr5_s cn; */ 3603 }; 3604 typedef union ody_gti_wrx_pidr5 ody_gti_wrx_pidr5_t; 3605 3606 static inline uint64_t ODY_GTI_WRX_PIDR5(uint64_t a) __attribute__ ((pure, always_inline)); 3607 static inline uint64_t ODY_GTI_WRX_PIDR5(uint64_t a) 3608 { 3609 if (a <= 1) 3610 return 0x802000090fd4ll + 0x20000ll * ((a) & 0x1); 3611 __ody_csr_fatal("GTI_WRX_PIDR5", 1, a, 0, 0, 0, 0, 0); 3612 } 3613 3614 #define typedef_ODY_GTI_WRX_PIDR5(a) ody_gti_wrx_pidr5_t 3615 #define bustype_ODY_GTI_WRX_PIDR5(a) CSR_TYPE_NCB32b 3616 #define basename_ODY_GTI_WRX_PIDR5(a) "GTI_WRX_PIDR5" 3617 #define device_bar_ODY_GTI_WRX_PIDR5(a) 0x0 /* PF_BAR0 */ 3618 #define busnum_ODY_GTI_WRX_PIDR5(a) (a) 3619 #define arguments_ODY_GTI_WRX_PIDR5(a) (a), -1, -1, -1 3620 3621 /** 3622 * Register (NCB32b) gti_wr#_pidr6 3623 * 3624 * GTI Watchdog Refresh Peripheral Identification Register 6 3625 */ 3626 union ody_gti_wrx_pidr6 { 3627 uint32_t u; 3628 struct ody_gti_wrx_pidr6_s { 3629 uint32_t reserved_0_31 : 32; 3630 } s; 3631 /* struct ody_gti_wrx_pidr6_s cn; */ 3632 }; 3633 typedef union ody_gti_wrx_pidr6 ody_gti_wrx_pidr6_t; 3634 3635 static inline uint64_t ODY_GTI_WRX_PIDR6(uint64_t a) __attribute__ ((pure, always_inline)); 3636 static inline uint64_t ODY_GTI_WRX_PIDR6(uint64_t a) 3637 { 3638 if (a <= 1) 3639 return 0x802000090fd8ll + 0x20000ll * ((a) & 0x1); 3640 __ody_csr_fatal("GTI_WRX_PIDR6", 1, a, 0, 0, 0, 0, 0); 3641 } 3642 3643 #define typedef_ODY_GTI_WRX_PIDR6(a) ody_gti_wrx_pidr6_t 3644 #define bustype_ODY_GTI_WRX_PIDR6(a) CSR_TYPE_NCB32b 3645 #define basename_ODY_GTI_WRX_PIDR6(a) "GTI_WRX_PIDR6" 3646 #define device_bar_ODY_GTI_WRX_PIDR6(a) 0x0 /* PF_BAR0 */ 3647 #define busnum_ODY_GTI_WRX_PIDR6(a) (a) 3648 #define arguments_ODY_GTI_WRX_PIDR6(a) (a), -1, -1, -1 3649 3650 /** 3651 * Register (NCB32b) gti_wr#_pidr7 3652 * 3653 * GTI Watchdog Refresh Peripheral Identification Register 7 3654 */ 3655 union ody_gti_wrx_pidr7 { 3656 uint32_t u; 3657 struct ody_gti_wrx_pidr7_s { 3658 uint32_t reserved_0_31 : 32; 3659 } s; 3660 /* struct ody_gti_wrx_pidr7_s cn; */ 3661 }; 3662 typedef union ody_gti_wrx_pidr7 ody_gti_wrx_pidr7_t; 3663 3664 static inline uint64_t ODY_GTI_WRX_PIDR7(uint64_t a) __attribute__ ((pure, always_inline)); 3665 static inline uint64_t ODY_GTI_WRX_PIDR7(uint64_t a) 3666 { 3667 if (a <= 1) 3668 return 0x802000090fdcll + 0x20000ll * ((a) & 0x1); 3669 __ody_csr_fatal("GTI_WRX_PIDR7", 1, a, 0, 0, 0, 0, 0); 3670 } 3671 3672 #define typedef_ODY_GTI_WRX_PIDR7(a) ody_gti_wrx_pidr7_t 3673 #define bustype_ODY_GTI_WRX_PIDR7(a) CSR_TYPE_NCB32b 3674 #define basename_ODY_GTI_WRX_PIDR7(a) "GTI_WRX_PIDR7" 3675 #define device_bar_ODY_GTI_WRX_PIDR7(a) 0x0 /* PF_BAR0 */ 3676 #define busnum_ODY_GTI_WRX_PIDR7(a) (a) 3677 #define arguments_ODY_GTI_WRX_PIDR7(a) (a), -1, -1, -1 3678 3679 /** 3680 * Register (NCB32b) gti_wr#_w_iidr 3681 * 3682 * GTI Watchdog Refresh Interface Identification Register 3683 * GTI_WR(0) accesses the secure watchdog and is accessible only by the 3684 * secure-world. GTI_WR(1) accesses the nonsecure watchdog. 3685 */ 3686 union ody_gti_wrx_w_iidr { 3687 uint32_t u; 3688 struct ody_gti_wrx_w_iidr_s { 3689 uint32_t implementer : 12; 3690 uint32_t revision : 4; 3691 uint32_t arch : 4; 3692 uint32_t variant : 4; 3693 uint32_t productid : 8; 3694 } s; 3695 /* struct ody_gti_wrx_w_iidr_s cn; */ 3696 }; 3697 typedef union ody_gti_wrx_w_iidr ody_gti_wrx_w_iidr_t; 3698 3699 static inline uint64_t ODY_GTI_WRX_W_IIDR(uint64_t a) __attribute__ ((pure, always_inline)); 3700 static inline uint64_t ODY_GTI_WRX_W_IIDR(uint64_t a) 3701 { 3702 if (a <= 1) 3703 return 0x802000090fccll + 0x20000ll * ((a) & 0x1); 3704 __ody_csr_fatal("GTI_WRX_W_IIDR", 1, a, 0, 0, 0, 0, 0); 3705 } 3706 3707 #define typedef_ODY_GTI_WRX_W_IIDR(a) ody_gti_wrx_w_iidr_t 3708 #define bustype_ODY_GTI_WRX_W_IIDR(a) CSR_TYPE_NCB32b 3709 #define basename_ODY_GTI_WRX_W_IIDR(a) "GTI_WRX_W_IIDR" 3710 #define device_bar_ODY_GTI_WRX_W_IIDR(a) 0x0 /* PF_BAR0 */ 3711 #define busnum_ODY_GTI_WRX_W_IIDR(a) (a) 3712 #define arguments_ODY_GTI_WRX_W_IIDR(a) (a), -1, -1, -1 3713 3714 /** 3715 * Register (NCB32b) gti_wr#_wrr 3716 * 3717 * GTI Watchdog Refresh Register 3718 * GTI_WR(0) accesses the secure watchdog and is accessible only by the 3719 * secure-world. GTI_WR(1) accesses the nonsecure watchdog. 3720 */ 3721 union ody_gti_wrx_wrr { 3722 uint32_t u; 3723 struct ody_gti_wrx_wrr_s { 3724 uint32_t zero : 32; 3725 } s; 3726 /* struct ody_gti_wrx_wrr_s cn; */ 3727 }; 3728 typedef union ody_gti_wrx_wrr ody_gti_wrx_wrr_t; 3729 3730 static inline uint64_t ODY_GTI_WRX_WRR(uint64_t a) __attribute__ ((pure, always_inline)); 3731 static inline uint64_t ODY_GTI_WRX_WRR(uint64_t a) 3732 { 3733 if (a <= 1) 3734 return 0x802000090000ll + 0x20000ll * ((a) & 0x1); 3735 __ody_csr_fatal("GTI_WRX_WRR", 1, a, 0, 0, 0, 0, 0); 3736 } 3737 3738 #define typedef_ODY_GTI_WRX_WRR(a) ody_gti_wrx_wrr_t 3739 #define bustype_ODY_GTI_WRX_WRR(a) CSR_TYPE_NCB32b 3740 #define basename_ODY_GTI_WRX_WRR(a) "GTI_WRX_WRR" 3741 #define device_bar_ODY_GTI_WRX_WRR(a) 0x0 /* PF_BAR0 */ 3742 #define busnum_ODY_GTI_WRX_WRR(a) (a) 3743 #define arguments_ODY_GTI_WRX_WRR(a) (a), -1, -1, -1 3744 3745 #endif /* __ODY_CSRS_GTI_H__ */ 3746