#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/rman.h>
#include <sys/condvar.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/gpio.h>
#include <machine/bus.h>
#include <dev/fdt/simplebus.h>
#include <dev/fdt/fdt_common.h>
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/ofw/ofw_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_controller.h>
#include <dev/usb/usb_bus.h>
#include <dev/usb/controller/xhci.h>
#include <dev/usb/controller/dwc3.h>
#include <dev/extres/clk/clk.h>
#include <dev/extres/phy/phy_usb.h>
#include "generic_xhci.h"
Go to the source code of this file.
|
#define | DWC3_WRITE(_sc, _off, _val) bus_space_write_4(_sc->bst, _sc->bsh, _off, _val) |
|
#define | DWC3_READ(_sc, _off) bus_space_read_4(_sc->bst, _sc->bsh, _off) |
|
◆ DWC3_READ
#define DWC3_READ |
( |
|
_sc, |
|
|
|
_off |
|
) |
| bus_space_read_4(_sc->bst, _sc->bsh, _off) |
◆ DWC3_WRITE
#define DWC3_WRITE |
( |
|
_sc, |
|
|
|
_off, |
|
|
|
_val |
|
) |
| bus_space_write_4(_sc->bst, _sc->bsh, _off, _val) |
◆ __FBSDID()
◆ DRIVER_MODULE()
◆ MODULE_DEPEND()
MODULE_DEPEND |
( |
snps_dwc3 |
, |
|
|
xhci |
, |
|
|
1 |
, |
|
|
1 |
, |
|
|
1 |
|
|
) |
| |
◆ snps_dwc3_attach()
static int snps_dwc3_attach |
( |
device_t |
dev | ) |
|
|
static |
◆ snps_dwc3_attach_xhci()
static int snps_dwc3_attach_xhci |
( |
device_t |
dev | ) |
|
|
static |
Definition at line 91 of file dwc3.c.
References usb_bus::bdev, snps_dwc3_softc::bsh, snps_dwc3_softc::bst, snps_dwc3_softc::dev, dev, snps_dwc3_softc::mem_res, rid, snps_dwc3_softc::sc, xhci_softc::sc_bus, xhci_softc::sc_intr_hdl, xhci_softc::sc_io_hdl, xhci_softc::sc_io_res, xhci_softc::sc_io_size, xhci_softc::sc_io_tag, xhci_softc::sc_irq_res, xhci_softc::sc_vendor, xhci_init(), xhci_interrupt(), and xhci_start_controller().
Referenced by snps_dwc3_attach().
◆ snps_dwc3_configure_host()
◆ snps_dwc3_configure_phy()
◆ snps_dwc3_do_quirks()
Definition at line 242 of file dwc3.c.
References DWC3_GUCTL1, DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS, DWC3_GUSB2PHYCFG0, DWC3_GUSB2PHYCFG0_ENBLSLPM, DWC3_GUSB2PHYCFG0_SUSPENDUSB20, DWC3_GUSB2PHYCFG0_U2_FREECLK_EXISTS, DWC3_GUSB3PIPECTL0, DWC3_GUSB3PIPECTL0_DELAYP1TRANS, DWC3_GUSB3PIPECTL0_DISRXDETINP3, DWC3_READ, DWC3_WRITE, snps_dwc3_softc::node, and reg.
Referenced by snps_dwc3_attach().
◆ snps_dwc3_probe()
static int snps_dwc3_probe |
( |
device_t |
dev | ) |
|
|
static |
◆ snps_dwc3_reset()
◆ compat_data
struct ofw_compat_data compat_data[] |
|
static |
◆ snps_dwc3_devclass
devclass_t snps_dwc3_devclass |
|
static |
◆ snps_dwc3_driver
driver_t snps_dwc3_driver |
|
static |
Initial value:= {
"xhci",
}
static device_method_t snps_dwc3_methods[]
Definition at line 344 of file dwc3.c.
◆ snps_dwc3_methods
device_method_t snps_dwc3_methods[] |
|
static |
Initial value:= {
DEVMETHOD_END
}
static int snps_dwc3_probe(device_t dev)
static int snps_dwc3_attach(device_t dev)
Definition at line 336 of file dwc3.c.