参见:http://lxr.linux.no/source/drivers/usb/gadget/dummy_hcd.c
25 /*
26 * This exposes a device side "USB gadget" API, driven by requests to a
27 * Linux-USB host controller driver. USB traffic is simulated; there's
28 * no need for USB hardware. Use this with two other drivers:
29 *
30 * - Gadget driver, responding to requests (slave);
31 * - Host-side device driver, as already familiar in Linux.
32 *
33 * Having this all in one kernel can help some stages of development,
34 * bypassing some hardware (and driver) issues. UML could help too.
35 */
这段注释说得很清楚,这是用来模拟USB传输的一个驱动,它同时起Host Controler和模拟Gadget设备的作用。
至于Gadget,它是用在一些嵌入式设备的OTG控制器上的。
今天晚了,明天继续
No comments:
Post a Comment