Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#9437 - usb stack reorganisation

Attached to Project: Rockbox
Opened by Frank Gevaerts (fg) - Thursday, 02 October 2008, 01:19 GMT+2
Last edited by Frank Gevaerts (fg) - Saturday, 04 October 2008, 01:31 GMT+2
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

Work-in-progress to reorganise the USB stack so it can handle different USB controllers, like the one in TCC systems.

This patch doesn't actually work yet, and the RAM use goes up by more than 500 bytes, so it's not exactly ready for commit.
   usb-reorg.patch (20.6 KiB)
 firmware/export/usb_drv.h             |    3 -
 firmware/export/usb_core.h            |   11 ++++
 firmware/usbstack/usb_class_driver.h  |    9 +--
 firmware/usbstack/usb_core.c          |   84 ++++++++++++++++++++--------------
 firmware/usbstack/usb_charging_only.h |    2 
 firmware/usbstack/usb_storage.h       |    2 
 firmware/usbstack/usb_serial.c        |   31 ++++++++----
 firmware/usbstack/usb_charging_only.c |    7 +-
 firmware/usbstack/usb_serial.h        |    5 --
 firmware/usbstack/usb_storage.c       |   53 ++++++++++++---------
 firmware/target/arm/usb-drv-arc.c     |   23 +++++++++
 11 files changed, 150 insertions(+), 80 deletions(-)

This task depends upon

Closed by  Frank Gevaerts (fg)
Saturday, 04 October 2008, 01:31 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  The reorganisation is now done
Comment by Vitja Makarov (vitja) - Friday, 03 October 2008, 12:47 GMT+2
Update make request_endpoints() return ep address with direction included.
usb_drv_(recv/send_nonblocking) should check direction. usb-drv-arc should be updated.

ps: patch to usb-serial is also included and shouldn't be applied now.
   usb_request_endpoint.patch (31 KiB)
 firmware/export/usb_drv.h             |    2 
 firmware/export/usb_core.h            |    6 
 firmware/usbstack/usb_class_driver.h  |    9 
 firmware/usbstack/usb_charging_only.h |    2 
 firmware/usbstack/usb_core.c          |   91 ++++++---
 firmware/usbstack/usb_storage.h       |    2 
 firmware/usbstack/usb_serial.c        |  326 +++++++++++++++++++++++-----------
 firmware/usbstack/usb_charging_only.c |    7 
 firmware/usbstack/usb_serial.h        |   10 -
 firmware/usbstack/usb_storage.c       |   60 +++---
 firmware/target/arm/usb-drv-arc.c     |   27 ++
 firmware/usb.c                        |    6 
 12 files changed, 381 insertions(+), 167 deletions(-)

Loading...