mirror of
https://e.coding.net/weidongshan/linux/doc_and_source_for_drivers.git
synced 2025-11-30 12:01:02 +08:00
tmp update
This commit is contained in:
@@ -60,6 +60,23 @@ usb_gadget和usb_composite_dev必定一起出现:usb_gadget描述的是硬件
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
### 1.1 结构体
|
||||
|
||||
```c
|
||||
struct usb_udc - describes one usb device controller
|
||||
struct usb_gadget - represents a usb slave device
|
||||
struct usb_gadget_driver - driver for usb 'slave' devices
|
||||
struct usb_composite_device - represents one composite usb gadget
|
||||
struct usb_function - describes one function of a configuration
|
||||
struct usb_composite_driver - groups configurations into a gadget
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### 1.2 UDC驱动分析
|
||||
|
||||
```shell
|
||||
@@ -159,7 +176,7 @@ ci_irq
|
||||
|
||||
isr_setup_packet_handler对于ep0的处理,
|
||||
|
||||
有很多并不需要传递到最上层的composite驱动,
|
||||
有很多x消息并不需要传递到最上层的composite驱动,
|
||||
|
||||
这个函数的前面代码就自己处理了这些setup包,
|
||||
|
||||
@@ -343,8 +360,6 @@ delegate:
|
||||
|
||||
|
||||
|
||||
####
|
||||
|
||||
|
||||
|
||||
#### 1.2.4 EP什么时候使能
|
||||
|
||||
BIN
IMX6ULL/doc_pic/12_USB/11_Gadget驱动程序框架.tif
Normal file
BIN
IMX6ULL/doc_pic/12_USB/11_Gadget驱动程序框架.tif
Normal file
Binary file not shown.
Reference in New Issue
Block a user