if(!((hw->mac_type == e1000_82541_rev_2) || (hw->mac_type == e1000_82547_rev_2))) 
if(hw->phy_type != e1000_phy_igp && hw->phy_type != e1000_phy_igp_2) 
e1000_set_d3_lplu_state(struct e1000_hw *hw,                        boolean_t active){    int32_t ret_val;    uint16_t phy_data;    DEBUGFUNC("e1000_set_d3_lplu_state");    if(!((hw->mac_type == e1000_82541_rev_2) ||         (hw->mac_type == e1000_82547_rev_2)))        return E1000_SUCCESS;    /* During driver activity LPLU should not be used or it will attain link     * from the lowest speeds starting from 10Mbps. The capability is used for     * Dx transitions and states */    ret_val = e1000_read_phy_reg(hw, IGP01E1000_GMII_FIFO, &phy_data);    if(ret_val)        return ret_val;    if(!active) {        phy_data &= ~IGP01E1000_GMII_FLEX_SPD;        ret_val = e1000_write_phy_reg(hw, IGP01E1000_GMII_FIFO, phy_data);        if(ret_val)            return ret_val;        /* LPLU and SmartSpeed are mutually exclusive.  LPLU is used during         * Dx states where the power conservation is most important.  During         * driver activity we should enable SmartSpeed, so performance is         * maintained. */        if (hw->smart_speed == e1000_smart_speed_on) {            ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG,                                         &phy_data);            if(ret_val)                return ret_val;            phy_data |= IGP01E1000_PSCFR_SMART_SPEED;            ret_val = e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG,                                          phy_data);            if(ret_val)                return ret_val;        } else if (hw->smart_speed == e1000_smart_speed_off) {            ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG,                                         &phy_data);	    if (ret_val)                return ret_val;            phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED;            ret_val = e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG,                                          phy_data);            if(ret_val)                return ret_val;        }    } else if((hw->autoneg_advertised == AUTONEG_ADVERTISE_SPEED_DEFAULT) ||              (hw->autoneg_advertised == AUTONEG_ADVERTISE_10_ALL ) ||              (hw->autoneg_advertised == AUTONEG_ADVERTISE_10_100_ALL)) {        phy_data |= IGP01E1000_GMII_FLEX_SPD;        ret_val = e1000_write_phy_reg(hw, IGP01E1000_GMII_FIFO, phy_data);        if(ret_val)            return ret_val;        /* When LPLU is enabled we should disable SmartSpeed */        ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG, &phy_data);        if(ret_val)            return ret_val;        phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED;        ret_val = e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CONFIG, phy_data);        if(ret_val)            return ret_val;    }    return E1000_SUCCESS;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/2d7edb923a823660b081bd4c660300ee19adca8d/e1000_hw.c/clean/drivers/net/e1000/e1000_hw.c