FreeBSD kernel usb device Code
generic_ehci_fdt.c File Reference
#include <sys/cdefs.h>
#include "opt_bus.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/condvar.h>
#include <sys/kernel.h>
#include <sys/module.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/ehci.h>
#include <dev/fdt/fdt_common.h>
#include <dev/ofw/openfirm.h>
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/extres/clk/clk.h>
#include <dev/extres/hwreset/hwreset.h>
#include <dev/extres/phy/phy.h>
#include <dev/extres/phy/phy_usb.h>
#include "generic_ehci.h"
Include dependency graph for generic_ehci_fdt.c:

Go to the source code of this file.

Data Structures

struct  clk_list
 
struct  hwrst_list
 
struct  phy_list
 
struct  generic_ehci_fdt_softc
 

Functions

 __FBSDID ("$FreeBSD$")
 
static int generic_ehci_fdt_probe (device_t self)
 
static int generic_ehci_fdt_attach (device_t dev)
 
static int generic_ehci_fdt_detach (device_t dev)
 
 DEFINE_CLASS_1 (ehci, ehci_fdt_driver, ehci_fdt_methods, sizeof(ehci_softc_t), generic_ehci_driver)
 
 DRIVER_MODULE (generic_ehci, simplebus, ehci_fdt_driver, ehci_fdt_devclass, 0, 0)
 
 MODULE_DEPEND (generic_ehci, usb, 1, 1, 1)
 

Variables

static device_probe_t generic_ehci_fdt_probe
 
static device_attach_t generic_ehci_fdt_attach
 
static device_detach_t generic_ehci_fdt_detach
 
static device_method_t ehci_fdt_methods []
 
static devclass_t ehci_fdt_devclass
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ DEFINE_CLASS_1()

DEFINE_CLASS_1 ( ehci  ,
ehci_fdt_driver  ,
ehci_fdt_methods  ,
sizeof(ehci_softc_t ,
generic_ehci_driver   
)

◆ DRIVER_MODULE()

DRIVER_MODULE ( generic_ehci  ,
simplebus  ,
ehci_fdt_driver  ,
ehci_fdt_devclass  ,
,
 
)

◆ generic_ehci_fdt_attach()

static int generic_ehci_fdt_attach ( device_t  dev)
static

Definition at line 108 of file generic_ehci_fdt.c.

References dev, error, generic_ehci_attach, generic_ehci_fdt_detach, and next.

◆ generic_ehci_fdt_detach()

static int generic_ehci_fdt_detach ( device_t  dev)
static

Definition at line 179 of file generic_ehci_fdt.c.

References dev, generic_ehci_detach, and next.

◆ generic_ehci_fdt_probe()

static int generic_ehci_fdt_probe ( device_t  self)
static

Definition at line 94 of file generic_ehci_fdt.c.

◆ MODULE_DEPEND()

MODULE_DEPEND ( generic_ehci  ,
usb  ,
,
,
 
)

Variable Documentation

◆ ehci_fdt_devclass

devclass_t ehci_fdt_devclass
static

Definition at line 240 of file generic_ehci_fdt.c.

◆ ehci_fdt_methods

device_method_t ehci_fdt_methods[]
static
Initial value:
= {
DEVMETHOD(device_probe, generic_ehci_fdt_probe),
DEVMETHOD(device_attach, generic_ehci_fdt_attach),
DEVMETHOD(device_detach, generic_ehci_fdt_detach),
DEVMETHOD_END
}
static device_detach_t generic_ehci_fdt_detach
static device_probe_t generic_ehci_fdt_probe
static device_attach_t generic_ehci_fdt_attach

Definition at line 228 of file generic_ehci_fdt.c.

◆ generic_ehci_fdt_attach

device_attach_t generic_ehci_fdt_attach
static

Definition at line 90 of file generic_ehci_fdt.c.

◆ generic_ehci_fdt_detach

device_detach_t generic_ehci_fdt_detach
static

Definition at line 91 of file generic_ehci_fdt.c.

Referenced by generic_ehci_fdt_attach().

◆ generic_ehci_fdt_probe

device_probe_t generic_ehci_fdt_probe
static

Definition at line 89 of file generic_ehci_fdt.c.