} else if(hw->phy_type == e1000_phy_igp) { 
} else if(hw->phy_type == e1000_phy_igp || hw->phy_type == e1000_phy_igp_2) { 
e1000_check_polarity(struct e1000_hw *hw,                     uint16_t *polarity){    int32_t ret_val;    uint16_t phy_data;    DEBUGFUNC("e1000_check_polarity");    if(hw->phy_type == e1000_phy_m88) {        /* return the Polarity bit in the Status register. */        ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS,                                     &phy_data);        if(ret_val)            return ret_val;        *polarity = (phy_data & M88E1000_PSSR_REV_POLARITY) >>                    M88E1000_PSSR_REV_POLARITY_SHIFT;    } else if(hw->phy_type == e1000_phy_igp) {        /* Read the Status register to check the speed */        ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_STATUS,                                     &phy_data);        if(ret_val)            return ret_val;        /* If speed is 1000 Mbps, must read the IGP01E1000_PHY_PCS_INIT_REG to         * find the polarity status */        if((phy_data & IGP01E1000_PSSR_SPEED_MASK) ==           IGP01E1000_PSSR_SPEED_1000MBPS) {            /* Read the GIG initialization PCS register (0x00B4) */            ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PCS_INIT_REG,                                         &phy_data);            if(ret_val)                return ret_val;            /* Check the polarity bits */            *polarity = (phy_data & IGP01E1000_PHY_POLARITY_MASK) ? 1 : 0;        } else {            /* For 10 Mbps, read the polarity bit in the status register. (for             * 100 Mbps this bit is always 0) */            *polarity = phy_data & IGP01E1000_PSSR_POLARITY_REVERSED;        }    }    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