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

Function txgbe_flash_read_dword

dpdk/drivers/net/txgbe/base/txgbe_hw.c:2700–2711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2698}
2699
2700u32 txgbe_flash_read_dword(struct txgbe_hw *hw, u32 addr)
2701{
2702 u32 status;
2703
2704 status = txgbe_fmgr_cmd_op(hw, 1, addr);
2705 if (status == 0x1) {
2706 DEBUGOUT("Read flash timeout.");
2707 return status;
2708 }
2709
2710 return rd32(hw, TXGBE_SPIDAT);
2711}
2712
2713/**
2714 * txgbe_init_ops_pf - Inits func ptrs and MAC type

Callers 1

eth_txgbe_dev_initFunction · 0.85

Calls 2

txgbe_fmgr_cmd_opFunction · 0.85
rd32Function · 0.70

Tested by

no test coverage detected