summaryrefslogtreecommitdiffstats
path: root/firmware/usbstack/usb_storage.c
AgeCommit message (Collapse)AuthorFilesLines
2008-08-21Use cached memory for ata_write_sectors(). This seems to finally fix FS#8663Frank Gevaerts1-6/+11
Thanks to Martin Ritter for finding out that the uncached accesses were somehow causing this SERIALIZE_WRITES can probably be removed, but this requires a bit more testing first git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18327 a1c6a512-1295-4272-9138-f99709370657
2008-07-09define SERIALIZE_WRITES for all HAVE_ATA_SD, not just the sansasFrank Gevaerts1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18001 a1c6a512-1295-4272-9138-f99709370657
2008-07-09Don't do overlapping USB transactions and SD writes. This seems to avoid FS#8663Frank Gevaerts1-1/+19
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17997 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg1-2/+4
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-05-13Preparing for the Philips SA9200 part 2. Since the SA9200 doesn't have a ↵Mark Arigo1-1/+1
microsd card (no hotswap), use HAVE_ATA_SD for the Sansa flash driver so we don't rely on HAVE_HOTSWAP in some places. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17488 a1c6a512-1295-4272-9138-f99709370657
2008-05-06typo fixes (; instead of , at the end of two assignments) (same as r17398 ↵Frank Gevaerts1-2/+2
for usb_serial. lesson learned : always check if there are similar bugs elsewhere) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17400 a1c6a512-1295-4272-9138-f99709370657
2008-05-05Convert the whole codebase to UTF-8, except docs/COMMITTERS and ↵Nicolas Pennequin1-1/+1
tools/creative.c, which need checking. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17369 a1c6a512-1295-4272-9138-f99709370657
2008-05-03Added missing usb #includes to usb source files.Bertrik Sikken1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17309 a1c6a512-1295-4272-9138-f99709370657
2008-04-26- change the usb class driver framework to allow for device classes with ↵Frank Gevaerts1-11/+18
more than one interface or more than one endpoint pair - move the charging-only dummy driver out of usb_core git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17252 a1c6a512-1295-4272-9138-f99709370657
2008-04-24Commit whole Creative Zen Vision:M target tree + all related firmware/ Maurus Cuelenaere1-1/+1
changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
2008-04-18UMS for the Gigabeat S. Bootloader USB mode. Has a couple quirks 1) First ↵Michael Sevakis1-5/+16
plug has problems if cold. Replug if it doesn't connect or not at high speed 2) Linux doesn't like the odd bootable flag value used in the partitions so it won't mount but Windows works. Fix minor OTG driver bugs and clean up device memory handling. Generic name for ARC controller driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17154 a1c6a512-1295-4272-9138-f99709370657
2008-04-13only reconnect mass storage if there is actually an active usb connection, ↵Frank Gevaerts1-3/+6
with mass storage enabled git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17098 a1c6a512-1295-4272-9138-f99709370657
2008-04-01Clean up the way empty transfers are sent in error cases.Frank Gevaerts1-21/+23
correctly zero out all data that gets sent to the host I'm just committing this. The actual work was done by Martin Ritter (thanks) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16922 a1c6a512-1295-4272-9138-f99709370657
2008-03-22Sending an empty data block before sending the FAIL CSW seems to make ↵Frank Gevaerts1-0/+14
Windows happier if a device is not present (e.g. an empty sd card slot) (fix proposed by Martin Ritter) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16750 a1c6a512-1295-4272-9138-f99709370657
2008-03-20move boosting for usb around a bit, so the cpu is boosted for the entire ↵Frank Gevaerts1-3/+0
duration of actual use of storage. On some setups just boosting for the actual transfers doesn't seem to work git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16726 a1c6a512-1295-4272-9138-f99709370657
2008-03-18fix SCSI_FORMAT_CAPACITY_FORMATTED_MEDIA flag endianness. Thanks to Martin ↵Frank Gevaerts1-1/+1
Ritter for spotting this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16694 a1c6a512-1295-4272-9138-f99709370657
2008-03-13Only boost the CPU for large transactions. It would be nice to get rid of ↵Frank Gevaerts1-0/+3
boosting for USB altogehter, but it doesn't seem to work then. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16656 a1c6a512-1295-4272-9138-f99709370657
2008-03-10fix the last warningFrank Gevaerts1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16622 a1c6a512-1295-4272-9138-f99709370657
2008-03-10remember to test a bit more when doing larger changes...Frank Gevaerts1-4/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16621 a1c6a512-1295-4272-9138-f99709370657
2008-03-10make the usb storage driver handle hotswap correctly, and exit the usb ↵Frank Gevaerts1-16/+70
screen once all drives are "ejected" (either as a command from the OS or physically) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16617 a1c6a512-1295-4272-9138-f99709370657
2008-03-06reorganise the usb stack to provide a clean separation between core and ↵Frank Gevaerts1-131/+233
class drivers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16541 a1c6a512-1295-4272-9138-f99709370657
2008-03-04Oops. Didn't mean to commit this.Barry Wardell1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16515 a1c6a512-1295-4272-9138-f99709370657
2008-03-04Only need to include these for e200.Barry Wardell1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16514 a1c6a512-1295-4272-9138-f99709370657
2008-03-04MODE SENSE output data length field has to be the length of the response ↵Frank Gevaerts1-2/+2
excluding the length field. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16508 a1c6a512-1295-4272-9138-f99709370657
2008-03-04fix endianness bug in MODE SENSE 10 responseFrank Gevaerts1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16507 a1c6a512-1295-4272-9138-f99709370657
2008-03-03handle START_STOP_UNIT eject command, to make TEST_UNIT_READY return false ↵Frank Gevaerts1-0/+15
once the OS ejects git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16503 a1c6a512-1295-4272-9138-f99709370657
2008-03-03mark all drives as DEVICE_REMOVABLE to make mac osx (and some developers) happyFrank Gevaerts1-1/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16502 a1c6a512-1295-4272-9138-f99709370657
2008-03-03fix wrong building block_count from read and write commandsFrank Gevaerts1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16501 a1c6a512-1295-4272-9138-f99709370657
2008-03-03remove stalls that are optional. This makes osx not crash on disconnectFrank Gevaerts1-10/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16498 a1c6a512-1295-4272-9138-f99709370657
2008-03-02Only show the usb screen once a real usb connection is established. In case ↵Frank Gevaerts1-6/+36
other threads are slow in acknowledging the SYS_USB_CONNECTED message, tell the OS that the disk is not ready yet (the OS interprets this as "spinning up") git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16471 a1c6a512-1295-4272-9138-f99709370657
2008-02-29Move all pointers to the transfer buffer area into a union. This makes it ↵Frank Gevaerts1-111/+104
clear that they are meant to point to the same data, and should make code and RAM usage slightly smaller git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16458 a1c6a512-1295-4272-9138-f99709370657
2008-02-29return real data on MODE_SENSE. This might fix the mac osx problemsFrank Gevaerts1-12/+55
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16457 a1c6a512-1295-4272-9138-f99709370657
2008-02-28- some SCSI/UMS fixesFrank Gevaerts1-67/+97
- don't boost the CPU any more. The USB driver does that - only mark the SD-card slot on sansas removable (decision on what is the right thing to do is still pending) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16448 a1c6a512-1295-4272-9138-f99709370657
2008-02-27use get_audio_buffer() to allocate all needed buffer stace for the usb ↵Frank Gevaerts1-28/+15
storage driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16437 a1c6a512-1295-4272-9138-f99709370657
2008-02-21fix wrong LBA range check with sectorsizes larger than 512 bytesFrank Gevaerts1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16362 a1c6a512-1295-4272-9138-f99709370657
2008-02-20Major USB stack improvements. It now works at nearly the maximum speed for a ↵Frank Gevaerts1-168/+436
full speed connection, and does seem stable. Still not enabled by default, #define USE_ROCKBOX_USB is still required to enable it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16360 a1c6a512-1295-4272-9138-f99709370657
2008-02-11Optimise (replace two loops with one) and bug-fix the ProductId string ↵Dave Chapman1-7/+3
returned by SCSI Inquiry - the previous code was skipping 4 shorts (the first 8 chars) of the ProductId. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16285 a1c6a512-1295-4272-9138-f99709370657
2008-02-11Removed compiler warningBjörn Stenberg1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16280 a1c6a512-1295-4272-9138-f99709370657
2008-02-11Major USB fixes by Frank Gevaerts. Still disabled in builds, #define ↵Björn Stenberg1-66/+250
USE_ROCKBOX_USB to test. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16279 a1c6a512-1295-4272-9138-f99709370657
2007-11-24Fixed memory corruption bug for those testing usb_storage.Björn Stenberg1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15798 a1c6a512-1295-4272-9138-f99709370657
2007-11-22New USB stackBjörn Stenberg1-0/+331
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15758 a1c6a512-1295-4272-9138-f99709370657