Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/scc/scc_bfe_macio.c
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
scc_macio_probe(device_t dev) | scc_macio_probe(device_t dev) | ||||
{ | { | ||||
struct scc_softc *sc; | struct scc_softc *sc; | ||||
const char *nm; | const char *nm; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
nm = ofw_bus_get_name(dev); | nm = ofw_bus_get_name(dev); | ||||
/* Attach to modern escc (channel shift 4 bits) */ | |||||
if (!strcmp(nm, "escc")) { | if (!strcmp(nm, "escc")) { | ||||
device_set_desc(dev, "Zilog Z8530 dual channel SCC"); | device_set_desc(dev, "Zilog Z8530 dual channel SCC"); | ||||
sc->sc_class = &scc_z8530_class; | sc->sc_class = &scc_z8530_class; | ||||
return (scc_bfe_probe(dev, MACIO_REGSHFT, MACIO_RCLK, 0)); | return (scc_bfe_probe(dev, MACIO_REGSHFT, MACIO_RCLK, 0)); | ||||
} | } | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
Show All 30 Lines |