FreeBSD kernel usb device Code
generic_xhci.c File Reference
#include <sys/cdefs.h>
#include <sys/stdint.h>
#include <sys/stddef.h>
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/types.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <sys/module.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/condvar.h>
#include <sys/sysctl.h>
#include <sys/sx.h>
#include <sys/unistd.h>
#include <sys/priv.h>
#include <sys/rman.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/xhci.h>
#include <dev/usb/controller/xhcireg.h>
#include "generic_xhci.h"
Include dependency graph for generic_xhci.c:

Go to the source code of this file.

Macros

#define IS_DMA_32B   1
 

Functions

 __FBSDID ("$FreeBSD$")
 
int generic_xhci_attach (device_t dev)
 
int generic_xhci_detach (device_t dev)
 

Variables

static device_method_t xhci_methods []
 
driver_t generic_xhci_driver
 

Macro Definition Documentation

◆ IS_DMA_32B

#define IS_DMA_32B   1

Definition at line 66 of file generic_xhci.c.

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ generic_xhci_attach()

◆ generic_xhci_detach()

int generic_xhci_detach ( device_t  dev)

Definition at line 144 of file generic_xhci.c.

References dev, xhci_softc::sc_intr_hdl, xhci_softc::sc_io_res, xhci_softc::sc_irq_res, and xhci_uninit().

Referenced by generic_xhci_attach().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ generic_xhci_driver

driver_t generic_xhci_driver
Initial value:
= {
"xhci",
sizeof(struct xhci_softc),
}
static device_method_t xhci_methods[]
Definition: generic_xhci.c:177

Definition at line 188 of file generic_xhci.c.

◆ xhci_methods

device_method_t xhci_methods[]
static
Initial value:
= {
DEVMETHOD(device_attach, generic_xhci_attach),
DEVMETHOD(device_detach, generic_xhci_detach),
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD_END
}
int generic_xhci_detach(device_t dev)
Definition: generic_xhci.c:144
int generic_xhci_attach(device_t dev)
Definition: generic_xhci.c:69

Definition at line 177 of file generic_xhci.c.