Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | Introduction |
| 2 | ============ |
| 3 | |
| 4 | Gadget serial driver is divided into two parts. |
| 5 | 1. f_serial.c : Interacts with USB Gadget Layer |
| 6 | 2. u_serial.c : Interacts with TTY Layer |
| 7 | |
| 8 | Gadget smd driver adds capability to interact with smd layer in |
| 9 | case modem device is inter-connected with smd interface. |
| 10 | |
| 11 | S/W Description |
| 12 | =============== |
| 13 | Gadget smd driver is a simple bridge driver between usb serial |
| 14 | gadget and smd abstraction layer. It registers with smd |
| 15 | abstraction layer with notification call back and provides |
| 16 | USB connect/disconnect call backs usb gadget serial driver. |
| 17 | |
| 18 | |
| 19 | S/W Control Flow: |
| 20 | ================= |
| 21 | USB SMD driver registers w/ SMD driver and provides notification |
| 22 | call back. SMD Driver calls this call back whenever DATA is available |
| 23 | to read, buffer is available to write or modem control signals changed. |
| 24 | Upon receiving notification from SMD driver, USB driver appropriately |
| 25 | schedules read/write works. In case of control singals, USB driver |
| 26 | notifies gadget component with changed control information. |
| 27 | |