2011年8月24日
摘要: USB 总线引出两个重要的链表!一个 USB 总线引出两个重要的链表,一个为 USB 设备链表,一个为 USB 驱动链表。设备链表包含各种系统中的 USB 设备以及这些设备的所有接口,驱动链表包含 USB 设备驱动程序(usb device driver)和 USB 驱动程序(usb driver)。USB 设备驱动程序(usb device driver)和 USB 驱动程序(usb driver)的区别是什么?USB 设备驱动程序包含 USB 设备的一些通用特性,将与所有 USB 设备相匹配。在 USB core 定义了:struct usb_device_driver usb_gener 阅读全文
posted @ 2011-08-24 21:50 image eye 阅读(9660) 评论(1) 推荐(6) 编辑
摘要: 4.2.1 usb_endpoint_is_int_in判断端点是否为中断in类型static inline int usb_endpoint_is_int_in(const struct usb_endpoint_descriptor *epd){return (usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd));}static inline int usb_endpoint_xfer_int(const struct usb_endpoint_descriptor *epd){return ((epd->bm 阅读全文
posted @ 2011-08-24 19:28 image eye 阅读(2165) 评论(0) 推荐(1) 编辑