src/dpdk/drivers/net/txgbe/base/txgbe_hw.c
s32 txgbe_init_hw(struct txgbe_hw *hw)
{
	s32 status;

	DEBUGFUNC("txgbe_init_hw");

	/* Reset the hardware */
	status = hw->mac.reset_hw(hw);
	if (status == 0 || status == TXGBE_ERR_SFP_NOT_PRESENT) {
		/* Start the HW */
		status = hw->mac.start_hw(hw);
	}

	if (status != 0)
		DEBUGOUT("Failed to initialize HW, STATUS = %d\n", status);

	return status;
}
/**
 *  txgbe_init_hw - Generic hardware initialization
 *  @hw: pointer to hardware structure
 *
 *  Initialize the hardware by resetting the hardware, filling the bus info
 *  structure and media type, clears all on chip counters, initializes receive
 *  address registers, multicast table, VLAN filter table, calls routine to set
 *  up link and flow control settings, and leaves transmit and receive units
 *  disabled and uninitialized
 **/
Generic hardware initialization
@hw: pointer to hardware structure

Initialize the hardware by resetting the hardware, filling the bus info
structure and media type, clears all on chip counters, initializes receive
address registers, multicast table, VLAN filter table, calls routine to set
up link and flow control settings, and leaves transmit and receive units
disabled and uninitialized
Generic hardware initialization @hw : pointer to hardware structure Initialize the hardware by resetting the hardware filling the bus info structure and media type clears all on chip counters initializes receive address registers multicast table VLAN filter table calls routine to set up link and flow control settings and leaves transmit and receive units disabled and uninitialized
s32 txgbe_init_hw(struct txgbe_hw *hw)
{
	s32 status;
	DEBUGFUNC("txgbe_init_hw");
	status = hw->mac.reset_hw(hw);
	if (status == 0 || status == TXGBE_ERR_SFP_NOT_PRESENT) {
		status = hw->mac.start_hw(hw);
	}
	if (status != 0)
		DEBUGOUT("Failed to initialize HW, STATUS = %d\n", status);
	return status;
}
s32 txgbe_init_hw ( struct txgbe_hw * hw ) { s32 status ; DEBUGFUNC ( " " ) ; status = hw -> mac . reset_hw ( hw ) ; if ( status == 0 || status == TXGBE_ERR_SFP_NOT_PRESENT ) { status = hw -> mac . start_hw ( hw ) ; } if ( status != 0 ) DEBUGOUT ( " \n " , status ) ; return status ; }
txgbe_init_hw - Generic hardware initialization
  @hw: pointer to hardware structure
txgbe_init_hw - Generic hardware initialization @hw : pointer to hardware structure
/* Reset the hardware */ /* Start the HW */