gadget_sdio.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. Introduction
  2. ============
  3. Gadget serial driver is divided into two parts.
  4. 1. f_serial.c : Interacts with USB Gadget Layer
  5. 2. u_serial.c : Interacts with TTY Layer
  6. Gadget sdio driver adds capability to interact with SDIO Layer in
  7. case modem device is inter-connected with sdio interface.
  8. S/W Description
  9. ===============
  10. Gadget SDIO driver is a simple bridge driver between usb serial
  11. gadget and sdio abstraction layer. It registers with sdio
  12. abstraction layer with read/write call backs and provides
  13. USB connect/disconnect call backs usb gadget serial driver.
  14. S/W Control Flow:
  15. =================
  16. Driver maintains two sdio channels, one for data and one for control.
  17. Data pipe is dedicated sdio channel where as control is a muxed channel.
  18. Incase of sdio control pipe, driver registers for control information
  19. chagnes from modem side. Whenever new information is available, it
  20. would queue a interrupt endpoint w/ new info. Laptop can also send the
  21. DTR and RTS information as part of SET Encapsulated command.
  22. Data pipe of sdio channel also has notification mechanism to indicate
  23. the READ/WRITE availability. When READ is available on SDIO pipe,
  24. driver would read the data and hands it over to USB In ept and when
  25. it receives the data from USB driver would queue the same to SDIO
  26. channel(if write buffers are available).