FreeBSD kernel usb device Code
dwc_otg_hisi.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <sys/callout.h>
#include <sys/condvar.h>
#include <sys/module.h>
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.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/dwc_otg.h>
#include <dev/usb/controller/dwc_otg_fdt.h>
Include dependency graph for dwc_otg_hisi.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static int hisi_dwc_otg_probe (device_t dev)
 
static int hisi_dwc_otg_attach (device_t dev)
 
 DEFINE_CLASS_1 (hisi_dwcotg, hisi_dwc_otg_driver, hisi_dwc_otg_methods, sizeof(struct dwc_otg_fdt_softc), dwc_otg_driver)
 
 DRIVER_MODULE (hisi_dwcotg, simplebus, hisi_dwc_otg_driver, hisi_dwc_otg_devclass, 0, 0)
 
 MODULE_DEPEND (hisi_dwcotg, usb, 1, 1, 1)
 

Variables

static device_probe_t hisi_dwc_otg_probe
 
static device_attach_t hisi_dwc_otg_attach
 
static device_method_t hisi_dwc_otg_methods []
 
static devclass_t hisi_dwc_otg_devclass
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ DEFINE_CLASS_1()

DEFINE_CLASS_1 ( hisi_dwcotg  ,
hisi_dwc_otg_driver  ,
hisi_dwc_otg_methods  ,
sizeof(struct dwc_otg_fdt_softc ,
dwc_otg_driver   
)

◆ DRIVER_MODULE()

DRIVER_MODULE ( hisi_dwcotg  ,
simplebus  ,
hisi_dwc_otg_driver  ,
hisi_dwc_otg_devclass  ,
,
 
)

◆ hisi_dwc_otg_attach()

static int hisi_dwc_otg_attach ( device_t  dev)
static

◆ hisi_dwc_otg_probe()

static int hisi_dwc_otg_probe ( device_t  dev)
static

Definition at line 56 of file dwc_otg_hisi.c.

References dev.

◆ MODULE_DEPEND()

MODULE_DEPEND ( hisi_dwcotg  ,
usb  ,
,
,
 
)

Variable Documentation

◆ hisi_dwc_otg_attach

device_attach_t hisi_dwc_otg_attach
static

Definition at line 53 of file dwc_otg_hisi.c.

◆ hisi_dwc_otg_devclass

devclass_t hisi_dwc_otg_devclass
static

Definition at line 91 of file dwc_otg_hisi.c.

◆ hisi_dwc_otg_methods

device_method_t hisi_dwc_otg_methods[]
static
Initial value:
= {
DEVMETHOD(device_probe, hisi_dwc_otg_probe),
DEVMETHOD(device_attach, hisi_dwc_otg_attach),
DEVMETHOD_END
}
static device_attach_t hisi_dwc_otg_attach
Definition: dwc_otg_hisi.c:53
static device_probe_t hisi_dwc_otg_probe
Definition: dwc_otg_hisi.c:52

Definition at line 83 of file dwc_otg_hisi.c.

◆ hisi_dwc_otg_probe

device_probe_t hisi_dwc_otg_probe
static

Definition at line 52 of file dwc_otg_hisi.c.