Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/dev/uart/uart_bus_pci.c
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | uart_pci_probe(device_t dev) | ||||
if (id != NULL) { | if (id != NULL) { | ||||
sc->sc_class = &uart_ns8250_class; | sc->sc_class = &uart_ns8250_class; | ||||
goto match; | goto match; | ||||
} | } | ||||
/* Add checks for non-ns8250 IDs here. */ | /* Add checks for non-ns8250 IDs here. */ | ||||
return (ENXIO); | return (ENXIO); | ||||
match: | match: | ||||
result = uart_bus_probe(dev, id->regshft, id->rclk, id->rid, 0); | result = uart_bus_probe(dev, id->regshft, 0, id->rclk, id->rid, 0, 0); | ||||
/* Bail out on error. */ | /* Bail out on error. */ | ||||
if (result > 0) | if (result > 0) | ||||
return (result); | return (result); | ||||
/* Set/override the device description. */ | /* Set/override the device description. */ | ||||
if (id->desc) | if (id->desc) | ||||
device_set_desc(dev, id->desc); | device_set_desc(dev, id->desc); | ||||
return (result); | return (result); | ||||
} | } | ||||
DRIVER_MODULE(uart, pci, uart_pci_driver, uart_devclass, NULL, NULL); | DRIVER_MODULE(uart, pci, uart_pci_driver, uart_devclass, NULL, NULL); |