FreeBSD kernel usb device Code
generic_xhci_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/xhci.h>
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/extres/phy/phy.h>
#include "generic_xhci.h"
Include dependency graph for generic_xhci_fdt.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static int generic_xhci_fdt_probe (device_t dev)
 
static int generic_xhci_fdt_attach (device_t dev)
 
static int generic_xhci_fdt_detach (device_t dev)
 
 DEFINE_CLASS_1 (xhci, xhci_fdt_driver, xhci_fdt_methods, sizeof(struct xhci_softc), generic_xhci_driver)
 
 DRIVER_MODULE (xhci, simplebus, xhci_fdt_driver, xhci_fdt_devclass, 0, 0)
 
 MODULE_DEPEND (xhci, usb, 1, 1, 1)
 

Variables

static struct ofw_compat_data compat_data []
 
static device_method_t xhci_fdt_methods []
 
static devclass_t xhci_fdt_devclass
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ DEFINE_CLASS_1()

DEFINE_CLASS_1 ( xhci  ,
xhci_fdt_driver  ,
xhci_fdt_methods  ,
sizeof(struct xhci_softc ,
generic_xhci_driver   
)

◆ DRIVER_MODULE()

DRIVER_MODULE ( xhci  ,
simplebus  ,
xhci_fdt_driver  ,
xhci_fdt_devclass  ,
,
 
)

◆ generic_xhci_fdt_attach()

static int generic_xhci_fdt_attach ( device_t  dev)
static

Definition at line 84 of file generic_xhci_fdt.c.

References dev, and generic_xhci_attach.

◆ generic_xhci_fdt_detach()

static int generic_xhci_fdt_detach ( device_t  dev)
static

Definition at line 98 of file generic_xhci_fdt.c.

References dev, and generic_xhci_detach.

◆ generic_xhci_fdt_probe()

static int generic_xhci_fdt_probe ( device_t  dev)
static

Definition at line 69 of file generic_xhci_fdt.c.

References compat_data, dev, and XHCI_HC_DEVSTR.

◆ MODULE_DEPEND()

MODULE_DEPEND ( xhci  ,
usb  ,
,
,
 
)

Variable Documentation

◆ compat_data

struct ofw_compat_data compat_data[]
static
Initial value:
= {
{"marvell,armada-380-xhci", true},
{"marvell,armada3700-xhci", true},
{"marvell,armada-8k-xhci", true},
{"generic-xhci", true},
{NULL, false}
}

Definition at line 60 of file generic_xhci_fdt.c.

Referenced by generic_xhci_fdt_probe().

◆ xhci_fdt_devclass

devclass_t xhci_fdt_devclass
static

Definition at line 127 of file generic_xhci_fdt.c.

◆ xhci_fdt_methods

device_method_t xhci_fdt_methods[]
static
Initial value:
= {
DEVMETHOD(device_probe, generic_xhci_fdt_probe),
DEVMETHOD(device_attach, generic_xhci_fdt_attach),
DEVMETHOD(device_detach, generic_xhci_fdt_detach),
DEVMETHOD_END
}
static int generic_xhci_fdt_detach(device_t dev)
static int generic_xhci_fdt_attach(device_t dev)
static int generic_xhci_fdt_probe(device_t dev)

Definition at line 115 of file generic_xhci_fdt.c.