本文将详细讲述2.6.22下的一个usb设备插上linux系统的PC后是如何一步一步调到我们的usb设备驱动的probe函数的, 我们知道我们的usb驱动的probe函数中的一个参数是interface结构, 因此一般来说, 一个usb设备中的任何一个接口都应该有对应的一个驱动程序,当然也有例外(如cdc-acm). 我们知道usb设备都是通过插入上层HUB的一个Port来连入系统并进而被系统发现的, 当usb设备插入一个HUB时,该HUB的那个port的状态就会改变, 从而系统就会...
by vector_leizi - Linux文档专区 - 2009-05-08 14:28:40 阅读(1223) 回复(0)
from http://www.linux-ren.org/modules/newbb/viewtopic.php?topic_id=1611&forum=21&PHPSESSID=a8af14f116834e93a3bee3340f039366 linux boot time is an ongoing sore point - there are few users who wish that their systems would take longer to come up. There are many things which happen during the boot process, and many possible ways of speeding things up. Most of the opportunities for improving boo...
linux设备驱动归纳总结(八):2.总线、设备和驱动的关系
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
浅析linux 2.6.23 bus总线模型下match()和probe()函数调用顺序 文章来源:http://gliethttp.cublog.cn 将driver驱动内嵌的kobj对象添加到管理该driver的总线层次管理集合kset所管理的链表中, 然后调用driver_attach()函数,遍历驱动所在bus总线的设备链表klist_devices检测该driver 驱动程序是否可以为bus总线上未获得驱动的device设备提供驱动,进一步通过__driver_attach() 函数检测设备是否可以被该driver驱动管理. __driver_atta...
本帖最后由 zd零 于 2010-12-28 19:23 编辑 在 linux 2.6.12 内核中 在 UHCI 中执行了一系列对 root hub 的初始化后 最终会调用 hub_probe() 函数 问题就在这:hub_probe() 函数第一个参数 struct usb_interface *intf 是通过一个宏而得到的![code]to_usb_interface(dev) #define to_usb_interface(d) container_of(d, struct usb_interface, dev)[/code]dev 为 struct usb_device 结构中 struct device dev 的指针!而此处是...
http://blog.csdn.net/lm_tom/archive/2007/09/09/1778031.aspx understanding linux usb ehci device driver(1) [email=lm_tom@163.com]lm_tom@163.com[/email] 大概一年多前,曾经在linux下调试过VIA的一款ehci host controller,当时受项目进度以及知识积累所限,未能深入理解EHCI以及linux下的软件层面实现. 随着个人usb技术的不断积累, 近期在工作之余, 写了一些对EHCI以及linux下实现的理解. 选择EHCI作为一个...
http://blog.csdn.net/lm_tom/archive/2007/09/22/1795931.aspx understanding linux usb ehci device driver(2) [email=lm_tom@163.com]lm_tom@163.com[/email] 2. linux ehci device driver(ehci hcd) 2.1. linux usb subsystem arch overview(host) 2.2. ehci_hcd 2.3. ehci 实现的接口 2.3.1. ehci_pci_setup() (hc_driver->reset) 2.3.2. ehci_run() (hc_driver->start) 2.3.3. ehci_stop() (hc_driver->stop) 2.3.4. e...
请问: S3C2410A --- usb device < ========================> pc (windows) 通过usb 相接 实 现数据通信。 我现在不知怎么下手。 我是应在arm 里写 usb device driver 。还是怎么办。 请大侠指导!!!!!!!!!!
本人最近在调试9200的usb device,想把usb口当做一通信口使用(和pc机usb口相连后,与pc互通数据),使用usb Gadget Drivers ,有没有哪位大侠把它调试出来。? 我的信息是: linux内核的启动信息是: udc: at91_udc version 3 May 2006 gs_bind: Gadget Serial v2.2 bound gs_module_init: Gadget Serial v2.2 loaded 这说明底层驱动已经配置好。不知是否正确。 PC机上的驱动是根...