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

Function igb_hw_control_acquire

dpdk/drivers/net/e1000/igb_ethdev.c:2471–2479  ·  view source on GitHub ↗

* igb_hw_control_acquire sets CTRL_EXT:DRV_LOAD bit. * For ASF and Pass Through versions of f/w this means * that the driver is loaded. */

Source from the content-addressed store, hash-verified

2469 * that the driver is loaded.
2470 */
2471static void
2472igb_hw_control_acquire(struct e1000_hw *hw)
2473{
2474 uint32_t ctrl_ext;
2475
2476 /* Let firmware know the driver has taken over */
2477 ctrl_ext = E1000_READ_REG(hw, E1000_CTRL_EXT);
2478 E1000_WRITE_REG(hw, E1000_CTRL_EXT, ctrl_ext | E1000_CTRL_EXT_DRV_LOAD);
2479}
2480
2481/*
2482 * igb_hw_control_release resets CTRL_EXT:DRV_LOAD bit.

Callers 1

igb_hardware_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected