Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/generic_xhci_acpi.c
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | generic_xhci_acpi_probe(device_t dev) | ||||
ACPI_HANDLE h; | ACPI_HANDLE h; | ||||
if ((h = acpi_get_handle(dev)) == NULL || | if ((h = acpi_get_handle(dev)) == NULL || | ||||
acpi_MatchHid(h, "PNP0D10") == ACPI_MATCHHID_NOMATCH) | acpi_MatchHid(h, "PNP0D10") == ACPI_MATCHHID_NOMATCH) | ||||
return (ENXIO); | return (ENXIO); | ||||
device_set_desc(dev, XHCI_HC_DEVSTR); | device_set_desc(dev, XHCI_HC_DEVSTR); | ||||
return (BUS_PROBE_DEFAULT); | return (BUS_PROBE_GENERIC); | ||||
} | } | ||||
static device_method_t xhci_acpi_methods[] = { | static device_method_t xhci_acpi_methods[] = { | ||||
/* Device interface */ | /* Device interface */ | ||||
DEVMETHOD(device_probe, generic_xhci_acpi_probe), | DEVMETHOD(device_probe, generic_xhci_acpi_probe), | ||||
DEVMETHOD_END | DEVMETHOD_END | ||||
}; | }; | ||||
DEFINE_CLASS_1(xhci, xhci_acpi_driver, xhci_acpi_methods, | DEFINE_CLASS_1(xhci, xhci_acpi_driver, xhci_acpi_methods, | ||||
sizeof(struct xhci_softc), generic_xhci_driver); | sizeof(struct xhci_softc), generic_xhci_driver); | ||||
static devclass_t xhci_acpi_devclass; | static devclass_t xhci_acpi_devclass; | ||||
DRIVER_MODULE(xhci, acpi, xhci_acpi_driver, xhci_acpi_devclass, 0, 0); | DRIVER_MODULE(xhci, acpi, xhci_acpi_driver, xhci_acpi_devclass, 0, 0); | ||||
MODULE_DEPEND(xhci, usb, 1, 1, 1); | MODULE_DEPEND(xhci, usb, 1, 1, 1); |