Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/powerpc/psim/uart_iobus.c
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | uart_iobus_probe(device_t dev) | ||||
type = iobus_get_name(dev); | type = iobus_get_name(dev); | ||||
if (strncmp(type, "com", 3) != 0) | if (strncmp(type, "com", 3) != 0) | ||||
return (ENXIO); | return (ENXIO); | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->sc_class = &uart_ns8250_class; | sc->sc_class = &uart_ns8250_class; | ||||
device_set_desc(dev, "PSIM serial port"); | device_set_desc(dev, "PSIM serial port"); | ||||
return (uart_bus_probe(dev, 0, 0, 0, 0)); | return (uart_bus_probe(dev, 0, 0, 0, 0, 0, 0)); | ||||
} | } | ||||
DRIVER_MODULE(uart, iobus, uart_iobus_driver, uart_devclass, 0, 0); | DRIVER_MODULE(uart, iobus, uart_iobus_driver, uart_devclass, 0, 0); |