Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ofw/ofw_cpu.c
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | |||||
ofw_cpu_probe(device_t dev) | ofw_cpu_probe(device_t dev) | ||||
{ | { | ||||
const char *type = ofw_bus_get_type(dev); | const char *type = ofw_bus_get_type(dev); | ||||
if (type == NULL || strcmp(type, "cpu") != 0) | if (type == NULL || strcmp(type, "cpu") != 0) | ||||
return (ENXIO); | return (ENXIO); | ||||
device_set_desc(dev, "Open Firmware CPU"); | device_set_desc(dev, "Open Firmware CPU"); | ||||
if (!bootverbose && device_get_unit(dev) != 0) { | |||||
device_quiet(dev); | |||||
device_quiet_children(dev); | |||||
} | |||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
ofw_cpu_attach(device_t dev) | ofw_cpu_attach(device_t dev) | ||||
{ | { | ||||
struct ofw_cpulist_softc *psc; | struct ofw_cpulist_softc *psc; | ||||
struct ofw_cpu_softc *sc; | struct ofw_cpu_softc *sc; | ||||
▲ Show 20 Lines • Show All 197 Lines • Show Last 20 Lines |