diff options
author | Evan Lojewski <github@meklort.com> | 2019-04-14 16:37:22 -0600 |
---|---|---|
committer | Evan Lojewski <github@meklort.com> | 2019-04-14 16:37:22 -0600 |
commit | 0cf10183e0f05c643b8c9112ef74efa2a8396eab (patch) | |
tree | 556592a81bbbc8f4c9dc84d0f6adae2aeded8232 /include/bcm5719_SHM.h | |
parent | aef26ac93ecc586ca49d3352835afb37901c54e0 (diff) | |
download | bcm5719-ortega-0cf10183e0f05c643b8c9112ef74efa2a8396eab.tar.gz bcm5719-ortega-0cf10183e0f05c643b8c9112ef74efa2a8396eab.zip |
Begin adding support for setting ape statistics in the SHM region.
Diffstat (limited to 'include/bcm5719_SHM.h')
-rw-r--r-- | include/bcm5719_SHM.h | 1498 |
1 files changed, 0 insertions, 1498 deletions
diff --git a/include/bcm5719_SHM.h b/include/bcm5719_SHM.h index 8e57054..24eec7d 100644 --- a/include/bcm5719_SHM.h +++ b/include/bcm5719_SHM.h @@ -1559,1344 +1559,6 @@ typedef register_container RegSHMChipId_t { #endif /* CXX_SIMULATOR */ } RegSHMChipId_t; -#define REG_SHM_NCSI_CHANNEL0_INFO ((volatile BCM5719_SHM_H_uint32_t*)0xc0014900) /* */ -#define SHM_NCSI_CHANNEL0_INFO_ENABLED_SHIFT 0u -#define SHM_NCSI_CHANNEL0_INFO_ENABLED_MASK 0x1u -#define GET_SHM_NCSI_CHANNEL0_INFO_ENABLED(__reg__) (((__reg__) & 0x1) >> 0u) -#define SET_SHM_NCSI_CHANNEL0_INFO_ENABLED(__val__) (((__val__) << 0u) & 0x1u) -#define SHM_NCSI_CHANNEL0_INFO_TX_PASSTHROUGH_SHIFT 1u -#define SHM_NCSI_CHANNEL0_INFO_TX_PASSTHROUGH_MASK 0x2u -#define GET_SHM_NCSI_CHANNEL0_INFO_TX_PASSTHROUGH(__reg__) (((__reg__) & 0x2) >> 1u) -#define SET_SHM_NCSI_CHANNEL0_INFO_TX_PASSTHROUGH(__val__) (((__val__) << 1u) & 0x2u) -#define SHM_NCSI_CHANNEL0_INFO_READY_SHIFT 2u -#define SHM_NCSI_CHANNEL0_INFO_READY_MASK 0x4u -#define GET_SHM_NCSI_CHANNEL0_INFO_READY(__reg__) (((__reg__) & 0x4) >> 2u) -#define SET_SHM_NCSI_CHANNEL0_INFO_READY(__val__) (((__val__) << 2u) & 0x4u) -#define SHM_NCSI_CHANNEL0_INFO_INIT_SHIFT 3u -#define SHM_NCSI_CHANNEL0_INFO_INIT_MASK 0x8u -#define GET_SHM_NCSI_CHANNEL0_INFO_INIT(__reg__) (((__reg__) & 0x8) >> 3u) -#define SET_SHM_NCSI_CHANNEL0_INFO_INIT(__val__) (((__val__) << 3u) & 0x8u) -#define SHM_NCSI_CHANNEL0_INFO_MFILT_SHIFT 4u -#define SHM_NCSI_CHANNEL0_INFO_MFILT_MASK 0x10u -#define GET_SHM_NCSI_CHANNEL0_INFO_MFILT(__reg__) (((__reg__) & 0x10) >> 4u) -#define SET_SHM_NCSI_CHANNEL0_INFO_MFILT(__val__) (((__val__) << 4u) & 0x10u) -#define SHM_NCSI_CHANNEL0_INFO_BFILT_SHIFT 5u -#define SHM_NCSI_CHANNEL0_INFO_BFILT_MASK 0x20u -#define GET_SHM_NCSI_CHANNEL0_INFO_BFILT(__reg__) (((__reg__) & 0x20) >> 5u) -#define SET_SHM_NCSI_CHANNEL0_INFO_BFILT(__val__) (((__val__) << 5u) & 0x20u) -#define SHM_NCSI_CHANNEL0_INFO_SERDES_SHIFT 6u -#define SHM_NCSI_CHANNEL0_INFO_SERDES_MASK 0x40u -#define GET_SHM_NCSI_CHANNEL0_INFO_SERDES(__reg__) (((__reg__) & 0x40) >> 6u) -#define SET_SHM_NCSI_CHANNEL0_INFO_SERDES(__val__) (((__val__) << 6u) & 0x40u) -#define SHM_NCSI_CHANNEL0_INFO_VLAN_SHIFT 8u -#define SHM_NCSI_CHANNEL0_INFO_VLAN_MASK 0x100u -#define GET_SHM_NCSI_CHANNEL0_INFO_VLAN(__reg__) (((__reg__) & 0x100) >> 8u) -#define SET_SHM_NCSI_CHANNEL0_INFO_VLAN(__val__) (((__val__) << 8u) & 0x100u) -#define SHM_NCSI_CHANNEL0_INFO_B2H_SHIFT 10u -#define SHM_NCSI_CHANNEL0_INFO_B2H_MASK 0x400u -#define GET_SHM_NCSI_CHANNEL0_INFO_B2H(__reg__) (((__reg__) & 0x400) >> 10u) -#define SET_SHM_NCSI_CHANNEL0_INFO_B2H(__val__) (((__val__) << 10u) & 0x400u) -#define SHM_NCSI_CHANNEL0_INFO_B2N_SHIFT 11u -#define SHM_NCSI_CHANNEL0_INFO_B2N_MASK 0x800u -#define GET_SHM_NCSI_CHANNEL0_INFO_B2N(__reg__) (((__reg__) & 0x800) >> 11u) -#define SET_SHM_NCSI_CHANNEL0_INFO_B2N(__val__) (((__val__) << 11u) & 0x800u) -#define SHM_NCSI_CHANNEL0_INFO_EEE_SHIFT 12u -#define SHM_NCSI_CHANNEL0_INFO_EEE_MASK 0x1000u -#define GET_SHM_NCSI_CHANNEL0_INFO_EEE(__reg__) (((__reg__) & 0x1000) >> 12u) -#define SET_SHM_NCSI_CHANNEL0_INFO_EEE(__val__) (((__val__) << 12u) & 0x1000u) -#define SHM_NCSI_CHANNEL0_INFO_DRIVER_SHIFT 14u -#define SHM_NCSI_CHANNEL0_INFO_DRIVER_MASK 0x4000u -#define GET_SHM_NCSI_CHANNEL0_INFO_DRIVER(__reg__) (((__reg__) & 0x4000) >> 14u) -#define SET_SHM_NCSI_CHANNEL0_INFO_DRIVER(__val__) (((__val__) << 14u) & 0x4000u) -#define SHM_NCSI_CHANNEL0_INFO_PDEAD_SHIFT 15u -#define SHM_NCSI_CHANNEL0_INFO_PDEAD_MASK 0x8000u -#define GET_SHM_NCSI_CHANNEL0_INFO_PDEAD(__reg__) (((__reg__) & 0x8000) >> 15u) -#define SET_SHM_NCSI_CHANNEL0_INFO_PDEAD(__val__) (((__val__) << 15u) & 0x8000u) - -/** @brief Register definition for @ref SHM_t.NcsiChannel0Info. */ -typedef register_container RegSHMNcsiChannel0Info_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; - - BITFIELD_BEGIN(BCM5719_SHM_H_uint32_t, bits) -#if defined(__LITTLE_ENDIAN__) - /** @brief This can be modified via NCSI SELECT PACKAGE and NCSI DESELECT PACKAGE. */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Enabled, 0, 1) - /** @brief TX passthrough has been enabled by BMC NCSI command. */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, TXPassthrough, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Ready, 2, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Init, 3, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, MFILT, 4, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, BFILT, 5, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, SERDES, 6, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_7_7, 7, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, VLAN, 8, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_9_9, 9, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, B2H, 10, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, B2N, 11, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, EEE, 12, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_13_13, 13, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Driver, 14, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, PDead, 15, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_16, 16, 16) -#elif defined(__BIG_ENDIAN__) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_16, 16, 16) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, PDead, 15, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Driver, 14, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_13_13, 13, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, EEE, 12, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, B2N, 11, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, B2H, 10, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_9_9, 9, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, VLAN, 8, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_7_7, 7, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, SERDES, 6, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, BFILT, 5, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, MFILT, 4, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Init, 3, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Ready, 2, 1) - /** @brief TX passthrough has been enabled by BMC NCSI command. */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, TXPassthrough, 1, 1) - /** @brief This can be modified via NCSI SELECT PACKAGE and NCSI DESELECT PACKAGE. */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Enabled, 0, 1) -#else -#error Unknown Endian -#endif - BITFIELD_END(BCM5719_SHM_H_uint32_t, bits) -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Info"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Info_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Info. */ - r32.setName("NcsiChannel0Info"); - bits.Enabled.setBaseRegister(&r32); - bits.Enabled.setName("Enabled"); - bits.TXPassthrough.setBaseRegister(&r32); - bits.TXPassthrough.setName("TXPassthrough"); - bits.Ready.setBaseRegister(&r32); - bits.Ready.setName("Ready"); - bits.Init.setBaseRegister(&r32); - bits.Init.setName("Init"); - bits.MFILT.setBaseRegister(&r32); - bits.MFILT.setName("MFILT"); - bits.BFILT.setBaseRegister(&r32); - bits.BFILT.setName("BFILT"); - bits.SERDES.setBaseRegister(&r32); - bits.SERDES.setName("SERDES"); - bits.VLAN.setBaseRegister(&r32); - bits.VLAN.setName("VLAN"); - bits.B2H.setBaseRegister(&r32); - bits.B2H.setName("B2H"); - bits.B2N.setBaseRegister(&r32); - bits.B2N.setName("B2N"); - bits.EEE.setBaseRegister(&r32); - bits.EEE.setName("EEE"); - bits.Driver.setBaseRegister(&r32); - bits.Driver.setName("Driver"); - bits.PDead.setBaseRegister(&r32); - bits.PDead.setName("PDead"); - } - RegSHMNcsiChannel0Info_t& operator=(const RegSHMNcsiChannel0Info_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Info_t; - -#define REG_SHM_NCSI_CHANNEL0_MCID ((volatile BCM5719_SHM_H_uint32_t*)0xc0014904) /* AEN Management Controller ID, set by BMC when sending AEN ENABLE command and used when sending AENs. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mcid. */ -typedef register_container RegSHMNcsiChannel0Mcid_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mcid"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mcid_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mcid. */ - r32.setName("NcsiChannel0Mcid"); - } - RegSHMNcsiChannel0Mcid_t& operator=(const RegSHMNcsiChannel0Mcid_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mcid_t; - -#define REG_SHM_NCSI_CHANNEL0_AEN ((volatile BCM5719_SHM_H_uint32_t*)0xc0014908) /* Set via NCSI ENABLE AEN. */ -#define SHM_NCSI_CHANNEL0_AEN_ENABLE_LINK_STATUS_CHANGE_AEN_SHIFT 0u -#define SHM_NCSI_CHANNEL0_AEN_ENABLE_LINK_STATUS_CHANGE_AEN_MASK 0x1u -#define GET_SHM_NCSI_CHANNEL0_AEN_ENABLE_LINK_STATUS_CHANGE_AEN(__reg__) (((__reg__) & 0x1) >> 0u) -#define SET_SHM_NCSI_CHANNEL0_AEN_ENABLE_LINK_STATUS_CHANGE_AEN(__val__) (((__val__) << 0u) & 0x1u) -#define SHM_NCSI_CHANNEL0_AEN_ENABLE_CONFIGURATION_REQUIRED_AEN_SHIFT 1u -#define SHM_NCSI_CHANNEL0_AEN_ENABLE_CONFIGURATION_REQUIRED_AEN_MASK 0x2u -#define GET_SHM_NCSI_CHANNEL0_AEN_ENABLE_CONFIGURATION_REQUIRED_AEN(__reg__) (((__reg__) & 0x2) >> 1u) -#define SET_SHM_NCSI_CHANNEL0_AEN_ENABLE_CONFIGURATION_REQUIRED_AEN(__val__) (((__val__) << 1u) & 0x2u) -#define SHM_NCSI_CHANNEL0_AEN_ENABLE_HOST_NC_DRIVER_STATUS_CHANGE_AEN_SHIFT 2u -#define SHM_NCSI_CHANNEL0_AEN_ENABLE_HOST_NC_DRIVER_STATUS_CHANGE_AEN_MASK 0x4u -#define GET_SHM_NCSI_CHANNEL0_AEN_ENABLE_HOST_NC_DRIVER_STATUS_CHANGE_AEN(__reg__) (((__reg__) & 0x4) >> 2u) -#define SET_SHM_NCSI_CHANNEL0_AEN_ENABLE_HOST_NC_DRIVER_STATUS_CHANGE_AEN(__val__) (((__val__) << 2u) & 0x4u) - -/** @brief Register definition for @ref SHM_t.NcsiChannel0Aen. */ -typedef register_container RegSHMNcsiChannel0Aen_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; - - BITFIELD_BEGIN(BCM5719_SHM_H_uint32_t, bits) -#if defined(__LITTLE_ENDIAN__) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, EnableLinkStatusChangeAEN, 0, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, EnableConfigurationRequiredAEN, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, EnableHostNCDriverStatusChangeAEN, 2, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_3, 3, 29) -#elif defined(__BIG_ENDIAN__) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_3, 3, 29) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, EnableHostNCDriverStatusChangeAEN, 2, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, EnableConfigurationRequiredAEN, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, EnableLinkStatusChangeAEN, 0, 1) -#else -#error Unknown Endian -#endif - BITFIELD_END(BCM5719_SHM_H_uint32_t, bits) -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Aen"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Aen_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Aen. */ - r32.setName("NcsiChannel0Aen"); - bits.EnableLinkStatusChangeAEN.setBaseRegister(&r32); - bits.EnableLinkStatusChangeAEN.setName("EnableLinkStatusChangeAEN"); - bits.EnableConfigurationRequiredAEN.setBaseRegister(&r32); - bits.EnableConfigurationRequiredAEN.setName("EnableConfigurationRequiredAEN"); - bits.EnableHostNCDriverStatusChangeAEN.setBaseRegister(&r32); - bits.EnableHostNCDriverStatusChangeAEN.setName("EnableHostNCDriverStatusChangeAEN"); - } - RegSHMNcsiChannel0Aen_t& operator=(const RegSHMNcsiChannel0Aen_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Aen_t; - -#define REG_SHM_NCSI_CHANNEL0_BFILT ((volatile BCM5719_SHM_H_uint32_t*)0xc001490c) /* */ -#define SHM_NCSI_CHANNEL0_BFILT_ARP_PACKET_SHIFT 0u -#define SHM_NCSI_CHANNEL0_BFILT_ARP_PACKET_MASK 0x1u -#define GET_SHM_NCSI_CHANNEL0_BFILT_ARP_PACKET(__reg__) (((__reg__) & 0x1) >> 0u) -#define SET_SHM_NCSI_CHANNEL0_BFILT_ARP_PACKET(__val__) (((__val__) << 0u) & 0x1u) -#define SHM_NCSI_CHANNEL0_BFILT_DHCP_CLIENT_PACKET_SHIFT 1u -#define SHM_NCSI_CHANNEL0_BFILT_DHCP_CLIENT_PACKET_MASK 0x2u -#define GET_SHM_NCSI_CHANNEL0_BFILT_DHCP_CLIENT_PACKET(__reg__) (((__reg__) & 0x2) >> 1u) -#define SET_SHM_NCSI_CHANNEL0_BFILT_DHCP_CLIENT_PACKET(__val__) (((__val__) << 1u) & 0x2u) -#define SHM_NCSI_CHANNEL0_BFILT_DHCP_SERVER_PACKET_SHIFT 2u -#define SHM_NCSI_CHANNEL0_BFILT_DHCP_SERVER_PACKET_MASK 0x4u -#define GET_SHM_NCSI_CHANNEL0_BFILT_DHCP_SERVER_PACKET(__reg__) (((__reg__) & 0x4) >> 2u) -#define SET_SHM_NCSI_CHANNEL0_BFILT_DHCP_SERVER_PACKET(__val__) (((__val__) << 2u) & 0x4u) -#define SHM_NCSI_CHANNEL0_BFILT_NETBIOS_PACKET_SHIFT 3u -#define SHM_NCSI_CHANNEL0_BFILT_NETBIOS_PACKET_MASK 0x8u -#define GET_SHM_NCSI_CHANNEL0_BFILT_NETBIOS_PACKET(__reg__) (((__reg__) & 0x8) >> 3u) -#define SET_SHM_NCSI_CHANNEL0_BFILT_NETBIOS_PACKET(__val__) (((__val__) << 3u) & 0x8u) - -/** @brief Register definition for @ref SHM_t.NcsiChannel0Bfilt. */ -typedef register_container RegSHMNcsiChannel0Bfilt_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; - - BITFIELD_BEGIN(BCM5719_SHM_H_uint32_t, bits) -#if defined(__LITTLE_ENDIAN__) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, ARPPacket, 0, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, DHCPClientPacket, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, DHCPServerPacket, 2, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, NetBIOSPacket, 3, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_4, 4, 28) -#elif defined(__BIG_ENDIAN__) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_4, 4, 28) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, NetBIOSPacket, 3, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, DHCPServerPacket, 2, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, DHCPClientPacket, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, ARPPacket, 0, 1) -#else -#error Unknown Endian -#endif - BITFIELD_END(BCM5719_SHM_H_uint32_t, bits) -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Bfilt"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Bfilt_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Bfilt. */ - r32.setName("NcsiChannel0Bfilt"); - bits.ARPPacket.setBaseRegister(&r32); - bits.ARPPacket.setName("ARPPacket"); - bits.DHCPClientPacket.setBaseRegister(&r32); - bits.DHCPClientPacket.setName("DHCPClientPacket"); - bits.DHCPServerPacket.setBaseRegister(&r32); - bits.DHCPServerPacket.setName("DHCPServerPacket"); - bits.NetBIOSPacket.setBaseRegister(&r32); - bits.NetBIOSPacket.setName("NetBIOSPacket"); - } - RegSHMNcsiChannel0Bfilt_t& operator=(const RegSHMNcsiChannel0Bfilt_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Bfilt_t; - -#define REG_SHM_NCSI_CHANNEL0_MFILT ((volatile BCM5719_SHM_H_uint32_t*)0xc0014910) /* */ -#define SHM_NCSI_CHANNEL0_MFILT_IPV6_NEIGHBOUR_ADVERTISEMENT_SHIFT 0u -#define SHM_NCSI_CHANNEL0_MFILT_IPV6_NEIGHBOUR_ADVERTISEMENT_MASK 0x1u -#define GET_SHM_NCSI_CHANNEL0_MFILT_IPV6_NEIGHBOUR_ADVERTISEMENT(__reg__) (((__reg__) & 0x1) >> 0u) -#define SET_SHM_NCSI_CHANNEL0_MFILT_IPV6_NEIGHBOUR_ADVERTISEMENT(__val__) (((__val__) << 0u) & 0x1u) -#define SHM_NCSI_CHANNEL0_MFILT_IPV6_ROUTER_ADVERTISEMENT_SHIFT 1u -#define SHM_NCSI_CHANNEL0_MFILT_IPV6_ROUTER_ADVERTISEMENT_MASK 0x2u -#define GET_SHM_NCSI_CHANNEL0_MFILT_IPV6_ROUTER_ADVERTISEMENT(__reg__) (((__reg__) & 0x2) >> 1u) -#define SET_SHM_NCSI_CHANNEL0_MFILT_IPV6_ROUTER_ADVERTISEMENT(__val__) (((__val__) << 1u) & 0x2u) -#define SHM_NCSI_CHANNEL0_MFILT_DHCPV6_RELAY_AND_SERVER_MULTICAST_SHIFT 2u -#define SHM_NCSI_CHANNEL0_MFILT_DHCPV6_RELAY_AND_SERVER_MULTICAST_MASK 0x4u -#define GET_SHM_NCSI_CHANNEL0_MFILT_DHCPV6_RELAY_AND_SERVER_MULTICAST(__reg__) (((__reg__) & 0x4) >> 2u) -#define SET_SHM_NCSI_CHANNEL0_MFILT_DHCPV6_RELAY_AND_SERVER_MULTICAST(__val__) (((__val__) << 2u) & 0x4u) - -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mfilt. */ -typedef register_container RegSHMNcsiChannel0Mfilt_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; - - BITFIELD_BEGIN(BCM5719_SHM_H_uint32_t, bits) -#if defined(__LITTLE_ENDIAN__) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, IPv6NeighbourAdvertisement, 0, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, IPv6RouterAdvertisement, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, DHCPv6RelayandServerMulticast, 2, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_3, 3, 29) -#elif defined(__BIG_ENDIAN__) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_3, 3, 29) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, DHCPv6RelayandServerMulticast, 2, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, IPv6RouterAdvertisement, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, IPv6NeighbourAdvertisement, 0, 1) -#else -#error Unknown Endian -#endif - BITFIELD_END(BCM5719_SHM_H_uint32_t, bits) -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mfilt"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mfilt_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mfilt. */ - r32.setName("NcsiChannel0Mfilt"); - bits.IPv6NeighbourAdvertisement.setBaseRegister(&r32); - bits.IPv6NeighbourAdvertisement.setName("IPv6NeighbourAdvertisement"); - bits.IPv6RouterAdvertisement.setBaseRegister(&r32); - bits.IPv6RouterAdvertisement.setName("IPv6RouterAdvertisement"); - bits.DHCPv6RelayandServerMulticast.setBaseRegister(&r32); - bits.DHCPv6RelayandServerMulticast.setName("DHCPv6RelayandServerMulticast"); - } - RegSHMNcsiChannel0Mfilt_t& operator=(const RegSHMNcsiChannel0Mfilt_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mfilt_t; - -#define REG_SHM_NCSI_CHANNEL0_SETTING_1 ((volatile BCM5719_SHM_H_uint32_t*)0xc0014914) /* This is the "Link Settings" value from NCSI Set Link. */ -#define SHM_NCSI_CHANNEL0_SETTING_1_AUTONEGOTIATION_ENABLED_SHIFT 0u -#define SHM_NCSI_CHANNEL0_SETTING_1_AUTONEGOTIATION_ENABLED_MASK 0x1u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_AUTONEGOTIATION_ENABLED(__reg__) (((__reg__) & 0x1) >> 0u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_AUTONEGOTIATION_ENABLED(__val__) (((__val__) << 0u) & 0x1u) -#define SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_10M_ENABLE_SHIFT 1u -#define SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_10M_ENABLE_MASK 0x2u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_10M_ENABLE(__reg__) (((__reg__) & 0x2) >> 1u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_10M_ENABLE(__val__) (((__val__) << 1u) & 0x2u) -#define SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_100M_ENABLE_SHIFT 2u -#define SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_100M_ENABLE_MASK 0x4u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_100M_ENABLE(__reg__) (((__reg__) & 0x4) >> 2u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_100M_ENABLE(__val__) (((__val__) << 2u) & 0x4u) -#define SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_1000M_ENABLE_SHIFT 3u -#define SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_1000M_ENABLE_MASK 0x8u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_1000M_ENABLE(__reg__) (((__reg__) & 0x8) >> 3u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_1000M_ENABLE(__val__) (((__val__) << 3u) & 0x8u) -#define SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_10G_ENABLE_SHIFT 4u -#define SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_10G_ENABLE_MASK 0x10u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_10G_ENABLE(__reg__) (((__reg__) & 0x10) >> 4u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_LINK_SPEED_10G_ENABLE(__val__) (((__val__) << 4u) & 0x10u) -#define SHM_NCSI_CHANNEL0_SETTING_1_HALF_DUPLEX_ENABLE_SHIFT 8u -#define SHM_NCSI_CHANNEL0_SETTING_1_HALF_DUPLEX_ENABLE_MASK 0x100u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_HALF_DUPLEX_ENABLE(__reg__) (((__reg__) & 0x100) >> 8u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_HALF_DUPLEX_ENABLE(__val__) (((__val__) << 8u) & 0x100u) -#define SHM_NCSI_CHANNEL0_SETTING_1_FULL_DUPLEX_ENABLE_SHIFT 9u -#define SHM_NCSI_CHANNEL0_SETTING_1_FULL_DUPLEX_ENABLE_MASK 0x200u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_FULL_DUPLEX_ENABLE(__reg__) (((__reg__) & 0x200) >> 9u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_FULL_DUPLEX_ENABLE(__val__) (((__val__) << 9u) & 0x200u) -#define SHM_NCSI_CHANNEL0_SETTING_1_PAUSE_CAPABILITY_ENABLE_SHIFT 10u -#define SHM_NCSI_CHANNEL0_SETTING_1_PAUSE_CAPABILITY_ENABLE_MASK 0x400u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_PAUSE_CAPABILITY_ENABLE(__reg__) (((__reg__) & 0x400) >> 10u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_PAUSE_CAPABILITY_ENABLE(__val__) (((__val__) << 10u) & 0x400u) -#define SHM_NCSI_CHANNEL0_SETTING_1_ASYMMETRIC_PAUSE_CAPABILITY_ENABLE_SHIFT 11u -#define SHM_NCSI_CHANNEL0_SETTING_1_ASYMMETRIC_PAUSE_CAPABILITY_ENABLE_MASK 0x800u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_ASYMMETRIC_PAUSE_CAPABILITY_ENABLE(__reg__) (((__reg__) & 0x800) >> 11u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_ASYMMETRIC_PAUSE_CAPABILITY_ENABLE(__val__) (((__val__) << 11u) & 0x800u) -#define SHM_NCSI_CHANNEL0_SETTING_1_OEM_LINK_SETTINGS_FIELD_VALID_SHIFT 12u -#define SHM_NCSI_CHANNEL0_SETTING_1_OEM_LINK_SETTINGS_FIELD_VALID_MASK 0x1000u -#define GET_SHM_NCSI_CHANNEL0_SETTING_1_OEM_LINK_SETTINGS_FIELD_VALID(__reg__) (((__reg__) & 0x1000) >> 12u) -#define SET_SHM_NCSI_CHANNEL0_SETTING_1_OEM_LINK_SETTINGS_FIELD_VALID(__val__) (((__val__) << 12u) & 0x1000u) - -/** @brief Register definition for @ref SHM_t.NcsiChannel0Setting1. */ -typedef register_container RegSHMNcsiChannel0Setting1_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; - - BITFIELD_BEGIN(BCM5719_SHM_H_uint32_t, bits) -#if defined(__LITTLE_ENDIAN__) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Autonegotiationenabled, 0, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed10Menable, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed100Menable, 2, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed1000Menable, 3, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed10Genable, 4, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_7_5, 5, 3) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Halfduplexenable, 8, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Fullduplexenable, 9, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Pausecapabilityenable, 10, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Asymmetricpausecapabilityenable, 11, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, OEMlinksettingsfieldvalid, 12, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_13, 13, 19) -#elif defined(__BIG_ENDIAN__) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_13, 13, 19) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, OEMlinksettingsfieldvalid, 12, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Asymmetricpausecapabilityenable, 11, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Pausecapabilityenable, 10, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Fullduplexenable, 9, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Halfduplexenable, 8, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_7_5, 5, 3) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed10Genable, 4, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed1000Menable, 3, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed100Menable, 2, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed10Menable, 1, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Autonegotiationenabled, 0, 1) -#else -#error Unknown Endian -#endif - BITFIELD_END(BCM5719_SHM_H_uint32_t, bits) -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Setting1"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Setting1_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Setting1. */ - r32.setName("NcsiChannel0Setting1"); - bits.Autonegotiationenabled.setBaseRegister(&r32); - bits.Autonegotiationenabled.setName("Autonegotiationenabled"); - bits.LinkSpeed10Menable.setBaseRegister(&r32); - bits.LinkSpeed10Menable.setName("LinkSpeed10Menable"); - bits.LinkSpeed100Menable.setBaseRegister(&r32); - bits.LinkSpeed100Menable.setName("LinkSpeed100Menable"); - bits.LinkSpeed1000Menable.setBaseRegister(&r32); - bits.LinkSpeed1000Menable.setName("LinkSpeed1000Menable"); - bits.LinkSpeed10Genable.setBaseRegister(&r32); - bits.LinkSpeed10Genable.setName("LinkSpeed10Genable"); - bits.Halfduplexenable.setBaseRegister(&r32); - bits.Halfduplexenable.setName("Halfduplexenable"); - bits.Fullduplexenable.setBaseRegister(&r32); - bits.Fullduplexenable.setName("Fullduplexenable"); - bits.Pausecapabilityenable.setBaseRegister(&r32); - bits.Pausecapabilityenable.setName("Pausecapabilityenable"); - bits.Asymmetricpausecapabilityenable.setBaseRegister(&r32); - bits.Asymmetricpausecapabilityenable.setName("Asymmetricpausecapabilityenable"); - bits.OEMlinksettingsfieldvalid.setBaseRegister(&r32); - bits.OEMlinksettingsfieldvalid.setName("OEMlinksettingsfieldvalid"); - } - RegSHMNcsiChannel0Setting1_t& operator=(const RegSHMNcsiChannel0Setting1_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Setting1_t; - -#define REG_SHM_NCSI_CHANNEL0_SETTING_2 ((volatile BCM5719_SHM_H_uint32_t*)0xc0014918) /* This is the "OEM Settings" value from NCSI Set Link. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Setting2. */ -typedef register_container RegSHMNcsiChannel0Setting2_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Setting2"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Setting2_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Setting2. */ - r32.setName("NcsiChannel0Setting2"); - } - RegSHMNcsiChannel0Setting2_t& operator=(const RegSHMNcsiChannel0Setting2_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Setting2_t; - -#define REG_SHM_NCSI_CHANNEL0_VLAN ((volatile BCM5719_SHM_H_uint32_t*)0xc001491c) /* Receives VLAN mode from NCSI specification "Enable VLAN" command. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Vlan. */ -typedef register_container RegSHMNcsiChannel0Vlan_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Vlan"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Vlan_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Vlan. */ - r32.setName("NcsiChannel0Vlan"); - } - RegSHMNcsiChannel0Vlan_t& operator=(const RegSHMNcsiChannel0Vlan_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Vlan_t; - -#define REG_SHM_NCSI_CHANNEL0_ALT_HOST_MAC_HIGH ((volatile BCM5719_SHM_H_uint32_t*)0xc0014924) /* Lower 16 bits of this word contains upper 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0AltHostMacHigh. */ -typedef register_container RegSHMNcsiChannel0AltHostMacHigh_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0AltHostMacHigh"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0AltHostMacHigh_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0AltHostMacHigh. */ - r32.setName("NcsiChannel0AltHostMacHigh"); - } - RegSHMNcsiChannel0AltHostMacHigh_t& operator=(const RegSHMNcsiChannel0AltHostMacHigh_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0AltHostMacHigh_t; - -#define REG_SHM_NCSI_CHANNEL0_ALT_HOST_MAC_MID ((volatile BCM5719_SHM_H_uint32_t*)0xc0014928) /* Lower 16 bits of this word contains mid 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0AltHostMacMid. */ -typedef register_container RegSHMNcsiChannel0AltHostMacMid_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0AltHostMacMid"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0AltHostMacMid_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0AltHostMacMid. */ - r32.setName("NcsiChannel0AltHostMacMid"); - } - RegSHMNcsiChannel0AltHostMacMid_t& operator=(const RegSHMNcsiChannel0AltHostMacMid_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0AltHostMacMid_t; - -#define REG_SHM_NCSI_CHANNEL0_ALT_HOST_MAC_LOW ((volatile BCM5719_SHM_H_uint32_t*)0xc001492c) /* Lower 16 bits of this word contains low 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0AltHostMacLow. */ -typedef register_container RegSHMNcsiChannel0AltHostMacLow_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0AltHostMacLow"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0AltHostMacLow_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0AltHostMacLow. */ - r32.setName("NcsiChannel0AltHostMacLow"); - } - RegSHMNcsiChannel0AltHostMacLow_t& operator=(const RegSHMNcsiChannel0AltHostMacLow_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0AltHostMacLow_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC0_HIGH ((volatile BCM5719_SHM_H_uint32_t*)0xc0014934) /* Lower 16 bits of this word contains upper 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac0High. */ -typedef register_container RegSHMNcsiChannel0Mac0High_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac0High"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac0High_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac0High. */ - r32.setName("NcsiChannel0Mac0High"); - } - RegSHMNcsiChannel0Mac0High_t& operator=(const RegSHMNcsiChannel0Mac0High_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac0High_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC0_MID ((volatile BCM5719_SHM_H_uint32_t*)0xc0014938) /* Lower 16 bits of this word contains mid 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac0Mid. */ -typedef register_container RegSHMNcsiChannel0Mac0Mid_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac0Mid"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac0Mid_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac0Mid. */ - r32.setName("NcsiChannel0Mac0Mid"); - } - RegSHMNcsiChannel0Mac0Mid_t& operator=(const RegSHMNcsiChannel0Mac0Mid_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac0Mid_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC0_LOW ((volatile BCM5719_SHM_H_uint32_t*)0xc001493c) /* Lower 16 bits of this word contains low 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac0Low. */ -typedef register_container RegSHMNcsiChannel0Mac0Low_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac0Low"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac0Low_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac0Low. */ - r32.setName("NcsiChannel0Mac0Low"); - } - RegSHMNcsiChannel0Mac0Low_t& operator=(const RegSHMNcsiChannel0Mac0Low_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac0Low_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC1_HIGH ((volatile BCM5719_SHM_H_uint32_t*)0xc0014944) /* Lower 16 bits of this word contains upper 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac1High. */ -typedef register_container RegSHMNcsiChannel0Mac1High_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac1High"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac1High_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac1High. */ - r32.setName("NcsiChannel0Mac1High"); - } - RegSHMNcsiChannel0Mac1High_t& operator=(const RegSHMNcsiChannel0Mac1High_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac1High_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC1_MID ((volatile BCM5719_SHM_H_uint32_t*)0xc0014948) /* Lower 16 bits of this word contains mid 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac1Mid. */ -typedef register_container RegSHMNcsiChannel0Mac1Mid_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac1Mid"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac1Mid_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac1Mid. */ - r32.setName("NcsiChannel0Mac1Mid"); - } - RegSHMNcsiChannel0Mac1Mid_t& operator=(const RegSHMNcsiChannel0Mac1Mid_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac1Mid_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC1_LOW ((volatile BCM5719_SHM_H_uint32_t*)0xc001494c) /* Lower 16 bits of this word contains low 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac1Low. */ -typedef register_container RegSHMNcsiChannel0Mac1Low_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac1Low"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac1Low_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac1Low. */ - r32.setName("NcsiChannel0Mac1Low"); - } - RegSHMNcsiChannel0Mac1Low_t& operator=(const RegSHMNcsiChannel0Mac1Low_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac1Low_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC2_HIGH ((volatile BCM5719_SHM_H_uint32_t*)0xc0014954) /* Lower 16 bits of this word contains upper 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac2High. */ -typedef register_container RegSHMNcsiChannel0Mac2High_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac2High"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac2High_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac2High. */ - r32.setName("NcsiChannel0Mac2High"); - } - RegSHMNcsiChannel0Mac2High_t& operator=(const RegSHMNcsiChannel0Mac2High_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac2High_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC2_MID ((volatile BCM5719_SHM_H_uint32_t*)0xc0014958) /* Lower 16 bits of this word contains mid 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac2Mid. */ -typedef register_container RegSHMNcsiChannel0Mac2Mid_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac2Mid"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac2Mid_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac2Mid. */ - r32.setName("NcsiChannel0Mac2Mid"); - } - RegSHMNcsiChannel0Mac2Mid_t& operator=(const RegSHMNcsiChannel0Mac2Mid_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac2Mid_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC2_LOW ((volatile BCM5719_SHM_H_uint32_t*)0xc001495c) /* Lower 16 bits of this word contains low 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac2Low. */ -typedef register_container RegSHMNcsiChannel0Mac2Low_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac2Low"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac2Low_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac2Low. */ - r32.setName("NcsiChannel0Mac2Low"); - } - RegSHMNcsiChannel0Mac2Low_t& operator=(const RegSHMNcsiChannel0Mac2Low_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac2Low_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC3_HIGH ((volatile BCM5719_SHM_H_uint32_t*)0xc0014964) /* Lower 16 bits of this word contains upper 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac3High. */ -typedef register_container RegSHMNcsiChannel0Mac3High_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac3High"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac3High_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac3High. */ - r32.setName("NcsiChannel0Mac3High"); - } - RegSHMNcsiChannel0Mac3High_t& operator=(const RegSHMNcsiChannel0Mac3High_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac3High_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC3_MID ((volatile BCM5719_SHM_H_uint32_t*)0xc0014968) /* Lower 16 bits of this word contains mid 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac3Mid. */ -typedef register_container RegSHMNcsiChannel0Mac3Mid_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac3Mid"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac3Mid_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac3Mid. */ - r32.setName("NcsiChannel0Mac3Mid"); - } - RegSHMNcsiChannel0Mac3Mid_t& operator=(const RegSHMNcsiChannel0Mac3Mid_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac3Mid_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC3_LOW ((volatile BCM5719_SHM_H_uint32_t*)0xc001496c) /* Lower 16 bits of this word contains low 16 bits of the MAC. */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac3Low. */ -typedef register_container RegSHMNcsiChannel0Mac3Low_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac3Low"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac3Low_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac3Low. */ - r32.setName("NcsiChannel0Mac3Low"); - } - RegSHMNcsiChannel0Mac3Low_t& operator=(const RegSHMNcsiChannel0Mac3Low_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac3Low_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC0_VLAN_VALID ((volatile BCM5719_SHM_H_uint32_t*)0xc0014970) /* Nonzero indicates VLAN field is valid */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac0VlanValid. */ -typedef register_container RegSHMNcsiChannel0Mac0VlanValid_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac0VlanValid"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac0VlanValid_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac0VlanValid. */ - r32.setName("NcsiChannel0Mac0VlanValid"); - } - RegSHMNcsiChannel0Mac0VlanValid_t& operator=(const RegSHMNcsiChannel0Mac0VlanValid_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac0VlanValid_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC0_VLAN ((volatile BCM5719_SHM_H_uint32_t*)0xc0014974) /* */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac0Vlan. */ -typedef register_container RegSHMNcsiChannel0Mac0Vlan_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac0Vlan"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac0Vlan_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac0Vlan. */ - r32.setName("NcsiChannel0Mac0Vlan"); - } - RegSHMNcsiChannel0Mac0Vlan_t& operator=(const RegSHMNcsiChannel0Mac0Vlan_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac0Vlan_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC1_VLAN_VALID ((volatile BCM5719_SHM_H_uint32_t*)0xc0014978) /* Nonzero indicates VLAN field is valid */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac1VlanValid. */ -typedef register_container RegSHMNcsiChannel0Mac1VlanValid_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac1VlanValid"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac1VlanValid_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac1VlanValid. */ - r32.setName("NcsiChannel0Mac1VlanValid"); - } - RegSHMNcsiChannel0Mac1VlanValid_t& operator=(const RegSHMNcsiChannel0Mac1VlanValid_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac1VlanValid_t; - -#define REG_SHM_NCSI_CHANNEL0_MAC1_VLAN ((volatile BCM5719_SHM_H_uint32_t*)0xc001497c) /* */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Mac1Vlan. */ -typedef register_container RegSHMNcsiChannel0Mac1Vlan_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Mac1Vlan"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Mac1Vlan_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Mac1Vlan. */ - r32.setName("NcsiChannel0Mac1Vlan"); - } - RegSHMNcsiChannel0Mac1Vlan_t& operator=(const RegSHMNcsiChannel0Mac1Vlan_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Mac1Vlan_t; - -#define REG_SHM_NCSI_CHANNEL0_STATUS ((volatile BCM5719_SHM_H_uint32_t*)0xc0014980) /* */ -#define SHM_NCSI_CHANNEL0_STATUS_LINK_UP_SHIFT 0u -#define SHM_NCSI_CHANNEL0_STATUS_LINK_UP_MASK 0x1u -#define GET_SHM_NCSI_CHANNEL0_STATUS_LINK_UP(__reg__) (((__reg__) & 0x1) >> 0u) -#define SET_SHM_NCSI_CHANNEL0_STATUS_LINK_UP(__val__) (((__val__) << 0u) & 0x1u) -#define SHM_NCSI_CHANNEL0_STATUS_LINK_STATUS_SHIFT 1u -#define SHM_NCSI_CHANNEL0_STATUS_LINK_STATUS_MASK 0x1eu -#define GET_SHM_NCSI_CHANNEL0_STATUS_LINK_STATUS(__reg__) (((__reg__) & 0x1e) >> 1u) -#define SET_SHM_NCSI_CHANNEL0_STATUS_LINK_STATUS(__val__) (((__val__) << 1u) & 0x1eu) -#define SHM_NCSI_CHANNEL0_STATUS_SERDES_SHIFT 5u -#define SHM_NCSI_CHANNEL0_STATUS_SERDES_MASK 0x20u -#define GET_SHM_NCSI_CHANNEL0_STATUS_SERDES(__reg__) (((__reg__) & 0x20) >> 5u) -#define SET_SHM_NCSI_CHANNEL0_STATUS_SERDES(__val__) (((__val__) << 5u) & 0x20u) -#define SHM_NCSI_CHANNEL0_STATUS_AUTONEGOTIATION_COMPLETE_SHIFT 6u -#define SHM_NCSI_CHANNEL0_STATUS_AUTONEGOTIATION_COMPLETE_MASK 0x40u -#define GET_SHM_NCSI_CHANNEL0_STATUS_AUTONEGOTIATION_COMPLETE(__reg__) (((__reg__) & 0x40) >> 6u) -#define SET_SHM_NCSI_CHANNEL0_STATUS_AUTONEGOTIATION_COMPLETE(__val__) (((__val__) << 6u) & 0x40u) -#define SHM_NCSI_CHANNEL0_STATUS_LINK_SPEED_1000M_FULL_DUPLEX_CAPABLE_SHIFT 9u -#define SHM_NCSI_CHANNEL0_STATUS_LINK_SPEED_1000M_FULL_DUPLEX_CAPABLE_MASK 0x200u -#define GET_SHM_NCSI_CHANNEL0_STATUS_LINK_SPEED_1000M_FULL_DUPLEX_CAPABLE(__reg__) (((__reg__) & 0x200) >> 9u) -#define SET_SHM_NCSI_CHANNEL0_STATUS_LINK_SPEED_1000M_FULL_DUPLEX_CAPABLE(__val__) (((__val__) << 9u) & 0x200u) -#define SHM_NCSI_CHANNEL0_STATUS_LINK_SPEED_1000M_HALS_DUPLEX_CAPABLE_SHIFT 10u -#define SHM_NCSI_CHANNEL0_STATUS_LINK_SPEED_1000M_HALS_DUPLEX_CAPABLE_MASK 0x400u -#define GET_SHM_NCSI_CHANNEL0_STATUS_LINK_SPEED_1000M_HALS_DUPLEX_CAPABLE(__reg__) (((__reg__) & 0x400) >> 10u) -#define SET_SHM_NCSI_CHANNEL0_STATUS_LINK_SPEED_1000M_HALS_DUPLEX_CAPABLE(__val__) (((__val__) << 10u) & 0x400u) - -/** @brief Register definition for @ref SHM_t.NcsiChannel0Status. */ -typedef register_container RegSHMNcsiChannel0Status_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; - - BITFIELD_BEGIN(BCM5719_SHM_H_uint32_t, bits) -#if defined(__LITTLE_ENDIAN__) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Linkup, 0, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkStatus, 1, 4) - /** @brief Set from MII_REG_CONTROL__AUTO_NEGOTIATION_ENABLE. Set unconditionally in SERDES case. */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, SERDES, 5, 1) - /** @brief Set if autonegotiation is complete. */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, AutonegotiationComplete, 6, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_8_7, 7, 2) - /** @brief Link partner 1000BASE-T full duplex capable */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed1000MFullDuplexCapable, 9, 1) - /** @brief Link partner 1000BASE-T half duplex capable */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed1000MHalsDuplexCapable, 10, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_11, 11, 21) -#elif defined(__BIG_ENDIAN__) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_31_11, 11, 21) - /** @brief Link partner 1000BASE-T half duplex capable */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed1000MHalsDuplexCapable, 10, 1) - /** @brief Link partner 1000BASE-T full duplex capable */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkSpeed1000MFullDuplexCapable, 9, 1) - /** @brief Padding */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, reserved_8_7, 7, 2) - /** @brief Set if autonegotiation is complete. */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, AutonegotiationComplete, 6, 1) - /** @brief Set from MII_REG_CONTROL__AUTO_NEGOTIATION_ENABLE. Set unconditionally in SERDES case. */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, SERDES, 5, 1) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, LinkStatus, 1, 4) - /** @brief */ - BITFIELD_MEMBER(BCM5719_SHM_H_uint32_t, Linkup, 0, 1) -#else -#error Unknown Endian -#endif - BITFIELD_END(BCM5719_SHM_H_uint32_t, bits) -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Status"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Status_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Status. */ - r32.setName("NcsiChannel0Status"); - bits.Linkup.setBaseRegister(&r32); - bits.Linkup.setName("Linkup"); - bits.LinkStatus.setBaseRegister(&r32); - bits.LinkStatus.setName("LinkStatus"); - bits.SERDES.setBaseRegister(&r32); - bits.SERDES.setName("SERDES"); - bits.AutonegotiationComplete.setBaseRegister(&r32); - bits.AutonegotiationComplete.setName("AutonegotiationComplete"); - bits.LinkSpeed1000MFullDuplexCapable.setBaseRegister(&r32); - bits.LinkSpeed1000MFullDuplexCapable.setName("LinkSpeed1000MFullDuplexCapable"); - bits.LinkSpeed1000MHalsDuplexCapable.setBaseRegister(&r32); - bits.LinkSpeed1000MHalsDuplexCapable.setName("LinkSpeed1000MHalsDuplexCapable"); - } - RegSHMNcsiChannel0Status_t& operator=(const RegSHMNcsiChannel0Status_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Status_t; - -#define REG_SHM_NCSI_CHANNEL0_RESET_COUNT ((volatile BCM5719_SHM_H_uint32_t*)0xc0014984) /* */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0ResetCount. */ -typedef register_container RegSHMNcsiChannel0ResetCount_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0ResetCount"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0ResetCount_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0ResetCount. */ - r32.setName("NcsiChannel0ResetCount"); - } - RegSHMNcsiChannel0ResetCount_t& operator=(const RegSHMNcsiChannel0ResetCount_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0ResetCount_t; - -#define REG_SHM_NCSI_CHANNEL0_PXE ((volatile BCM5719_SHM_H_uint32_t*)0xc0014988) /* */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Pxe. */ -typedef register_container RegSHMNcsiChannel0Pxe_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Pxe"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Pxe_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Pxe. */ - r32.setName("NcsiChannel0Pxe"); - } - RegSHMNcsiChannel0Pxe_t& operator=(const RegSHMNcsiChannel0Pxe_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Pxe_t; - -#define REG_SHM_NCSI_CHANNEL0_DROPFIL ((volatile BCM5719_SHM_H_uint32_t*)0xc001498c) /* */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Dropfil. */ -typedef register_container RegSHMNcsiChannel0Dropfil_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Dropfil"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Dropfil_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Dropfil. */ - r32.setName("NcsiChannel0Dropfil"); - } - RegSHMNcsiChannel0Dropfil_t& operator=(const RegSHMNcsiChannel0Dropfil_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Dropfil_t; - -#define REG_SHM_NCSI_CHANNEL0_SLINK ((volatile BCM5719_SHM_H_uint32_t*)0xc0014990) /* */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Slink. */ -typedef register_container RegSHMNcsiChannel0Slink_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Slink"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Slink_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Slink. */ - r32.setName("NcsiChannel0Slink"); - } - RegSHMNcsiChannel0Slink_t& operator=(const RegSHMNcsiChannel0Slink_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Slink_t; - -#define REG_SHM_NCSI_CHANNEL0_DBG ((volatile BCM5719_SHM_H_uint32_t*)0xc00149a0) /* */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0Dbg. */ -typedef register_container RegSHMNcsiChannel0Dbg_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0Dbg"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0Dbg_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0Dbg. */ - r32.setName("NcsiChannel0Dbg"); - } - RegSHMNcsiChannel0Dbg_t& operator=(const RegSHMNcsiChannel0Dbg_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0Dbg_t; - -#define REG_SHM_NCSI_CHANNEL0_CTRLSTAT_RX ((volatile BCM5719_SHM_H_uint32_t*)0xc00149b0) /* */ -/** @brief Register definition for @ref SHM_t.NcsiChannel0CtrlstatRx. */ -typedef register_container RegSHMNcsiChannel0CtrlstatRx_t { - /** @brief 32bit direct register access. */ - BCM5719_SHM_H_uint32_t r32; -#ifdef CXX_SIMULATOR - /** @brief Register name for use with the simulator. */ - const char* getName(void) { return "NcsiChannel0CtrlstatRx"; } - - /** @brief Print register value. */ - void print(void) { r32.print(); } - - RegSHMNcsiChannel0CtrlstatRx_t() - { - /** @brief constructor for @ref SHM_t.NcsiChannel0CtrlstatRx. */ - r32.setName("NcsiChannel0CtrlstatRx"); - } - RegSHMNcsiChannel0CtrlstatRx_t& operator=(const RegSHMNcsiChannel0CtrlstatRx_t& other) - { - r32 = other.r32; - return *this; - } -#endif /* CXX_SIMULATOR */ -} RegSHMNcsiChannel0CtrlstatRx_t; - /** @brief Component definition for @ref SHM. */ typedef struct SHM_t { /** @brief APE_APE_MAGIC ('APE!') when all is well. */ @@ -3073,132 +1735,6 @@ typedef struct SHM_t { /** @brief The APE code copies the contents of Chip ID to this word */ RegSHMChipId_t ChipId; - /** @brief Reserved bytes to pad out data structure. */ - BCM5719_SHM_H_uint32_t reserved_2196[27]; - - /** @brief */ - RegSHMNcsiChannel0Info_t NcsiChannel0Info; - - /** @brief AEN Management Controller ID, set by BMC when sending AEN ENABLE command and used when sending AENs. */ - RegSHMNcsiChannel0Mcid_t NcsiChannel0Mcid; - - /** @brief Set via NCSI ENABLE AEN. */ - RegSHMNcsiChannel0Aen_t NcsiChannel0Aen; - - /** @brief */ - RegSHMNcsiChannel0Bfilt_t NcsiChannel0Bfilt; - - /** @brief */ - RegSHMNcsiChannel0Mfilt_t NcsiChannel0Mfilt; - - /** @brief This is the "Link Settings" value from NCSI Set Link. */ - RegSHMNcsiChannel0Setting1_t NcsiChannel0Setting1; - - /** @brief This is the "OEM Settings" value from NCSI Set Link. */ - RegSHMNcsiChannel0Setting2_t NcsiChannel0Setting2; - - /** @brief Receives VLAN mode from NCSI specification "Enable VLAN" command. */ - RegSHMNcsiChannel0Vlan_t NcsiChannel0Vlan; - - /** @brief Reserved bytes to pad out data structure. */ - BCM5719_SHM_H_uint32_t reserved_2336[1]; - - /** @brief Lower 16 bits of this word contains upper 16 bits of the MAC. */ - RegSHMNcsiChannel0AltHostMacHigh_t NcsiChannel0AltHostMacHigh; - - /** @brief Lower 16 bits of this word contains mid 16 bits of the MAC. */ - RegSHMNcsiChannel0AltHostMacMid_t NcsiChannel0AltHostMacMid; - - /** @brief Lower 16 bits of this word contains low 16 bits of the MAC. */ - RegSHMNcsiChannel0AltHostMacLow_t NcsiChannel0AltHostMacLow; - - /** @brief Reserved bytes to pad out data structure. */ - BCM5719_SHM_H_uint32_t reserved_2352[1]; - - /** @brief Lower 16 bits of this word contains upper 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac0High_t NcsiChannel0Mac0High; - - /** @brief Lower 16 bits of this word contains mid 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac0Mid_t NcsiChannel0Mac0Mid; - - /** @brief Lower 16 bits of this word contains low 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac0Low_t NcsiChannel0Mac0Low; - - /** @brief Reserved bytes to pad out data structure. */ - BCM5719_SHM_H_uint32_t reserved_2368[1]; - - /** @brief Lower 16 bits of this word contains upper 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac1High_t NcsiChannel0Mac1High; - - /** @brief Lower 16 bits of this word contains mid 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac1Mid_t NcsiChannel0Mac1Mid; - - /** @brief Lower 16 bits of this word contains low 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac1Low_t NcsiChannel0Mac1Low; - - /** @brief Reserved bytes to pad out data structure. */ - BCM5719_SHM_H_uint32_t reserved_2384[1]; - - /** @brief Lower 16 bits of this word contains upper 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac2High_t NcsiChannel0Mac2High; - - /** @brief Lower 16 bits of this word contains mid 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac2Mid_t NcsiChannel0Mac2Mid; - - /** @brief Lower 16 bits of this word contains low 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac2Low_t NcsiChannel0Mac2Low; - - /** @brief Reserved bytes to pad out data structure. */ - BCM5719_SHM_H_uint32_t reserved_2400[1]; - - /** @brief Lower 16 bits of this word contains upper 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac3High_t NcsiChannel0Mac3High; - - /** @brief Lower 16 bits of this word contains mid 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac3Mid_t NcsiChannel0Mac3Mid; - - /** @brief Lower 16 bits of this word contains low 16 bits of the MAC. */ - RegSHMNcsiChannel0Mac3Low_t NcsiChannel0Mac3Low; - - /** @brief Nonzero indicates VLAN field is valid */ - RegSHMNcsiChannel0Mac0VlanValid_t NcsiChannel0Mac0VlanValid; - - /** @brief */ - RegSHMNcsiChannel0Mac0Vlan_t NcsiChannel0Mac0Vlan; - - /** @brief Nonzero indicates VLAN field is valid */ - RegSHMNcsiChannel0Mac1VlanValid_t NcsiChannel0Mac1VlanValid; - - /** @brief */ - RegSHMNcsiChannel0Mac1Vlan_t NcsiChannel0Mac1Vlan; - - /** @brief */ - RegSHMNcsiChannel0Status_t NcsiChannel0Status; - - /** @brief */ - RegSHMNcsiChannel0ResetCount_t NcsiChannel0ResetCount; - - /** @brief */ - RegSHMNcsiChannel0Pxe_t NcsiChannel0Pxe; - - /** @brief */ - RegSHMNcsiChannel0Dropfil_t NcsiChannel0Dropfil; - - /** @brief */ - RegSHMNcsiChannel0Slink_t NcsiChannel0Slink; - - /** @brief Reserved bytes to pad out data structure. */ - BCM5719_SHM_H_uint32_t reserved_2452[3]; - - /** @brief */ - RegSHMNcsiChannel0Dbg_t NcsiChannel0Dbg; - - /** @brief Reserved bytes to pad out data structure. */ - BCM5719_SHM_H_uint32_t reserved_2468[3]; - - /** @brief */ - RegSHMNcsiChannel0CtrlstatRx_t NcsiChannel0CtrlstatRx; - #ifdef CXX_SIMULATOR SHM_t() { @@ -3249,40 +1785,6 @@ typedef struct SHM_t { NcsiBuildDate2.r32.setComponentOffset(0x820); NcsiBuildDate3.r32.setComponentOffset(0x824); ChipId.r32.setComponentOffset(0x890); - NcsiChannel0Info.r32.setComponentOffset(0x900); - NcsiChannel0Mcid.r32.setComponentOffset(0x904); - NcsiChannel0Aen.r32.setComponentOffset(0x908); - NcsiChannel0Bfilt.r32.setComponentOffset(0x90c); - NcsiChannel0Mfilt.r32.setComponentOffset(0x910); - NcsiChannel0Setting1.r32.setComponentOffset(0x914); - NcsiChannel0Setting2.r32.setComponentOffset(0x918); - NcsiChannel0Vlan.r32.setComponentOffset(0x91c); - NcsiChannel0AltHostMacHigh.r32.setComponentOffset(0x924); - NcsiChannel0AltHostMacMid.r32.setComponentOffset(0x928); - NcsiChannel0AltHostMacLow.r32.setComponentOffset(0x92c); - NcsiChannel0Mac0High.r32.setComponentOffset(0x934); - NcsiChannel0Mac0Mid.r32.setComponentOffset(0x938); - NcsiChannel0Mac0Low.r32.setComponentOffset(0x93c); - NcsiChannel0Mac1High.r32.setComponentOffset(0x944); - NcsiChannel0Mac1Mid.r32.setComponentOffset(0x948); - NcsiChannel0Mac1Low.r32.setComponentOffset(0x94c); - NcsiChannel0Mac2High.r32.setComponentOffset(0x954); - NcsiChannel0Mac2Mid.r32.setComponentOffset(0x958); - NcsiChannel0Mac2Low.r32.setComponentOffset(0x95c); - NcsiChannel0Mac3High.r32.setComponentOffset(0x964); - NcsiChannel0Mac3Mid.r32.setComponentOffset(0x968); - NcsiChannel0Mac3Low.r32.setComponentOffset(0x96c); - NcsiChannel0Mac0VlanValid.r32.setComponentOffset(0x970); - NcsiChannel0Mac0Vlan.r32.setComponentOffset(0x974); - NcsiChannel0Mac1VlanValid.r32.setComponentOffset(0x978); - NcsiChannel0Mac1Vlan.r32.setComponentOffset(0x97c); - NcsiChannel0Status.r32.setComponentOffset(0x980); - NcsiChannel0ResetCount.r32.setComponentOffset(0x984); - NcsiChannel0Pxe.r32.setComponentOffset(0x988); - NcsiChannel0Dropfil.r32.setComponentOffset(0x98c); - NcsiChannel0Slink.r32.setComponentOffset(0x990); - NcsiChannel0Dbg.r32.setComponentOffset(0x9a0); - NcsiChannel0CtrlstatRx.r32.setComponentOffset(0x9b0); } typedef uint32_t (*callback_t)(uint32_t, uint32_t, void*); callback_t mIndexReadCallback; |