Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/dev/uart/uart_bus_pccard.c
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
uart_pccard_attach(device_t dev) | uart_pccard_attach(device_t dev) | ||||
{ | { | ||||
struct uart_softc *sc; | struct uart_softc *sc; | ||||
int error; | int error; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->sc_class = &uart_ns8250_class; | sc->sc_class = &uart_ns8250_class; | ||||
error = uart_bus_probe(dev, 0, 0, 0, 0); | error = uart_bus_probe(dev, 0, 0, 0, 0, 0, 0); | ||||
if (error > 0) | if (error > 0) | ||||
return (error); | return (error); | ||||
return (uart_bus_attach(dev)); | return (uart_bus_attach(dev)); | ||||
} | } | ||||
DRIVER_MODULE(uart, pccard, uart_pccard_driver, uart_devclass, 0, 0); | DRIVER_MODULE(uart, pccard, uart_pccard_driver, uart_devclass, 0, 0); | ||||
MODULE_PNP_INFO("U32:function_type;", pccard, uart, &uart_pccard_function, | MODULE_PNP_INFO("U32:function_type;", pccard, uart, &uart_pccard_function, | ||||
sizeof(uart_pccard_function), 1); | sizeof(uart_pccard_function), 1); |