Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/etherswitch/felix/felix.c
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | else | ||||
sc->ports[port].cpu_port = true; | sc->ports[port].cpu_port = true; | ||||
node = ofw_bus_find_child(child, "fixed-link"); | node = ofw_bus_find_child(child, "fixed-link"); | ||||
if (node <= 0) { | if (node <= 0) { | ||||
sc->ports[port].fixed_port = false; | sc->ports[port].fixed_port = false; | ||||
return (0); | return (0); | ||||
} | } | ||||
sc->ports[port].fixed_port = true;; | sc->ports[port].fixed_port = true; | ||||
if (OF_getencprop(node, "speed", &status, sizeof(status)) <= 0) { | if (OF_getencprop(node, "speed", &status, sizeof(status)) <= 0) { | ||||
device_printf(sc->dev, | device_printf(sc->dev, | ||||
"Port has fixed-link node without link speed specified\n"); | "Port has fixed-link node without link speed specified\n"); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
switch (status) { | switch (status) { | ||||
▲ Show 20 Lines • Show All 800 Lines • Show Last 20 Lines |