summaryrefslogtreecommitdiff
path: root/firmware/usbstack/usb_storage.c (follow)
Commit message (Collapse)AuthorAge
...
* Clean up the way empty transfers are sent in error cases.Frank Gevaerts2008-04-01
| | | | | | | | 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
* Sending an empty data block before sending the FAIL CSW seems to make ↵Frank Gevaerts2008-03-22
| | | | | | 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
* move boosting for usb around a bit, so the cpu is boosted for the entire ↵Frank Gevaerts2008-03-20
| | | | | | 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
* fix SCSI_FORMAT_CAPACITY_FORMATTED_MEDIA flag endianness. Thanks to Martin ↵Frank Gevaerts2008-03-18
| | | | | | Ritter for spotting this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16694 a1c6a512-1295-4272-9138-f99709370657
* Only boost the CPU for large transactions. It would be nice to get rid of ↵Frank Gevaerts2008-03-13
| | | | | | 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
* fix the last warningFrank Gevaerts2008-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16622 a1c6a512-1295-4272-9138-f99709370657
* remember to test a bit more when doing larger changes...Frank Gevaerts2008-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16621 a1c6a512-1295-4272-9138-f99709370657
* make the usb storage driver handle hotswap correctly, and exit the usb ↵Frank Gevaerts2008-03-10
| | | | | | 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
* reorganise the usb stack to provide a clean separation between core and ↵Frank Gevaerts2008-03-06
| | | | | | class drivers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16541 a1c6a512-1295-4272-9138-f99709370657
* Oops. Didn't mean to commit this.Barry Wardell2008-03-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16515 a1c6a512-1295-4272-9138-f99709370657
* Only need to include these for e200.Barry Wardell2008-03-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16514 a1c6a512-1295-4272-9138-f99709370657
* MODE SENSE output data length field has to be the length of the response ↵Frank Gevaerts2008-03-04
| | | | | | excluding the length field. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16508 a1c6a512-1295-4272-9138-f99709370657
* fix endianness bug in MODE SENSE 10 responseFrank Gevaerts2008-03-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16507 a1c6a512-1295-4272-9138-f99709370657
* handle START_STOP_UNIT eject command, to make TEST_UNIT_READY return false ↵Frank Gevaerts2008-03-03
| | | | | | once the OS ejects git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16503 a1c6a512-1295-4272-9138-f99709370657
* mark all drives as DEVICE_REMOVABLE to make mac osx (and some developers) happyFrank Gevaerts2008-03-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16502 a1c6a512-1295-4272-9138-f99709370657
* fix wrong building block_count from read and write commandsFrank Gevaerts2008-03-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16501 a1c6a512-1295-4272-9138-f99709370657
* remove stalls that are optional. This makes osx not crash on disconnectFrank Gevaerts2008-03-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16498 a1c6a512-1295-4272-9138-f99709370657
* Only show the usb screen once a real usb connection is established. In case ↵Frank Gevaerts2008-03-02
| | | | | | 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
* Move all pointers to the transfer buffer area into a union. This makes it ↵Frank Gevaerts2008-02-29
| | | | | | 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
* return real data on MODE_SENSE. This might fix the mac osx problemsFrank Gevaerts2008-02-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16457 a1c6a512-1295-4272-9138-f99709370657
* - some SCSI/UMS fixesFrank Gevaerts2008-02-28
| | | | | | | | - 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
* use get_audio_buffer() to allocate all needed buffer stace for the usb ↵Frank Gevaerts2008-02-27
| | | | | | storage driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16437 a1c6a512-1295-4272-9138-f99709370657
* fix wrong LBA range check with sectorsizes larger than 512 bytesFrank Gevaerts2008-02-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16362 a1c6a512-1295-4272-9138-f99709370657
* Major USB stack improvements. It now works at nearly the maximum speed for a ↵Frank Gevaerts2008-02-20
| | | | | | | | | 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
* Optimise (replace two loops with one) and bug-fix the ProductId string ↵Dave Chapman2008-02-11
| | | | | | 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
* Removed compiler warningBjörn Stenberg2008-02-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16280 a1c6a512-1295-4272-9138-f99709370657
* Major USB fixes by Frank Gevaerts. Still disabled in builds, #define ↵Björn Stenberg2008-02-11
| | | | | | USE_ROCKBOX_USB to test. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16279 a1c6a512-1295-4272-9138-f99709370657
* Fixed memory corruption bug for those testing usb_storage.Björn Stenberg2007-11-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15798 a1c6a512-1295-4272-9138-f99709370657
* New USB stackBjörn Stenberg2007-11-22
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15758 a1c6a512-1295-4272-9138-f99709370657