FreeBSD kernel usb device Code
|
#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"
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 |
__FBSDID | ( | "$FreeBSD$" | ) |
int generic_ehci_attach | ( | device_t | self | ) |
Definition at line 66 of file generic_ehci.c.
References usb_bus::bdev, usb_bus::devices, usb_bus::devices_max, usb_bus::dma_bits, ehci_init(), ehci_interrupt(), ehci_iterate_hw_softc, EHCI_MAX_DEVICES, EHCI_SCFLG_DONTRESET, error, generic_ehci_detach(), usb_bus::parent, rid, ehci_softc::sc_bus, ehci_softc::sc_devices, ehci_softc::sc_flags, ehci_softc::sc_intr_hdl, ehci_softc::sc_io_hdl, ehci_softc::sc_io_res, ehci_softc::sc_io_size, ehci_softc::sc_io_tag, ehci_softc::sc_irq_res, ehci_softc::sc_vendor, usb_bus_mem_alloc_all(), USB_GET_DMA_TAG, USB_REV_2_0, and usb_bus::usbrev.
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().
|
static |
Definition at line 175 of file generic_ehci.c.
driver_t generic_ehci_driver |
Definition at line 186 of file generic_ehci.c.