| 96 | } |
| 97 | |
| 98 | int rt_phy_read(struct rt_phy_device *phydev, int devad, int regnum) |
| 99 | { |
| 100 | struct mii_bus *bus = phydev->bus; |
| 101 | if(phydev->is_c45) |
| 102 | { |
| 103 | if(bus->read_c45) |
| 104 | return bus->read_c45(bus, phydev->addr, devad, regnum); |
| 105 | } |
| 106 | |
| 107 | if( bus && bus->read ) |
| 108 | return bus->read(bus, phydev->addr, devad, regnum); |
| 109 | |
| 110 | LOG_D("no read function\n"); |
| 111 | return -1; |
| 112 | } |
| 113 | |
| 114 | int rt_phy_write(struct rt_phy_device *phydev, int devad, int regnum, rt_uint16_t val) |
| 115 | { |
no test coverage detected