#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/condvar.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/mutex.h>
#include <sys/rman.h>
#include <dev/ofw/openfirm.h>
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
#include <dev/usb/usb_core.h>
#include <dev/usb/usb_busdma.h>
#include <dev/usb/usb_process.h>
#include <dev/usb/usb_util.h>
#include <dev/usb/usb_controller.h>
#include <dev/usb/usb_bus.h>
#include <dev/usb/controller/dwc_otg.h>
#include <dev/usb/controller/dwc_otg_fdt.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static int | dwc_otg_probe (device_t dev) |
|
static int | dwc_otg_irq_index (device_t dev, int *rid) |
|
int | dwc_otg_attach (device_t dev) |
|
int | dwc_otg_detach (device_t dev) |
|
| DRIVER_MODULE (dwcotg, simplebus, dwc_otg_driver, dwc_otg_devclass, 0, 0) |
|
| MODULE_DEPEND (dwcotg, usb, 1, 1, 1) |
|
◆ __FBSDID()
◆ DRIVER_MODULE()
◆ dwc_otg_attach()
int dwc_otg_attach |
( |
device_t |
dev | ) |
|
Definition at line 98 of file dwc_otg_fdt.c.
References usb_bus::bdev, dev, DWC_MODE_DEVICE, DWC_MODE_HOST, dwc_otg_detach(), dwc_otg_init(), dwc_otg_irq_index(), error, usb_bus::parent, rid, dwc_otg_softc::sc_bus, dwc_otg_softc::sc_io_res, dwc_otg_softc::sc_irq_res, dwc_otg_softc::sc_mode, and dwc_otg_fdt_softc::sc_otg.
◆ dwc_otg_detach()
int dwc_otg_detach |
( |
device_t |
dev | ) |
|
◆ dwc_otg_irq_index()
static int dwc_otg_irq_index |
( |
device_t |
dev, |
|
|
int * |
rid |
|
) |
| |
|
static |
◆ dwc_otg_probe()
static int dwc_otg_probe |
( |
device_t |
dev | ) |
|
|
static |
◆ MODULE_DEPEND()
MODULE_DEPEND |
( |
dwcotg |
, |
|
|
usb |
, |
|
|
1 |
, |
|
|
1 |
, |
|
|
1 |
|
|
) |
| |
◆ compat_data
struct ofw_compat_data compat_data[] |
|
static |
Initial value:= {
{ "synopsys,designware-hs-otg2", 1 },
{ "snps,dwc2", 1 },
{ NULL, 0 }
}
Definition at line 62 of file dwc_otg_fdt.c.
Referenced by dwc_otg_probe().
◆ dwc_otg_devclass
devclass_t dwc_otg_devclass |
|
static |
◆ dwc_otg_driver
Initial value:= {
.name = "dwcotg",
}
static device_method_t dwc_otg_methods[]
Definition at line 211 of file dwc_otg_fdt.c.
◆ dwc_otg_methods
device_method_t dwc_otg_methods[] |
|
static |
Initial value:= {
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD_END
}
int dwc_otg_detach(device_t dev)
static device_probe_t dwc_otg_probe
int dwc_otg_attach(device_t dev)
Definition at line 199 of file dwc_otg_fdt.c.
◆ dwc_otg_probe
device_probe_t dwc_otg_probe |
|
static |