32#include <sys/kernel.h>
34#include <sys/callout.h>
35#include <sys/condvar.h>
36#include <sys/module.h>
38#include <dev/ofw/ofw_bus_subr.h>
59 if (!ofw_bus_status_okay(
dev))
62 if (!ofw_bus_is_compatible(
dev,
"huawei,hisi-usb"))
65 device_set_desc(
dev,
"DWC OTG 2.0 integrated USB controller (hisilicon)");
67 return (BUS_PROBE_VENDOR);
77 sc = device_get_softc(
dev);
static driver_t dwc_otg_driver
static device_attach_t dwc_otg_attach
DEFINE_CLASS_1(hisi_dwcotg, hisi_dwc_otg_driver, hisi_dwc_otg_methods, sizeof(struct dwc_otg_fdt_softc), dwc_otg_driver)
MODULE_DEPEND(hisi_dwcotg, usb, 1, 1, 1)
static devclass_t hisi_dwc_otg_devclass
static device_attach_t hisi_dwc_otg_attach
static device_probe_t hisi_dwc_otg_probe
static device_method_t hisi_dwc_otg_methods[]
DRIVER_MODULE(hisi_dwcotg, simplebus, hisi_dwc_otg_driver, hisi_dwc_otg_devclass, 0, 0)
struct dwc_otg_softc sc_otg