概念性的东西肯定是LDD3写的最好,我就不赘述了。 1)pci configuration space. (ldd3 第12章) 由于EHCI是一个PCI设备,这里用于系统组件枚举和PCI的电源管理。 以x86为例,读取PCI总线套路是这样的。我们要读取PCI总线上地址为add,长度为4个字节的内容。 outl(add, 0xcf8);// 先把add的out到地址为0xcf8的地...
概念性的东西肯定是LDD3写的最好,我就不赘述了。 1)pci configuration space. (ldd3 第12章) 由于EHCI是一个PCI设备,这里用于系统组件枚举和PCI的电源管理。 以x86为例,读取PCI总线套路是这样的。我们要读取PCI总线上地址为add,长度为4个字节的内容。 outl(add, 0xcf8);// 先把add的out到地址为0xcf8的地...
.suspend = usb_hcd_pci_suspend, .resume = usb_hcd_pci_resume, #endif .shutdown = usb_hcd_pci_shutdown, }; ehci_hcd_init 很简单就是调用了pci_register_driver(),就是__pci_register_driver()。 int __pci_register_driver(struct pci_driver *drv, struct module *owner, const char *mod_n...
AI检测代码解析 staticstructplatform_device*nuc970_public_dev[]__initdata={ &&nuc970_device_ehci, }; 1. 2. 3. AI检测代码解析 staticu64nuc970_device_usb_ehci_dmamask=0xffffffffUL; staticstructplatform_devicenuc970_device_ehci={ .name="nuc970-ehci",//平台设备名,用来与设备驱动匹配的 .id...
EhcDriverBindingStart开始---打开PciIo协议,启用USB主控制器---打开USB主控制器上的设备路径协议---保存原始的PCI属性---获取Pci设备class code---确定设备是否为UHCI或OHCI主机控制器。如果是,则找出配套usb ehci主机控制器,并在UHCI或OHCI驱动程序连接到UHCI或OHCI主机控制器之前,强制将ehci驱动程序连接到该控制...
Linux那些事儿之我是EHCI主机控制器
#define CONFIG_USB_EHCI_PCI #define CONFIG_EHCI_HCD_INIT_AFTER_RESET #define CONFIG_PCI_EHCI_DEVICE 0 #endif 1 change: 0 additions & 1 deletion 1 include/configs/MPC8572DS.h Original file line numberDiff line numberDiff line change @@ -545,7 +545,6 @@ */ #ifdef CONFIG_USB_EHCI_...
The USB Stress Test requires two platform devices. One device acts as the USB host under test, while the second acts as a USB function device. The USB function device that has been tested is a CEPC with a NetChip NET2280 USB function PCI card, but can be any platform supporting USB fun...
/* These routines rely on the bus (pci, platform, etc)* to handle powerdown and wakeup, and currently also on* transceivers that don't need any software attention to set up* the right sort of wakeup.** They're also used for turning on/off the port when doing OTG.*/...
#include <pci.h> #include <usb.h> #include <asm/io.h> #include <usb/ehci-fsl.h> #include <usb/ehci-ci.h> #include <hwconfig.h> #include <fsl_usb.h> #include <fdt_support.h> 2 changes: 1 addition & 1 deletion 2 drivers/usb/host/ehci-mpc512x.c Original file line numberDi...