Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/net/if_smsc.c
Show First 20 Lines • Show All 1,562 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static phandle_t | static phandle_t | ||||
smsc_fdt_find_eth_node(phandle_t start) | smsc_fdt_find_eth_node(phandle_t start) | ||||
{ | { | ||||
phandle_t child, node; | phandle_t child, node; | ||||
/* Traverse through entire tree to find usb ethernet nodes. */ | /* Traverse through entire tree to find usb ethernet nodes. */ | ||||
for (node = OF_child(start); node != 0; node = OF_peer(node)) { | for (node = OF_child(start); node != 0; node = OF_peer(node)) { | ||||
if (ofw_bus_node_is_compatible(node, "net,ethernet") && | if ((ofw_bus_node_is_compatible(node, "net,ethernet") && | ||||
ofw_bus_node_is_compatible(node, "usb,device")) | ofw_bus_node_is_compatible(node, "usb,device")) || | ||||
ofw_bus_node_is_compatible(node, "usb424,ec00")) | |||||
return (node); | return (node); | ||||
child = smsc_fdt_find_eth_node(node); | child = smsc_fdt_find_eth_node(node); | ||||
if (child != -1) | if (child != -1) | ||||
return (child); | return (child); | ||||
} | } | ||||
return (-1); | return (-1); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 349 Lines • Show Last 20 Lines |