赞
踩
最近在学习Linux内核中USB相关内容的实现,读完了fudan_abc大神师兄的《USB那些事儿之我是USB Core》,感觉荡气回肠,因为大神不仅教给我们代码的奥义,也教给我们读代码的奥义。于是接下来尝试用学到的“鱼”和“渔”,从USB Core“启下”,自己学习xHCI驱动的代码。
xHCI是USB 3.x的host controller规范,首先进入drivers/usb/host目录浏览一下,其实从文件名就可以知道,跟xHCI关系最密切的必然是xhci.c。保险起见还是看一下KConfig:
config USB_XHCI_HCD
tristate "xHCI HCD (USB 3.0) support"
---help---
The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0
"SuperSpeed" host controller hardware.
To compile this driver as a module, choose M here: the
module will be called xhci-hcd.
if USB_XHCI_HCD
config USB_XHCI_PCI
tristate
depends on PCI
default y
config

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。