MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bnxt_map_reset_regs

Function bnxt_map_reset_regs

dpdk/drivers/net/bnxt/bnxt_ethdev.c:4142–4153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4140};
4141
4142static uint32_t bnxt_map_reset_regs(struct bnxt *bp, uint32_t reg)
4143{
4144 uint32_t offset;
4145
4146 /* Only pre-map the reset GRC registers using window 3 */
4147 rte_write32(reg & 0xfffff000, (uint8_t *)bp->bar0 +
4148 BNXT_GRCPF_REG_WINDOW_BASE_OUT + 8);
4149
4150 offset = BNXT_GRCP_WINDOW_3_BASE + (reg & 0xffc);
4151
4152 return offset;
4153}
4154
4155int bnxt_map_fw_health_status_regs(struct bnxt *bp)
4156{

Callers 1

bnxt_write_fw_reset_regFunction · 0.85

Calls 1

rte_write32Function · 0.50

Tested by

no test coverage detected