rem: DEBUGOUT1("PHY Address %d is out of range\n", reg_addr);
add: HW_DEBUGOUT1("PHY Address %d is out of range", reg_addr);
context: em_read_phy_reg_ex(struct em_hw *hw,                      uint32_t reg_addr,                      uint16_t *phy_data){    uint32_t i;    uint32_t mdic = 0;    const uint32_t phy_addr = 1;    DEBUGFUNC("em_read_phy_reg_ex");    if(reg_addr > MAX_PHY_REG_ADDRESS) {        DEBUGOUT1("PHY Address %d is out of range\n", reg_addr);        return -E1000_ERR_PARAM;    }    if(hw->mac_type > em_82543) {        /* Set up Op-code, Phy Address, and register address in the MDI         * Control register.  The MAC will take care of interfacing with the         * PHY to retrieve the desired data.         */        mdic = ((reg_addr << E1000_MDIC_REG_SHIFT) |                (phy_addr << E1000_MDIC_PHY_SHIFT) |                (E1000_MDIC_OP_READ));        E1000_WRITE_REG(hw, MDIC, mdic);        /* Poll the ready bit to see if the MDI read completed */        for(i = 0; i < 64; i++) {            usec_delay(50);            mdic = E1000_READ_REG(hw, MDIC);            if(mdic & E1000_MDIC_READY) break;        }        if(!(mdic & E1000_MDIC_READY)) {            DEBUGOUT("MDI Read did not complete\n");            return -E1000_ERR_PHY;        }        if(mdic & E1000_MDIC_ERROR) {            DEBUGOUT("MDI Error\n");            return -E1000_ERR_PHY;        }        *phy_data = (uint16_t) mdic;    } else {        /* We must first send a preamble through the MDIO pin to signal the         * beginning of an MII instruction.  This is done by sending 32         * consecutive "1" bits.         */        em_shift_out_mdi_bits(hw, PHY_PREAMBLE, PHY_PREAMBLE_SIZE);        /* Now combine the next few fields that are required for a read         * operation.  We use this method instead of calling the         * em_shift_out_mdi_bits routine five different times. The format of         * a MII read instruction consists of a shift out of 14 bits and is         * defined as follows:         *    <Preamble><SOF><Op Code><Phy Addr><Reg Addr>         * followed by a shift in of 18 bits.  This first two bits shifted in         * are TurnAround bits used to avoid contention on the MDIO pin when a         * READ operation is performed.  These two bits are thrown away         * followed by a shift in of 16 bits which contains the desired data.         */        mdic = ((reg_addr) | (phy_addr << 5) |                (PHY_OP_READ << 10) | (PHY_SOF << 12));        em_shift_out_mdi_bits(hw, mdic, 14);        /* Now that we've shifted out the read command to the MII, we need to         * "shift in" the 16-bit value (18 total bits) of the requested PHY         * register address.         */        *phy_data = em_shift_in_mdi_bits(hw);    }    return E1000_SUCCESS;}