summaryrefslogtreecommitdiff
path: root/firmware/usbstack
AgeCommit message (Collapse)Author
2008-04-15FS#8898 - Prefix AS3514 registers with AS3514_Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17130 a1c6a512-1295-4272-9138-f99709370657
2008-04-13only reconnect mass storage if there is actually an active usb connection, ↵Frank Gevaerts
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 Gevaerts
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 Gevaerts
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 Gevaerts
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 Gevaerts
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 Gevaerts
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 Gevaerts
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 Gevaerts
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 Gevaerts
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-10make usb_serial work again. Also know as "make sure arrays are allocated at ↵Frank Gevaerts
their correct size" git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16615 a1c6a512-1295-4272-9138-f99709370657
2008-03-06reorganise the usb stack to provide a clean separation between core and ↵Frank Gevaerts
class drivers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16541 a1c6a512-1295-4272-9138-f99709370657
2008-03-04handle interface-specific control requests a bit more cleanlyFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16519 a1c6a512-1295-4272-9138-f99709370657
2008-03-04Oops. Didn't mean to commit this.Barry Wardell
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 Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16514 a1c6a512-1295-4272-9138-f99709370657
2008-03-04present a different USB serial number depending on which USB class drivers ↵Frank Gevaerts
are enabled. This is needed for Windows to correctly detect the device if a different set of drivers is active than on the previous plugin git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16511 a1c6a512-1295-4272-9138-f99709370657
2008-03-04MODE SENSE output data length field has to be the length of the response ↵Frank Gevaerts
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 Gevaerts
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 Gevaerts
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 Gevaerts
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 Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16501 a1c6a512-1295-4272-9138-f99709370657
2008-03-03remove usb_benchmark. Its usefulness is extremely limited, and the usb stack ↵Frank Gevaerts
around it is moving fast, so it's likely to suffer from bit rot very soon. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16500 a1c6a512-1295-4272-9138-f99709370657
2008-03-03only send a Charging Only interface if nothing else is sentFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16499 a1c6a512-1295-4272-9138-f99709370657
2008-03-03remove stalls that are optional. This makes osx not crash on disconnectFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16498 a1c6a512-1295-4272-9138-f99709370657
2008-03-02extra input checkingFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16493 a1c6a512-1295-4272-9138-f99709370657
2008-03-02remove a reundant MIN(), and reduce the buffer. We really don't need 16k for ↵Frank Gevaerts
this. It seems to work reliably at full speed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16491 a1c6a512-1295-4272-9138-f99709370657
2008-03-02add some #ifdefs to gt rid of some unused variable warnings (and their RAM use)Frank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16487 a1c6a512-1295-4272-9138-f99709370657
2008-03-02implement logf over usb-serial. Needs USB_SERIAL defined in usb_core.h to ↵Frank Gevaerts
work, and needs to be enabled in the debug menu. It stops sending data after a while for unknown reasons. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16486 a1c6a512-1295-4272-9138-f99709370657
2008-03-02update the bNumInterfaces field in the configuration descriptor correctlyFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16485 a1c6a512-1295-4272-9138-f99709370657
2008-03-02Only show the usb screen once a real usb connection is established. In case ↵Frank Gevaerts
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-03-01only initialize class drivers that are actually enabled. This is needed for ↵Frank Gevaerts
usb-storage because it grabs the audio buffer during usb_storage_init(), which stops playback. It's probably also the right thing to do for other drivers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16467 a1c6a512-1295-4272-9138-f99709370657
2008-02-29Move all pointers to the transfer buffer area into a union. This makes it ↵Frank Gevaerts
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 Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16457 a1c6a512-1295-4272-9138-f99709370657
2008-02-29fix alignment and packed-ness of USB structsFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16455 a1c6a512-1295-4272-9138-f99709370657
2008-02-28- some SCSI/UMS fixesFrank Gevaerts
- 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-27make the ipod serial number 24 characters long. This makes the Vista BSOD go ↵Frank Gevaerts
away git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16438 a1c6a512-1295-4272-9138-f99709370657
2008-02-27use get_audio_buffer() to allocate all needed buffer stace for the usb ↵Frank Gevaerts
storage driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16437 a1c6a512-1295-4272-9138-f99709370657
2008-02-27move the usb_core thread functionality to the main usb threadFrank Gevaerts
fix button-detection so screenshots and charge-only mode work without enabling UMS firewire detection is now handled separately from usb detection increase the usb thread priority while an UMS connection is active git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16435 a1c6a512-1295-4272-9138-f99709370657
2008-02-26added support for USB port test modes, which are (a) required by the spec, ↵Frank Gevaerts
and (b) needed for electrical (i.e. signal quality) testing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16427 a1c6a512-1295-4272-9138-f99709370657
2008-02-25some progress towards software-selectability of usb class drivers.Frank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16422 a1c6a512-1295-4272-9138-f99709370657
2008-02-25only set the serial descriptor onceFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16421 a1c6a512-1295-4272-9138-f99709370657
2008-02-25Don't send a serial number id USE_ROCKBOX_USB. There is something about the ↵Frank Gevaerts
current ipod serial number that causes Vista BSODs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16416 a1c6a512-1295-4272-9138-f99709370657
2008-02-24report usb 1.1 compliance if USE_HIGH_SPEED is not set. This should avoid ↵Frank Gevaerts
Windows telling the user to plug in the device into a high speed port git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16406 a1c6a512-1295-4272-9138-f99709370657
2008-02-23Identify info endianness is already handled in the ATA driver.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16380 a1c6a512-1295-4272-9138-f99709370657
2008-02-22- Attempt to generate the usb serial number from the disk serial numberFrank Gevaerts
- serial number length is again target dependent git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16374 a1c6a512-1295-4272-9138-f99709370657
2008-02-22fix usb string descriptorsFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16372 a1c6a512-1295-4272-9138-f99709370657
2008-02-22Improve usb descriptor handling. This should fix any cache and/or alignment ↵Frank Gevaerts
related problem. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16371 a1c6a512-1295-4272-9138-f99709370657
2008-02-21fix wrong LBA range check with sectorsizes larger than 512 bytesFrank Gevaerts
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 Gevaerts
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 Chapman
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