Lines Matching +full:eee +full:- +full:broken +full:- +full:1000 +full:t
1 /*-
55 * and to avoid problems if the enum gains new types that aren't in the FDT
69 {MII_CONTYPE_REVMII, "rev-mii"},
72 {MII_CONTYPE_RGMII_ID, "rgmii-id"},
73 {MII_CONTYPE_RGMII_RXID, "rgmii-rxid"},
74 {MII_CONTYPE_RGMII_TXID, "rgmii-txid"},
79 {MII_CONTYPE_2000BX, "2000base-x"},
80 {MII_CONTYPE_2500BX, "2500base-x"},
88 "phy-handle", "phy", "phy-device"
97 return (-1);
108 if (phynode != -1)
119 ports = ofw_bus_find_child(node, "ethernet-ports");
121 return (-1);
137 return (-1);
169 if (OF_getprop(macnode, "phy-mode", val, sizeof(val)) <= 0 &&
170 OF_getprop(macnode, "phy-connection-type", val, sizeof(val)) <= 0) {
198 * If we can't find our parent MAC's node, there's nothing more we can
201 if ((cfg->macnode = ofw_bus_get_node(macdev)) == -1)
204 cfg->con_type = mii_fdt_get_contype(cfg->macnode);
207 * If we can't find our own PHY node, there's nothing more we can fill
210 cfg->phynode = mii_fdt_lookup_phy(cfg->macnode, ma->mii_phyno);
211 if (cfg->phynode == -1)
214 if (OF_getencprop(cfg->phynode, "max-speed", &val, sizeof(val)) > 0)
215 cfg->max_speed = val;
217 if (ofw_bus_node_is_compatible(cfg->phynode,
218 "ethernet-phy-ieee802.3-c45"))
219 cfg->flags |= MIIF_FDT_COMPAT_CLAUSE45;
221 if (OF_hasprop(cfg->phynode, "broken-turn-around"))
222 cfg->flags |= MIIF_FDT_BROKEN_TURNAROUND;
223 if (OF_hasprop(cfg->phynode, "enet-phy-lane-swap"))
224 cfg->flags |= MIIF_FDT_LANE_SWAP;
225 if (OF_hasprop(cfg->phynode, "enet-phy-lane-no-swap"))
226 cfg->flags |= MIIF_FDT_NO_LANE_SWAP;
227 if (OF_hasprop(cfg->phynode, "eee-broken-100tx"))
228 cfg->flags |= MIIF_FDT_EEE_BROKEN_100TX;
229 if (OF_hasprop(cfg->phynode, "eee-broken-1000t"))
230 cfg->flags |= MIIF_FDT_EEE_BROKEN_1000T;
231 if (OF_hasprop(cfg->phynode, "eee-broken-10gt"))
232 cfg->flags |= MIIF_FDT_EEE_BROKEN_10GT;
233 if (OF_hasprop(cfg->phynode, "eee-broken-1000kx"))
234 cfg->flags |= MIIF_FDT_EEE_BROKEN_1000KX;
235 if (OF_hasprop(cfg->phynode, "eee-broken-10gkx4"))
236 cfg->flags |= MIIF_FDT_EEE_BROKEN_10GKX4;
237 if (OF_hasprop(cfg->phynode, "eee-broken-10gkr"))
238 cfg->flags |= MIIF_FDT_EEE_BROKEN_10GKR;
249 if (ofw_bus_get_node(parent) == -1)
272 bzero(&ma->obd, sizeof(ma->obd));
274 ma->mii_phyno);
275 if (phy_node == -1) {
278 ma->mii_phyno);
281 error = ofw_bus_gen_setup_devinfo(&ma->obd, phy_node);
285 ma->mii_phyno);
293 resource_list_init(&ma->rl);
294 (void)ofw_bus_intr_to_rl(children[i], phy_node, &ma->rl, NULL);
308 if (ma->obd.obd_node == 0)
311 return (&ma->rl);
321 if (ma->obd.obd_node == 0)
324 return (&ma->obd);