FreeBSD kernel usb device Code
generic_ehci.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/rman.h>
#include <sys/condvar.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <machine/bus.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/ehci.h>
#include <dev/usb/controller/ehcireg.h>
#include "generic_ehci.h"
Include dependency graph for generic_ehci.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int generic_ehci_attach (device_t self)
 
int generic_ehci_detach (device_t self)
 

Variables

static device_method_t ehci_methods []
 
driver_t generic_ehci_driver
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ generic_ehci_attach()

◆ generic_ehci_detach()

int generic_ehci_detach ( device_t  self)

Definition at line 138 of file generic_ehci.c.

References ehci_detach(), ehci_iterate_hw_softc, ehci_softc::sc_bus, ehci_softc::sc_intr_hdl, ehci_softc::sc_io_res, ehci_softc::sc_irq_res, and usb_bus_mem_free_all().

Referenced by generic_ehci_attach().

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

Variable Documentation

◆ ehci_methods

device_method_t ehci_methods[]
static
Initial value:
= {
DEVMETHOD(device_attach, generic_ehci_attach),
DEVMETHOD(device_detach, generic_ehci_detach),
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD_END
}
int generic_ehci_attach(device_t self)
Definition: generic_ehci.c:66
int generic_ehci_detach(device_t self)
Definition: generic_ehci.c:138

Definition at line 175 of file generic_ehci.c.

◆ generic_ehci_driver

driver_t generic_ehci_driver
Initial value:
= {
.name = "ehci",
.methods = ehci_methods,
.size = sizeof(ehci_softc_t),
}
struct ehci_softc ehci_softc_t
static device_method_t ehci_methods[]
Definition: generic_ehci.c:175

Definition at line 186 of file generic_ehci.c.