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

	DEBUGFUNC("txgbe_init_shared_code");

	/*
	 * Set the mac type
	 */
	txgbe_set_mac_type(hw);

	txgbe_init_ops_dummy(hw);
	switch (hw->mac.type) {
	case txgbe_mac_raptor:
		status = txgbe_init_ops_pf(hw);
		break;
	default:
		status = TXGBE_ERR_DEVICE_NOT_SUPPORTED;
		break;
	}
	hw->mac.max_link_up_time = TXGBE_LINK_UP_TIME;

	hw->bus.set_lan_id(hw);

	return status;
}
/**
 *  txgbe_init_shared_code - Initialize the shared code
 *  @hw: pointer to hardware structure
 *
 *  This will assign function pointers and assign the MAC type and PHY code.
 *  Does not touch the hardware. This function must be called prior to any
 *  other function in the shared code. The txgbe_hw structure should be
 *  memset to 0 prior to calling this function.  The following fields in
 *  hw structure should be filled in prior to calling this function:
 *  hw_addr, back, device_id, vendor_id, subsystem_device_id,
 *  subsystem_vendor_id, and revision_id
 **/
Initialize the shared code
@hw: pointer to hardware structure

This will assign function pointers and assign the MAC type and PHY code.
Does not touch the hardware. This function must be called prior to any
other function in the shared code. The txgbe_hw structure should be
memset to 0 prior to calling this function.  The following fields in
hw structure should be filled in prior to calling this function:
hw_addr, back, device_id, vendor_id, subsystem_device_id,
subsystem_vendor_id, and revision_id
Initialize the shared code @hw : pointer to hardware structure This will assign function pointers and assign the MAC type and PHY code . Does not touch the hardware . This function must be called prior to any other function in the shared code . The txgbe_hw structure should be memset to 0 prior to calling this function . The following fields in hw structure should be filled in prior to calling this function : hw_addr back device_id vendor_id subsystem_device_id subsystem_vendor_id and revision_id
s32 txgbe_init_shared_code(struct txgbe_hw *hw)
{
	s32 status;
	DEBUGFUNC("txgbe_init_shared_code");
	txgbe_set_mac_type(hw);
	txgbe_init_ops_dummy(hw);
	switch (hw->mac.type) {
	case txgbe_mac_raptor:
		status = txgbe_init_ops_pf(hw);
		break;
	default:
		status = TXGBE_ERR_DEVICE_NOT_SUPPORTED;
		break;
	}
	hw->mac.max_link_up_time = TXGBE_LINK_UP_TIME;
	hw->bus.set_lan_id(hw);
	return status;
}
s32 txgbe_init_shared_code ( struct txgbe_hw * hw ) { s32 status ; DEBUGFUNC ( " " ) ; txgbe_set_mac_type ( hw ) ; txgbe_init_ops_dummy ( hw ) ; switch ( hw -> mac . type ) { case txgbe_mac_raptor : status = txgbe_init_ops_pf ( hw ) ; break ; default : status = TXGBE_ERR_DEVICE_NOT_SUPPORTED ; break ; } hw -> mac . max_link_up_time = TXGBE_LINK_UP_TIME ; hw -> bus . set_lan_id ( hw ) ; return status ; }
txgbe_init_shared_code - Initialize the shared code
  @hw: pointer to hardware structure
txgbe_init_shared_code - Initialize the shared code @hw : pointer to hardware structure
/*
	 * Set the mac type
	 */