Lines Matching refs:phy
81 struct eth_phy *phy = hw_data (me);
88 reg_off = addr - phy->base;
89 valuep = (void *)((uintptr_t)phy + reg_base() + reg_off);
115 struct eth_phy *phy = hw_data (me);
119 reg_off = addr - phy->base;
120 valuep = (void *)((uintptr_t)phy + reg_base() + reg_off);
149 attach_eth_phy_regs (struct hw *me, struct eth_phy *phy)
173 phy->base = attach_address;
179 struct eth_phy *phy;
181 phy = HW_ZALLOC (me, struct eth_phy);
183 set_hw_data (me, phy);
187 attach_eth_phy_regs (me, phy);
189 /* Initialize the PHY. */
190 phy->regs[MII_PHYSID1] = 0; /* Unassigned Vendor */
191 phy->regs[MII_PHYSID2] = 0xAD; /* Product */