diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-03-29 19:56:21 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-03-29 19:56:21 +0000 |
commit | 0ece30a72612bbb8267390bce93076a398c8095f (patch) | |
tree | 2b64d817fed5f37ea4f8c53658d263e6a67bedd8 /firmware/usbstack/usb_storage.c | |
parent | d1af8f879a5ee354bd6360b2669674dfce7cdb37 (diff) | |
download | rockbox-0ece30a72612bbb8267390bce93076a398c8095f.tar.gz rockbox-0ece30a72612bbb8267390bce93076a398c8095f.zip |
Commit FS#10015 - Use chained transfer descriptor to speed up USB transfers on PP and iMX31
(not exactly the same. This one actually works)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20570 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index ca9f150164..195a7c3661 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -46,11 +46,12 @@ #define SECTOR_SIZE 512 -/* We can currently use up to 20k buffer size. More than that requires - * transfer chaining in the driver. Tests on sansa c200 show that the 16k - * limitation causes no more than 2% slowdown. +/* the ARC driver currently supports up to 64k USB transfers. This is + * enough for efficient mass storage support, as commonly host OSes + * don't do larger SCSI transfers anyway, so larger USB transfers + * wouldn't buy us anything. */ -#define BUFFER_SIZE 16384 +#define BUFFER_SIZE 65536 /* bulk-only class specific requests */ #define USB_BULK_RESET_REQUEST 0xff |