| 1 | #ifndef __BDK_CSRS_MIO_BOOT_H__ |
| 2 | #define __BDK_CSRS_MIO_BOOT_H__ |
| 3 | /* This file is auto-generated. Do not edit */ |
| 4 | |
| 5 | /***********************license start*************** |
| 6 | * Copyright (c) 2003-2017 Cavium Inc. ([email protected]). All rights |
| 7 | * reserved. |
| 8 | * |
| 9 | * |
| 10 | * Redistribution and use in source and binary forms, with or without |
| 11 | * modification, are permitted provided that the following conditions are |
| 12 | * met: |
| 13 | * |
| 14 | * * Redistributions of source code must retain the above copyright |
| 15 | * notice, this list of conditions and the following disclaimer. |
| 16 | * |
| 17 | * * Redistributions in binary form must reproduce the above |
| 18 | * copyright notice, this list of conditions and the following |
| 19 | * disclaimer in the documentation and/or other materials provided |
| 20 | * with the distribution. |
| 21 | |
| 22 | * * Neither the name of Cavium Inc. nor the names of |
| 23 | * its contributors may be used to endorse or promote products |
| 24 | * derived from this software without specific prior written |
| 25 | * permission. |
| 26 | |
| 27 | * This Software, including technical data, may be subject to U.S. export control |
| 28 | * laws, including the U.S. Export Administration Act and its associated |
| 29 | * regulations, and may be subject to export or import regulations in other |
| 30 | * countries. |
| 31 | |
| 32 | * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
| 33 | * AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR |
| 34 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
| 35 | * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR |
| 36 | * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM |
| 37 | * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE, |
| 38 | * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF |
| 39 | * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR |
| 40 | * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR |
| 41 | * PERFORMANCE OF THE SOFTWARE LIES WITH YOU. |
| 42 | ***********************license end**************************************/ |
| 43 | |
| 44 | |
| 45 | /** |
| 46 | * @file |
| 47 | * |
| 48 | * Configuration and status register (CSR) address and type definitions for |
| 49 | * Cavium MIO_BOOT. |
| 50 | * |
| 51 | * This file is auto generated. Do not edit. |
| 52 | * |
| 53 | */ |
| 54 | |
| 55 | /** |
| 56 | * Enumeration mio_boot_bar_e |
| 57 | * |
| 58 | * MIO Boot Base Address Register Enumeration |
| 59 | * Enumerates the base address registers. |
| 60 | */ |
| 61 | #define BDK_MIO_BOOT_BAR_E_MIO_BOOT_PF_BAR0 (0x87e000000000ll) |
| 62 | #define BDK_MIO_BOOT_BAR_E_MIO_BOOT_PF_BAR0_SIZE 0x800000ull |
| 63 | |
| 64 | /** |
| 65 | * Register (RSL) mio_boot_ap_jump |
| 66 | * |
| 67 | * MIO Boot AP Jump Address Register |
| 68 | */ |
| 69 | union bdk_mio_boot_ap_jump |
| 70 | { |
| 71 | uint64_t u; |
| 72 | struct bdk_mio_boot_ap_jump_s |
| 73 | { |
| 74 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 75 | uint64_t addr : 64; /**< [ 63: 0](SR/W) Boot address. This register contains the address the internal boot loader |
| 76 | will jump to after reset. */ |
| 77 | #else /* Word 0 - Little Endian */ |
| 78 | uint64_t addr : 64; /**< [ 63: 0](SR/W) Boot address. This register contains the address the internal boot loader |
| 79 | will jump to after reset. */ |
| 80 | #endif /* Word 0 - End */ |
| 81 | } s; |
| 82 | /* struct bdk_mio_boot_ap_jump_s cn; */ |
| 83 | }; |
| 84 | typedef union bdk_mio_boot_ap_jump bdk_mio_boot_ap_jump_t; |
| 85 | |
| 86 | #define BDK_MIO_BOOT_AP_JUMP BDK_MIO_BOOT_AP_JUMP_FUNC() |
| 87 | static inline uint64_t BDK_MIO_BOOT_AP_JUMP_FUNC(void) __attribute__ ((pure, always_inline)); |
| 88 | static inline uint64_t BDK_MIO_BOOT_AP_JUMP_FUNC(void) |
| 89 | { |
| 90 | if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX)) |
| 91 | return 0x87e0000000d0ll; |
| 92 | __bdk_csr_fatal("MIO_BOOT_AP_JUMP", 0, 0, 0, 0, 0); |
| 93 | } |
| 94 | |
| 95 | #define typedef_BDK_MIO_BOOT_AP_JUMP bdk_mio_boot_ap_jump_t |
| 96 | #define bustype_BDK_MIO_BOOT_AP_JUMP BDK_CSR_TYPE_RSL |
| 97 | #define basename_BDK_MIO_BOOT_AP_JUMP "MIO_BOOT_AP_JUMP" |
| 98 | #define device_bar_BDK_MIO_BOOT_AP_JUMP 0x0 /* PF_BAR0 */ |
| 99 | #define busnum_BDK_MIO_BOOT_AP_JUMP 0 |
| 100 | #define arguments_BDK_MIO_BOOT_AP_JUMP -1,-1,-1,-1 |
| 101 | |
| 102 | /** |
| 103 | * Register (RSL) mio_boot_bist_stat |
| 104 | * |
| 105 | * MIO Boot BIST Status Register |
| 106 | * The boot BIST status register contains the BIST status for the MIO boot memories: 0 = pass, 1 |
| 107 | * = fail. |
| 108 | */ |
| 109 | union bdk_mio_boot_bist_stat |
| 110 | { |
| 111 | uint64_t u; |
| 112 | struct bdk_mio_boot_bist_stat_s |
| 113 | { |
| 114 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 115 | uint64_t reserved_16_63 : 48; |
| 116 | uint64_t stat : 16; /**< [ 15: 0](RO/H) BIST status. |
| 117 | Internal: |
| 118 | \<0\> = mio.mio_boot.mio_boot_fifo.mem. |
| 119 | \<1\> = mio.mio_boot.mio_boot_rsp.mem. |
| 120 | \<2\> = mio.mio_boot.mio_boot_dma.mem. |
| 121 | \<3\> = mio.mio_nbt.mio_nbt_fifo.mem. |
| 122 | \<4\> = mio.mio_emm.bufs.mem.mem. |
| 123 | \<5\> = mio.mio_nbr.ncbo_crd_fif_mem0. |
| 124 | \<6\> = mio.csr.csr_fifo. |
| 125 | \<7\> = mio_boot_rom/mio_boot_rom1 (internal bootroms). |
| 126 | \<8\> = mio.mio_rsl.mio_pcc.gpi_pcc. |
| 127 | \<9\> = mio.mio_pbus.mio_pbus_fifo.mem. |
| 128 | \<10\> = mio.mio_pbus.mio_pbus_rsp.mem. |
| 129 | \<11\> = mio.mio_ndf.mio_ndf_bufs.ndf_buf. |
| 130 | \<12\> = mio.mio_ndf.ndf_ncb_rcv_fif. |
| 131 | \<13\> = mio.mio_pcm.mio_pcm_ctl.dmamem. |
| 132 | \<14\> = mio.mio_pcm.mio_pcm_ctl.maskmem. |
| 133 | \<15\> = mio.mio_nbt.mio_nbt_pfifo.mem. */ |
| 134 | #else /* Word 0 - Little Endian */ |
| 135 | uint64_t stat : 16; /**< [ 15: 0](RO/H) BIST status. |
| 136 | Internal: |
| 137 | \<0\> = mio.mio_boot.mio_boot_fifo.mem. |
| 138 | \<1\> = mio.mio_boot.mio_boot_rsp.mem. |
| 139 | \<2\> = mio.mio_boot.mio_boot_dma.mem. |
| 140 | \<3\> = mio.mio_nbt.mio_nbt_fifo.mem. |
| 141 | \<4\> = mio.mio_emm.bufs.mem.mem. |
| 142 | \<5\> = mio.mio_nbr.ncbo_crd_fif_mem0. |
| 143 | \<6\> = mio.csr.csr_fifo. |
| 144 | \<7\> = mio_boot_rom/mio_boot_rom1 (internal bootroms). |
| 145 | \<8\> = mio.mio_rsl.mio_pcc.gpi_pcc. |
| 146 | \<9\> = mio.mio_pbus.mio_pbus_fifo.mem. |
| 147 | \<10\> = mio.mio_pbus.mio_pbus_rsp.mem. |
| 148 | \<11\> = mio.mio_ndf.mio_ndf_bufs.ndf_buf. |
| 149 | \<12\> = mio.mio_ndf.ndf_ncb_rcv_fif. |
| 150 | \<13\> = mio.mio_pcm.mio_pcm_ctl.dmamem. |
| 151 | \<14\> = mio.mio_pcm.mio_pcm_ctl.maskmem. |
| 152 | \<15\> = mio.mio_nbt.mio_nbt_pfifo.mem. */ |
| 153 | uint64_t reserved_16_63 : 48; |
| 154 | #endif /* Word 0 - End */ |
| 155 | } s; |
| 156 | /* struct bdk_mio_boot_bist_stat_s cn81xx; */ |
| 157 | struct bdk_mio_boot_bist_stat_cn88xx |
| 158 | { |
| 159 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 160 | uint64_t reserved_9_63 : 55; |
| 161 | uint64_t stat : 9; /**< [ 8: 0](RO/H) BIST status. |
| 162 | Internal: |
| 163 | \<0\> = mio.mio_boot.mio_boot_fifo.mem. |
| 164 | \<1\> = mio.mio_boot.mio_boot_rsp.mem. |
| 165 | \<2\> = mio.mio_boot.mio_boot_dma.mem. |
| 166 | \<3\> = mio.mio_nbt.mio_nbt_fifo.mem. |
| 167 | \<4\> = mio.mio_emm.bufs.mem.mem. |
| 168 | \<5\> = mio.mio_nbr.ncbo_crd_fif_mem0. |
| 169 | \<6\> = mio.csr.csr_fifo. |
| 170 | \<7\> = mio_boot_rom/mio_boot_rom1 (internal bootroms). |
| 171 | \<8\> = mio.mio_rsl.mio_pcc.gpi_pcc. */ |
| 172 | #else /* Word 0 - Little Endian */ |
| 173 | uint64_t stat : 9; /**< [ 8: 0](RO/H) BIST status. |
| 174 | Internal: |
| 175 | \<0\> = mio.mio_boot.mio_boot_fifo.mem. |
| 176 | \<1\> = mio.mio_boot.mio_boot_rsp.mem. |
| 177 | \<2\> = mio.mio_boot.mio_boot_dma.mem. |
| 178 | \<3\> = mio.mio_nbt.mio_nbt_fifo.mem. |
| 179 | \<4\> = mio.mio_emm.bufs.mem.mem. |
| 180 | \<5\> = mio.mio_nbr.ncbo_crd_fif_mem0. |
| 181 | \<6\> = mio.csr.csr_fifo. |
| 182 | \<7\> = mio_boot_rom/mio_boot_rom1 (internal bootroms). |
| 183 | \<8\> = mio.mio_rsl.mio_pcc.gpi_pcc. */ |
| 184 | uint64_t reserved_9_63 : 55; |
| 185 | #endif /* Word 0 - End */ |
| 186 | } cn88xx; |
| 187 | struct bdk_mio_boot_bist_stat_cn83xx |
| 188 | { |
| 189 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 190 | uint64_t reserved_13_63 : 51; |
| 191 | uint64_t stat : 13; /**< [ 12: 0](RO/H) BIST status. |
| 192 | Internal: |
| 193 | \<0\> = mio.mio_boot.mio_boot_fifo.mem. |
| 194 | \<1\> = mio.mio_boot.mio_boot_rsp.mem. |
| 195 | \<2\> = mio.mio_boot.mio_boot_dma.mem. |
| 196 | \<3\> = mio.mio_nbt.mio_nbt_fifo.mem. |
| 197 | \<4\> = mio.mio_emm.bufs.mem.mem. |
| 198 | \<5\> = mio.mio_nbr.ncbo_crd_fif_mem0. |
| 199 | \<6\> = mio.csr.csr_fifo. |
| 200 | \<7\> = mio_boot_rom/mio_boot_rom1 (internal bootroms). |
| 201 | \<8\> = mio.mio_rsl.mio_pcc.gpi_pcc. |
| 202 | \<9\> = mio.mio_pbus.mio_pbus_fifo.mem. |
| 203 | \<10\> = mio.mio_pbus.mio_pbus_rsp.mem. |
| 204 | \<11\> = mio.mio_ndf.mio_ndf_bufs.ndf_buf. |
| 205 | \<12\> = mio.mio_ndf.ndf_ncb_rcv_fif. */ |
| 206 | #else /* Word 0 - Little Endian */ |
| 207 | uint64_t stat : 13; /**< [ 12: 0](RO/H) BIST status. |
| 208 | Internal: |
| 209 | \<0\> = mio.mio_boot.mio_boot_fifo.mem. |
| 210 | \<1\> = mio.mio_boot.mio_boot_rsp.mem. |
| 211 | \<2\> = mio.mio_boot.mio_boot_dma.mem. |
| 212 | \<3\> = mio.mio_nbt.mio_nbt_fifo.mem. |
| 213 | \<4\> = mio.mio_emm.bufs.mem.mem. |
| 214 | \<5\> = mio.mio_nbr.ncbo_crd_fif_mem0. |
| 215 | \<6\> = mio.csr.csr_fifo. |
| 216 | \<7\> = mio_boot_rom/mio_boot_rom1 (internal bootroms). |
| 217 | \<8\> = mio.mio_rsl.mio_pcc.gpi_pcc. |
| 218 | \<9\> = mio.mio_pbus.mio_pbus_fifo.mem. |
| 219 | \<10\> = mio.mio_pbus.mio_pbus_rsp.mem. |
| 220 | \<11\> = mio.mio_ndf.mio_ndf_bufs.ndf_buf. |
| 221 | \<12\> = mio.mio_ndf.ndf_ncb_rcv_fif. */ |
| 222 | uint64_t reserved_13_63 : 51; |
| 223 | #endif /* Word 0 - End */ |
| 224 | } cn83xx; |
| 225 | }; |
| 226 | typedef union bdk_mio_boot_bist_stat bdk_mio_boot_bist_stat_t; |
| 227 | |
| 228 | #define BDK_MIO_BOOT_BIST_STAT BDK_MIO_BOOT_BIST_STAT_FUNC() |
| 229 | static inline uint64_t BDK_MIO_BOOT_BIST_STAT_FUNC(void) __attribute__ ((pure, always_inline)); |
| 230 | static inline uint64_t BDK_MIO_BOOT_BIST_STAT_FUNC(void) |
| 231 | { |
| 232 | if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX)) |
| 233 | return 0x87e0000000f8ll; |
| 234 | __bdk_csr_fatal("MIO_BOOT_BIST_STAT", 0, 0, 0, 0, 0); |
| 235 | } |
| 236 | |
| 237 | #define typedef_BDK_MIO_BOOT_BIST_STAT bdk_mio_boot_bist_stat_t |
| 238 | #define bustype_BDK_MIO_BOOT_BIST_STAT BDK_CSR_TYPE_RSL |
| 239 | #define basename_BDK_MIO_BOOT_BIST_STAT "MIO_BOOT_BIST_STAT" |
| 240 | #define device_bar_BDK_MIO_BOOT_BIST_STAT 0x0 /* PF_BAR0 */ |
| 241 | #define busnum_BDK_MIO_BOOT_BIST_STAT 0 |
| 242 | #define arguments_BDK_MIO_BOOT_BIST_STAT -1,-1,-1,-1 |
| 243 | |
| 244 | /** |
| 245 | * Register (RSL) mio_boot_pin_defs |
| 246 | * |
| 247 | * MIO Boot Pin Defaults Register |
| 248 | * This register reflects the value of some of the pins sampled |
| 249 | * at the rising edge of PLL_DCOK. The GPIO pins sampled at |
| 250 | * the same time are available in the GPIO_STRAP csr. |
| 251 | */ |
| 252 | union bdk_mio_boot_pin_defs |
| 253 | { |
| 254 | uint64_t u; |
| 255 | struct bdk_mio_boot_pin_defs_s |
| 256 | { |
| 257 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 258 | uint64_t reserved_18_63 : 46; |
| 259 | uint64_t uart1_rts : 1; /**< [ 17: 17](RO) State of UART1_RTS_N pin strap sampled when DCOK asserts. */ |
| 260 | uint64_t uart0_rts : 1; /**< [ 16: 16](RO) State of UART0_RTS_N pin strap sampled when DCOK asserts. */ |
| 261 | uint64_t reserved_11_15 : 5; |
| 262 | uint64_t rgm_supply : 2; /**< [ 10: 9](RO) RGMII power supply setting based on VDD_RGM_SUPPLY_SELECT pin: |
| 263 | 0x2 = 2.5V. |
| 264 | _ All other values reserved. */ |
| 265 | uint64_t emm_supply : 3; /**< [ 8: 6](RO) EMMC power supply settings. |
| 266 | 0x4 = 3.3V. |
| 267 | _ All other values reserved. */ |
| 268 | uint64_t smi_supply : 3; /**< [ 5: 3](RO) SMI power supply setting based on VDD_SMI_SUPPLY_SELECT pin: |
| 269 | 0x2 = 2.5V. |
| 270 | 0x4 = 3.3V. |
| 271 | _ All other values reserved. */ |
| 272 | uint64_t io_supply : 3; /**< [ 2: 0](RO) I/O power supply setting based on VDD_IO_SUPPLY_SELECT pin: |
| 273 | 0x2 = 2.5V. |
| 274 | 0x4 = 3.3V. |
| 275 | _ All other values reserved. */ |
| 276 | #else /* Word 0 - Little Endian */ |
| 277 | uint64_t io_supply : 3; /**< [ 2: 0](RO) I/O power supply setting based on VDD_IO_SUPPLY_SELECT pin: |
| 278 | 0x2 = 2.5V. |
| 279 | 0x4 = 3.3V. |
| 280 | _ All other values reserved. */ |
| 281 | uint64_t smi_supply : 3; /**< [ 5: 3](RO) SMI power supply setting based on VDD_SMI_SUPPLY_SELECT pin: |
| 282 | 0x2 = 2.5V. |
| 283 | 0x4 = 3.3V. |
| 284 | _ All other values reserved. */ |
| 285 | uint64_t emm_supply : 3; /**< [ 8: 6](RO) EMMC power supply settings. |
| 286 | 0x4 = 3.3V. |
| 287 | _ All other values reserved. */ |
| 288 | uint64_t rgm_supply : 2; /**< [ 10: 9](RO) RGMII power supply setting based on VDD_RGM_SUPPLY_SELECT pin: |
| 289 | 0x2 = 2.5V. |
| 290 | _ All other values reserved. */ |
| 291 | uint64_t reserved_11_15 : 5; |
| 292 | uint64_t uart0_rts : 1; /**< [ 16: 16](RO) State of UART0_RTS_N pin strap sampled when DCOK asserts. */ |
| 293 | uint64_t uart1_rts : 1; /**< [ 17: 17](RO) State of UART1_RTS_N pin strap sampled when DCOK asserts. */ |
| 294 | uint64_t reserved_18_63 : 46; |
| 295 | #endif /* Word 0 - End */ |
| 296 | } s; |
| 297 | struct bdk_mio_boot_pin_defs_cn81xx |
| 298 | { |
| 299 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 300 | uint64_t reserved_18_63 : 46; |
| 301 | uint64_t uart1_rts : 1; /**< [ 17: 17](RO) State of UART1_RTS_N pin strap sampled when DCOK asserts. */ |
| 302 | uint64_t uart0_rts : 1; /**< [ 16: 16](RO) Reference clock select. State of UART0_RTS_N pin sampled when DCOK asserts. |
| 303 | 0 = Board supplies 100 MHz to DLM_REF_CLK\<1\> (divided by 2 internally). |
| 304 | 1 = Board supplies 50 MHz to PLL_REFCLK. */ |
| 305 | uint64_t reserved_11_15 : 5; |
| 306 | uint64_t rgm_supply : 2; /**< [ 10: 9](RO) RGMII power supply setting based on VDD_RGM_SUPPLY_SELECT pin: |
| 307 | 0x2 = 2.5V. |
| 308 | _ All other values reserved. */ |
| 309 | uint64_t emm_supply : 3; /**< [ 8: 6](RO) EMMC power supply settings. |
| 310 | 0x4 = 3.3V. |
| 311 | _ All other values reserved. */ |
| 312 | uint64_t smi_supply : 3; /**< [ 5: 3](RO) SMI power supply setting based on VDD_SMI_SUPPLY_SELECT pin: |
| 313 | 0x2 = 2.5V. |
| 314 | 0x4 = 3.3V. |
| 315 | _ All other values reserved. */ |
| 316 | uint64_t io_supply : 3; /**< [ 2: 0](RO) I/O power supply setting based on VDD_IO_SUPPLY_SELECT pin: |
| 317 | 0x2 = 2.5V. |
| 318 | 0x4 = 3.3V. |
| 319 | _ All other values reserved. */ |
| 320 | #else /* Word 0 - Little Endian */ |
| 321 | uint64_t io_supply : 3; /**< [ 2: 0](RO) I/O power supply setting based on VDD_IO_SUPPLY_SELECT pin: |
| 322 | 0x2 = 2.5V. |
| 323 | 0x4 = 3.3V. |
| 324 | _ All other values reserved. */ |
| 325 | uint64_t smi_supply : 3; /**< [ 5: 3](RO) SMI power supply setting based on VDD_SMI_SUPPLY_SELECT pin: |
| 326 | 0x2 = 2.5V. |
| 327 | 0x4 = 3.3V. |
| 328 | _ All other values reserved. */ |
| 329 | uint64_t emm_supply : 3; /**< [ 8: 6](RO) EMMC power supply settings. |
| 330 | 0x4 = 3.3V. |
| 331 | _ All other values reserved. */ |
| 332 | uint64_t rgm_supply : 2; /**< [ 10: 9](RO) RGMII power supply setting based on VDD_RGM_SUPPLY_SELECT pin: |
| 333 | 0x2 = 2.5V. |
| 334 | _ All other values reserved. */ |
| 335 | uint64_t reserved_11_15 : 5; |
| 336 | uint64_t uart0_rts : 1; /**< [ 16: 16](RO) Reference clock select. State of UART0_RTS_N pin sampled when DCOK asserts. |
| 337 | 0 = Board supplies 100 MHz to DLM_REF_CLK\<1\> (divided by 2 internally). |
| 338 | 1 = Board supplies 50 MHz to PLL_REFCLK. */ |
| 339 | uint64_t uart1_rts : 1; /**< [ 17: 17](RO) State of UART1_RTS_N pin strap sampled when DCOK asserts. */ |
| 340 | uint64_t reserved_18_63 : 46; |
| 341 | #endif /* Word 0 - End */ |
| 342 | } cn81xx; |
| 343 | struct bdk_mio_boot_pin_defs_cn88xx |
| 344 | { |
| 345 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 346 | uint64_t reserved_6_63 : 58; |
| 347 | uint64_t smi_supply : 3; /**< [ 5: 3](RO) SMI power supply setting based on VDD_SMI_SUPPLY_SELECT pin: |
| 348 | 0x2 = 2.5V. |
| 349 | 0x4 = 3.3V. |
| 350 | _ All other values reserved. */ |
| 351 | uint64_t io_supply : 3; /**< [ 2: 0](RO) I/O power supply setting based on VDD_IO_SUPPLY_SELECT pin: |
| 352 | 0x2 = 2.5V. |
| 353 | 0x4 = 3.3V. |
| 354 | _ All other values reserved. */ |
| 355 | #else /* Word 0 - Little Endian */ |
| 356 | uint64_t io_supply : 3; /**< [ 2: 0](RO) I/O power supply setting based on VDD_IO_SUPPLY_SELECT pin: |
| 357 | 0x2 = 2.5V. |
| 358 | 0x4 = 3.3V. |
| 359 | _ All other values reserved. */ |
| 360 | uint64_t smi_supply : 3; /**< [ 5: 3](RO) SMI power supply setting based on VDD_SMI_SUPPLY_SELECT pin: |
| 361 | 0x2 = 2.5V. |
| 362 | 0x4 = 3.3V. |
| 363 | _ All other values reserved. */ |
| 364 | uint64_t reserved_6_63 : 58; |
| 365 | #endif /* Word 0 - End */ |
| 366 | } cn88xx; |
| 367 | struct bdk_mio_boot_pin_defs_cn83xx |
| 368 | { |
| 369 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 370 | uint64_t reserved_18_63 : 46; |
| 371 | uint64_t uart1_rts : 1; /**< [ 17: 17](RO) State of UART1_RTS_N pin strap sampled when DCOK asserts. */ |
| 372 | uint64_t uart0_rts : 1; /**< [ 16: 16](RO) State of UART0_RTS_N pin strap sampled when DCOK asserts. */ |
| 373 | uint64_t reserved_9_15 : 7; |
| 374 | uint64_t emm_supply : 3; /**< [ 8: 6](RO) EMMC power supply settings. |
| 375 | 0x4 = 3.3V. |
| 376 | _ All other values reserved. */ |
| 377 | uint64_t smi_supply : 3; /**< [ 5: 3](RO) SMI power supply setting based on VDD_SMI_SUPPLY_SELECT pin: |
| 378 | 0x2 = 2.5V. |
| 379 | 0x4 = 3.3V. |
| 380 | _ All other values reserved. */ |
| 381 | uint64_t io_supply : 3; /**< [ 2: 0](RO) I/O power supply setting based on VDD_IO_SUPPLY_SELECT pin: |
| 382 | 0x2 = 2.5V. |
| 383 | 0x4 = 3.3V. |
| 384 | _ All other values reserved. */ |
| 385 | #else /* Word 0 - Little Endian */ |
| 386 | uint64_t io_supply : 3; /**< [ 2: 0](RO) I/O power supply setting based on VDD_IO_SUPPLY_SELECT pin: |
| 387 | 0x2 = 2.5V. |
| 388 | 0x4 = 3.3V. |
| 389 | _ All other values reserved. */ |
| 390 | uint64_t smi_supply : 3; /**< [ 5: 3](RO) SMI power supply setting based on VDD_SMI_SUPPLY_SELECT pin: |
| 391 | 0x2 = 2.5V. |
| 392 | 0x4 = 3.3V. |
| 393 | _ All other values reserved. */ |
| 394 | uint64_t emm_supply : 3; /**< [ 8: 6](RO) EMMC power supply settings. |
| 395 | 0x4 = 3.3V. |
| 396 | _ All other values reserved. */ |
| 397 | uint64_t reserved_9_15 : 7; |
| 398 | uint64_t uart0_rts : 1; /**< [ 16: 16](RO) State of UART0_RTS_N pin strap sampled when DCOK asserts. */ |
| 399 | uint64_t uart1_rts : 1; /**< [ 17: 17](RO) State of UART1_RTS_N pin strap sampled when DCOK asserts. */ |
| 400 | uint64_t reserved_18_63 : 46; |
| 401 | #endif /* Word 0 - End */ |
| 402 | } cn83xx; |
| 403 | }; |
| 404 | typedef union bdk_mio_boot_pin_defs bdk_mio_boot_pin_defs_t; |
| 405 | |
| 406 | #define BDK_MIO_BOOT_PIN_DEFS BDK_MIO_BOOT_PIN_DEFS_FUNC() |
| 407 | static inline uint64_t BDK_MIO_BOOT_PIN_DEFS_FUNC(void) __attribute__ ((pure, always_inline)); |
| 408 | static inline uint64_t BDK_MIO_BOOT_PIN_DEFS_FUNC(void) |
| 409 | { |
| 410 | if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX)) |
| 411 | return 0x87e0000000c0ll; |
| 412 | __bdk_csr_fatal("MIO_BOOT_PIN_DEFS", 0, 0, 0, 0, 0); |
| 413 | } |
| 414 | |
| 415 | #define typedef_BDK_MIO_BOOT_PIN_DEFS bdk_mio_boot_pin_defs_t |
| 416 | #define bustype_BDK_MIO_BOOT_PIN_DEFS BDK_CSR_TYPE_RSL |
| 417 | #define basename_BDK_MIO_BOOT_PIN_DEFS "MIO_BOOT_PIN_DEFS" |
| 418 | #define device_bar_BDK_MIO_BOOT_PIN_DEFS 0x0 /* PF_BAR0 */ |
| 419 | #define busnum_BDK_MIO_BOOT_PIN_DEFS 0 |
| 420 | #define arguments_BDK_MIO_BOOT_PIN_DEFS -1,-1,-1,-1 |
| 421 | |
| 422 | /** |
| 423 | * Register (RSL) mio_boot_rom_limit |
| 424 | * |
| 425 | * MIO Boot ROM Limit Register |
| 426 | * This register contains the largest valid address in the internal bootrom. |
| 427 | */ |
| 428 | union bdk_mio_boot_rom_limit |
| 429 | { |
| 430 | uint64_t u; |
| 431 | struct bdk_mio_boot_rom_limit_s |
| 432 | { |
| 433 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 434 | uint64_t reserved_17_63 : 47; |
| 435 | uint64_t addr : 17; /**< [ 16: 0](SR/W/H) End of ROM address. This field specifies the first invalid address in ROM_MEM(); |
| 436 | access to a ROM_MEM() address at or above this address will return a fault and zeros. |
| 437 | Writes to this register which attempt to set an [ADDR] greater than the previous [ADDR] |
| 438 | setting are ignored. |
| 439 | |
| 440 | Internal: |
| 441 | If trusted boot mode, resets to the size of the internal |
| 442 | bootrom (0x4000), ROM boot instructions may then write to decrease the value. If |
| 443 | non-trusted boot resets to a value read from ROM_MEM() at address MAX - 12, just |
| 444 | before the CRC. */ |
| 445 | #else /* Word 0 - Little Endian */ |
| 446 | uint64_t addr : 17; /**< [ 16: 0](SR/W/H) End of ROM address. This field specifies the first invalid address in ROM_MEM(); |
| 447 | access to a ROM_MEM() address at or above this address will return a fault and zeros. |
| 448 | Writes to this register which attempt to set an [ADDR] greater than the previous [ADDR] |
| 449 | setting are ignored. |
| 450 | |
| 451 | Internal: |
| 452 | If trusted boot mode, resets to the size of the internal |
| 453 | bootrom (0x4000), ROM boot instructions may then write to decrease the value. If |
| 454 | non-trusted boot resets to a value read from ROM_MEM() at address MAX - 12, just |
| 455 | before the CRC. */ |
| 456 | uint64_t reserved_17_63 : 47; |
| 457 | #endif /* Word 0 - End */ |
| 458 | } s; |
| 459 | /* struct bdk_mio_boot_rom_limit_s cn; */ |
| 460 | }; |
| 461 | typedef union bdk_mio_boot_rom_limit bdk_mio_boot_rom_limit_t; |
| 462 | |
| 463 | #define BDK_MIO_BOOT_ROM_LIMIT BDK_MIO_BOOT_ROM_LIMIT_FUNC() |
| 464 | static inline uint64_t BDK_MIO_BOOT_ROM_LIMIT_FUNC(void) __attribute__ ((pure, always_inline)); |
| 465 | static inline uint64_t BDK_MIO_BOOT_ROM_LIMIT_FUNC(void) |
| 466 | { |
| 467 | if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX)) |
| 468 | return 0x87e0000000d8ll; |
| 469 | __bdk_csr_fatal("MIO_BOOT_ROM_LIMIT", 0, 0, 0, 0, 0); |
| 470 | } |
| 471 | |
| 472 | #define typedef_BDK_MIO_BOOT_ROM_LIMIT bdk_mio_boot_rom_limit_t |
| 473 | #define bustype_BDK_MIO_BOOT_ROM_LIMIT BDK_CSR_TYPE_RSL |
| 474 | #define basename_BDK_MIO_BOOT_ROM_LIMIT "MIO_BOOT_ROM_LIMIT" |
| 475 | #define device_bar_BDK_MIO_BOOT_ROM_LIMIT 0x0 /* PF_BAR0 */ |
| 476 | #define busnum_BDK_MIO_BOOT_ROM_LIMIT 0 |
| 477 | #define arguments_BDK_MIO_BOOT_ROM_LIMIT -1,-1,-1,-1 |
| 478 | |
| 479 | /** |
| 480 | * Register (RSL) mio_boot_thr |
| 481 | * |
| 482 | * MIO Boot Threshold Register |
| 483 | * The boot-threshold register contains MIO boot-threshold values. |
| 484 | */ |
| 485 | union bdk_mio_boot_thr |
| 486 | { |
| 487 | uint64_t u; |
| 488 | struct bdk_mio_boot_thr_s |
| 489 | { |
| 490 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 491 | uint64_t reserved_14_63 : 50; |
| 492 | uint64_t fif_cnt : 6; /**< [ 13: 8](RO/H) Current FIFO count. */ |
| 493 | uint64_t reserved_6_7 : 2; |
| 494 | uint64_t fif_thr : 6; /**< [ 5: 0](R/W) NCB busy threshold. Should always read 0x19 (the only legal value). */ |
| 495 | #else /* Word 0 - Little Endian */ |
| 496 | uint64_t fif_thr : 6; /**< [ 5: 0](R/W) NCB busy threshold. Should always read 0x19 (the only legal value). */ |
| 497 | uint64_t reserved_6_7 : 2; |
| 498 | uint64_t fif_cnt : 6; /**< [ 13: 8](RO/H) Current FIFO count. */ |
| 499 | uint64_t reserved_14_63 : 50; |
| 500 | #endif /* Word 0 - End */ |
| 501 | } s; |
| 502 | /* struct bdk_mio_boot_thr_s cn81xx; */ |
| 503 | struct bdk_mio_boot_thr_cn88xx |
| 504 | { |
| 505 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 506 | uint64_t reserved_14_63 : 50; |
| 507 | uint64_t fif_cnt : 6; /**< [ 13: 8](RO/H) Current NCB FIFO count. */ |
| 508 | uint64_t reserved_6_7 : 2; |
| 509 | uint64_t fif_thr : 6; /**< [ 5: 0](R/W) NCB busy threshold. Should always read 0x19 (the only legal value). */ |
| 510 | #else /* Word 0 - Little Endian */ |
| 511 | uint64_t fif_thr : 6; /**< [ 5: 0](R/W) NCB busy threshold. Should always read 0x19 (the only legal value). */ |
| 512 | uint64_t reserved_6_7 : 2; |
| 513 | uint64_t fif_cnt : 6; /**< [ 13: 8](RO/H) Current NCB FIFO count. */ |
| 514 | uint64_t reserved_14_63 : 50; |
| 515 | #endif /* Word 0 - End */ |
| 516 | } cn88xx; |
| 517 | /* struct bdk_mio_boot_thr_s cn83xx; */ |
| 518 | }; |
| 519 | typedef union bdk_mio_boot_thr bdk_mio_boot_thr_t; |
| 520 | |
| 521 | #define BDK_MIO_BOOT_THR BDK_MIO_BOOT_THR_FUNC() |
| 522 | static inline uint64_t BDK_MIO_BOOT_THR_FUNC(void) __attribute__ ((pure, always_inline)); |
| 523 | static inline uint64_t BDK_MIO_BOOT_THR_FUNC(void) |
| 524 | { |
| 525 | if (CAVIUM_IS_MODEL(CAVIUM_CN8XXX)) |
| 526 | return 0x87e0000000b0ll; |
| 527 | __bdk_csr_fatal("MIO_BOOT_THR", 0, 0, 0, 0, 0); |
| 528 | } |
| 529 | |
| 530 | #define typedef_BDK_MIO_BOOT_THR bdk_mio_boot_thr_t |
| 531 | #define bustype_BDK_MIO_BOOT_THR BDK_CSR_TYPE_RSL |
| 532 | #define basename_BDK_MIO_BOOT_THR "MIO_BOOT_THR" |
| 533 | #define device_bar_BDK_MIO_BOOT_THR 0x0 /* PF_BAR0 */ |
| 534 | #define busnum_BDK_MIO_BOOT_THR 0 |
| 535 | #define arguments_BDK_MIO_BOOT_THR -1,-1,-1,-1 |
| 536 | |
| 537 | #endif /* __BDK_CSRS_MIO_BOOT_H__ */ |