get_media_type
mac->ops.get_media_type = ngbe_get_media_type;
hw->phy.media_type = hw->mac.ops.get_media_type(hw);
enum ngbe_media_type (*get_media_type)(struct ngbe_hw *);
mac->ops.get_media_type = NULL;
switch (hw->mac.ops.get_media_type(hw)) {
if (hw->mac.ops.get_media_type)
return hw->mac.ops.get_media_type(hw);
hw->phy.media_type = hw->mac.ops.get_media_type(hw);
mac->ops.get_media_type = ixgbe_get_media_type_82598;
if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) {
if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) &&
if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_copper)
if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) {
mac->ops.get_media_type = ixgbe_get_media_type_82599;
mac->ops.get_media_type = ixgbe_get_media_type_E610;
if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper)
switch (hw->mac.ops.get_media_type(hw)) {
if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_fiber) {
if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_fiber_qsfp) {
enum ixgbe_media_type (*get_media_type)(struct ixgbe_hw *);
hw->mac.ops.get_media_type = NULL;
mac->ops.get_media_type = ixgbe_get_media_type_X540;
switch (hw->mac.ops.get_media_type(hw)) {
if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) {
if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper)
if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber)
if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper)
mac->ops.get_media_type = ixgbe_get_media_type_X550em;
if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper)
if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper)
switch (mac->ops.get_media_type(hw)) {
get_media_type() != MEDIATYPE_CDRW) {
extern int get_media_type(void);