#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/callout.h>
#include <sys/malloc.h>
#include <sys/priv.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/usb_pci.h>
#include <dev/usb/controller/ohci.h>
#include <dev/usb/controller/ohcireg.h>
#include "usb_if.h"
Go to the source code of this file.
◆ PCI_OHCI_BASE_REG
#define PCI_OHCI_BASE_REG 0x10 |
◆ PCI_OHCI_VENDORID_ACERLABS
#define PCI_OHCI_VENDORID_ACERLABS 0x10b9 |
◆ PCI_OHCI_VENDORID_AMD
#define PCI_OHCI_VENDORID_AMD 0x1022 |
◆ PCI_OHCI_VENDORID_APPLE
#define PCI_OHCI_VENDORID_APPLE 0x106b |
◆ PCI_OHCI_VENDORID_ATI
#define PCI_OHCI_VENDORID_ATI 0x1002 |
◆ PCI_OHCI_VENDORID_CMDTECH
#define PCI_OHCI_VENDORID_CMDTECH 0x1095 |
◆ PCI_OHCI_VENDORID_HYGON
#define PCI_OHCI_VENDORID_HYGON 0x1d94 |
◆ PCI_OHCI_VENDORID_NEC
#define PCI_OHCI_VENDORID_NEC 0x1033 |
◆ PCI_OHCI_VENDORID_NVIDIA
#define PCI_OHCI_VENDORID_NVIDIA 0x12D2 |
◆ PCI_OHCI_VENDORID_NVIDIA2
#define PCI_OHCI_VENDORID_NVIDIA2 0x10DE |
◆ PCI_OHCI_VENDORID_OPTI
#define PCI_OHCI_VENDORID_OPTI 0x1045 |
◆ PCI_OHCI_VENDORID_SIS
#define PCI_OHCI_VENDORID_SIS 0x1039 |
◆ __FBSDID()
◆ DRIVER_MODULE()
◆ MODULE_DEPEND()
MODULE_DEPEND |
( |
ohci |
, |
|
|
usb |
, |
|
|
1 |
, |
|
|
1 |
, |
|
|
1 |
|
|
) |
| |
◆ ohci_pci_attach()
static int ohci_pci_attach |
( |
device_t |
self | ) |
|
|
static |
Definition at line 206 of file ohci_pci.c.
References usb_bus::bdev, usb_bus::devices, usb_bus::devices_max, usb_bus::dma_bits, error, ohci_init(), ohci_interrupt(), ohci_iterate_hw_softc, OHCI_MAX_DEVICES, ohci_pci_detach, ohci_pci_match(), usb_bus::parent, PCI_CBMEM, PCI_OHCI_VENDORID_ACERLABS, PCI_OHCI_VENDORID_AMD, PCI_OHCI_VENDORID_APPLE, PCI_OHCI_VENDORID_ATI, PCI_OHCI_VENDORID_CMDTECH, PCI_OHCI_VENDORID_HYGON, PCI_OHCI_VENDORID_NEC, PCI_OHCI_VENDORID_NVIDIA, PCI_OHCI_VENDORID_NVIDIA2, PCI_OHCI_VENDORID_OPTI, PCI_OHCI_VENDORID_SIS, rid, ohci_softc::sc_bus, ohci_softc::sc_dev, ohci_softc::sc_devices, ohci_softc::sc_intr_hdl, ohci_softc::sc_io_hdl, ohci_softc::sc_io_res, ohci_softc::sc_io_size, ohci_softc::sc_io_tag, ohci_softc::sc_irq_res, ohci_softc::sc_vendor, usb_bus_mem_alloc_all(), and USB_GET_DMA_TAG.
◆ ohci_pci_detach()
static int ohci_pci_detach |
( |
device_t |
self | ) |
|
|
static |
◆ ohci_pci_match()
static const char * ohci_pci_match |
( |
device_t |
self | ) |
|
|
static |
◆ ohci_pci_probe()
static int ohci_pci_probe |
( |
device_t |
self | ) |
|
|
static |
◆ ohci_pci_take_controller()
static int ohci_pci_take_controller |
( |
device_t |
self | ) |
|
|
static |
◆ ohci_devclass
◆ ohci_driver
Initial value:= {
.name = "ohci",
}
static device_method_t ohci_pci_methods[]
Definition at line 378 of file ohci_pci.c.
◆ ohci_pci_attach
device_attach_t ohci_pci_attach |
|
static |
◆ ohci_pci_detach
device_detach_t ohci_pci_detach |
|
static |
◆ ohci_pci_methods
device_method_t ohci_pci_methods[] |
|
static |
Initial value:= {
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD_END
}
static device_detach_t ohci_pci_detach
static usb_take_controller_t ohci_pci_take_controller
static device_probe_t ohci_pci_probe
static device_attach_t ohci_pci_attach
Definition at line 365 of file ohci_pci.c.
◆ ohci_pci_probe
device_probe_t ohci_pci_probe |
|
static |
◆ ohci_pci_take_controller
usb_take_controller_t ohci_pci_take_controller |
|
static |