rem: DEBUGOUT("1000 Mbs, Full Duplex\r\n");
add: HW_DEBUGOUT("1000 Mbs, Full Duplex");
context: em_get_speed_and_duplex(struct em_hw *hw,                           uint16_t *speed,                           uint16_t *duplex){    uint32_t status;    int32_t ret_val;    uint16_t phy_data;    DEBUGFUNC("em_get_speed_and_duplex");    if(hw->mac_type >= em_82543) {        status = E1000_READ_REG(hw, STATUS);        if(status & E1000_STATUS_SPEED_1000) {            *speed = SPEED_1000;            DEBUGOUT("1000 Mbs, ");        } else if(status & E1000_STATUS_SPEED_100) {            *speed = SPEED_100;            DEBUGOUT("100 Mbs, ");        } else {            *speed = SPEED_10;            DEBUGOUT("10 Mbs, ");        }        if(status & E1000_STATUS_FD) {            *duplex = FULL_DUPLEX;            DEBUGOUT("Full Duplex\r\n");        } else {            *duplex = HALF_DUPLEX;            DEBUGOUT(" Half Duplex\r\n");        }    } else {        DEBUGOUT("1000 Mbs, Full Duplex\r\n");        *speed = SPEED_1000;        *duplex = FULL_DUPLEX;    }    /* IGP01 PHY may advertise full duplex operation after speed downgrade even     * if it is operating at half duplex.  Here we set the duplex settings to     * match the duplex in the link partner's capabilities.     */    if(hw->phy_type == em_phy_igp && hw->speed_downgraded) {        if((ret_val = em_read_phy_reg(hw, PHY_AUTONEG_EXP, &phy_data)))            return ret_val;        if(!(phy_data & NWAY_ER_LP_NWAY_CAPS))            *duplex = HALF_DUPLEX;        else {            if((ret_val == em_read_phy_reg(hw, PHY_LP_ABILITY, &phy_data)))                return ret_val;            if((*speed == SPEED_100 && !(phy_data & NWAY_LPAR_100TX_FD_CAPS)) ||               (*speed == SPEED_10 && !(phy_data & NWAY_LPAR_10T_FD_CAPS)))                *duplex = HALF_DUPLEX;        }    }    return E1000_SUCCESS;}