comparison packages/devs/eth/phy/current/src/eth_phy.c @ 2551:44499540b1fc

* cdl/phy_eth_drivers.cdl: * src/KSZ8001.c: Add support for Micrel KSZ8001 PHY
author asl
date Thu, 11 Sep 2008 17:55:24 +0000
parents 970f455a2397
children 74dbf4c3f2e1
comparison
equal deleted inserted replaced
2550:88afa3c9917a 2551:44499540b1fc
167 if (_eth_phy_read(f, PHY_ID2, addr, &state)) { 167 if (_eth_phy_read(f, PHY_ID2, addr, &state)) {
168 id |= state; 168 id |= state;
169 f->phy_addr = addr; 169 f->phy_addr = addr;
170 for (dev = __ETH_PHY_TAB__; dev != &__ETH_PHY_TAB_END__; dev++) { 170 for (dev = __ETH_PHY_TAB__; dev != &__ETH_PHY_TAB_END__; dev++) {
171 if (dev->id == id) { 171 if (dev->id == id) {
172 eth_phy_printf("PHY: %s\n", dev->name); 172 eth_phy_printf("PHY: %s at addr %x\n", dev->name, f->phy_addr);
173 f->dev = dev; 173 f->dev = dev;
174 return true; 174 return true;
175 } 175 }
176 } 176 }
177 } 177 }