PRUETH_MAC0
return PRUETH_MAC0;
for (i = PRUETH_MAC0; i < PRUETH_NUM_MACS; i++) {
struct prueth_emac *emac0 = prueth->emac[PRUETH_MAC0];
emac0 = prueth->emac[PRUETH_MAC0];
emac0 = prueth->emac[PRUETH_MAC0];
for (mac = PRUETH_MAC0; mac < PRUETH_NUM_MACS; mac++) {
prueth->eth_node[PRUETH_MAC0] = eth0_node;
prueth->emac[PRUETH_MAC0]->half_duplex =
prueth->emac[PRUETH_MAC0]->iep = prueth->iep0;
ret = register_netdev(prueth->emac[PRUETH_MAC0]->ndev);
prueth->registered_netdevs[PRUETH_MAC0] = prueth->emac[PRUETH_MAC0]->ndev;
ret = emac_phy_connect(prueth->emac[PRUETH_MAC0]);
phy_attached_info(prueth->emac[PRUETH_MAC0]->ndev->phydev);
if (prueth->eth_node[PRUETH_MAC0])
prueth->emac[PRUETH_MAC0]->half_duplex =
prueth->emac[PRUETH_MAC0]->iep = prueth->iep0;
ret = register_netdev(prueth->emac[PRUETH_MAC0]->ndev);
prueth->registered_netdevs[PRUETH_MAC0] = prueth->emac[PRUETH_MAC0]->ndev;
emac_phy_connect(prueth->emac[PRUETH_MAC0]);
phy_attached_info(prueth->emac[PRUETH_MAC0]->ndev->phydev);
if (prueth->eth_node[PRUETH_MAC0])
prueth->eth_node[PRUETH_MAC0] = eth0_node;
return PRUETH_MAC0;
prueth->eth_node[PRUETH_MAC0] = eth0_node;
ret = register_netdev(prueth->emac[PRUETH_MAC0]->ndev);
prueth->registered_netdevs[PRUETH_MAC0] =
prueth->emac[PRUETH_MAC0]->ndev;
if (prueth->eth_node[PRUETH_MAC0])
if (prueth->eth_node[PRUETH_MAC0])