Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/uart/uart_bus_pccard.c
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | uart_pccard_attach(device_t dev) | ||||
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, 0, 0); | error = uart_bus_probe(dev, 0, 0, 0, 0, 0, 0); | ||||
if (error > 0) | if (error > 0) | ||||
return (error); | return (error); | ||||
gone_in_dev(dev, 13, "pccard removed"); | |||||
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, | ||||
1); | 1); |