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 <dev/ofw/ofw_bus.h>
#include <dev/ofw/ofw_bus_subr.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>
Go to the source code of this file.
Data Structures | |
struct | ehci_msm_softc |
Macros | |
#define | EHCI_HC_DEVSTR "Qualcomm USB 2.0 controller" |
Functions | |
__FBSDID ("$FreeBSD$") | |
static int | ehci_msm_probe (device_t dev) |
static int | ehci_msm_attach (device_t dev) |
static int | ehci_msm_detach (device_t dev) |
DRIVER_MODULE (ehci_msm, simplebus, ehci_driver, ehci_devclass, 0, 0) | |
MODULE_DEPEND (ehci_msm, usb, 1, 1, 1) | |
Variables | |
static struct resource_spec | ehci_msm_spec [] |
static device_attach_t | ehci_msm_attach |
static device_detach_t | ehci_msm_detach |
static device_method_t | ehci_methods [] |
static driver_t | ehci_driver |
static devclass_t | ehci_devclass |
#define EHCI_HC_DEVSTR "Qualcomm USB 2.0 controller" |
Definition at line 75 of file ehci_msm.c.
__FBSDID | ( | "$FreeBSD$" | ) |
DRIVER_MODULE | ( | ehci_msm | , |
simplebus | , | ||
ehci_driver | , | ||
ehci_devclass | , | ||
0 | , | ||
0 | |||
) |
|
static |
Definition at line 93 of file ehci_msm.c.
References ehci_msm_softc::base, usb_bus::bdev, dev, usb_bus::devices, usb_bus::devices_max, usb_bus::dma_bits, EHCI_HC_DEVSTR, ehci_init(), ehci_interrupt(), ehci_iterate_hw_softc, EHCI_MAX_DEVICES, ehci_msm_detach, ehci_msm_spec, EHCI_SCFLG_DONEINIT, EHCI_SCFLG_DONTRESET, EHCI_SCFLG_NORESTERM, error, usb_bus::parent, ehci_msm_softc::res, 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_size, ehci_softc::sc_io_tag, ehci_softc::sc_vendor, usb_bus_mem_alloc_all(), and USB_GET_DMA_TAG.
|
static |
Definition at line 168 of file ehci_msm.c.
References usb_bus::bdev, dev, 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().
|
static |
Definition at line 81 of file ehci_msm.c.
References dev, and EHCI_HC_DEVSTR.
MODULE_DEPEND | ( | ehci_msm | , |
usb | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
|
static |
Definition at line 227 of file ehci_msm.c.
|
static |
Definition at line 221 of file ehci_msm.c.
|
static |
Definition at line 210 of file ehci_msm.c.
|
static |
Definition at line 77 of file ehci_msm.c.
|
static |
Definition at line 78 of file ehci_msm.c.
Referenced by ehci_msm_attach().
|
static |
Definition at line 68 of file ehci_msm.c.
Referenced by ehci_msm_attach().