summaryrefslogtreecommitdiff
path: root/firmware/usbstack (follow)
Commit message (Collapse)AuthorAge
* fix send_command_result() size checking for the SCSI_REQUEST_SENSE case ↵Frank Gevaerts2009-05-11
| | | | | | (thanks to Tomer Shalev, FS#10203) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20914 a1c6a512-1295-4272-9138-f99709370657
* Disable usage of USB serial descriptor when no unique one is availableMaurus Cuelenaere2009-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20761 a1c6a512-1295-4272-9138-f99709370657
* Add preliminary HID driver. It doesn't do anything yet, but that should ↵Frank Gevaerts2009-04-19
| | | | | | change soon (FS#10116 by Tomer Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20750 a1c6a512-1295-4272-9138-f99709370657
* reorganise usb_core.c a bit, to make the code more readable and more ↵Frank Gevaerts2009-04-19
| | | | | | maintainable (FS#10150 by Tomer Shalev)) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20748 a1c6a512-1295-4272-9138-f99709370657
* simplify and cleanup usb_serial.c (FS#10149 by Tomer Shalev)Frank Gevaerts2009-04-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20746 a1c6a512-1295-4272-9138-f99709370657
* USB related Cosmetics, whitespace and readability fixes (FS#10147 by Tomer ↵Frank Gevaerts2009-04-18
| | | | | | Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20737 a1c6a512-1295-4272-9138-f99709370657
* Allow class drivers to reuse the core data buffer for control transfers. ↵Frank Gevaerts2009-04-18
| | | | | | This doesn't make much difference right now, but it should keep HID memory usage lower (once HID is ready) (FS#10146 by Tomer Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20735 a1c6a512-1295-4272-9138-f99709370657
* Add a PACK_DESCRIPTOR macro to make the class drivers a bit more readable ↵Frank Gevaerts2009-04-18
| | | | | | (FS#10145 by Tomer Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20733 a1c6a512-1295-4272-9138-f99709370657
* Fix some whitespace issues (including tabs that slipped in somehow) ↵Frank Gevaerts2009-04-18
| | | | | | (FS#10144 by Tomer Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20731 a1c6a512-1295-4272-9138-f99709370657
* Fix unintentional usage of relatively unknown C features (FS#10119, found by ↵Frank Gevaerts2009-04-11
| | | | | | Tomer Shalev) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20685 a1c6a512-1295-4272-9138-f99709370657
* Revert r20617 for nowMaurus Cuelenaere2009-04-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20624 a1c6a512-1295-4272-9138-f99709370657
* Don't leave LOGF_ENABLE enabled...Maurus Cuelenaere2009-04-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20619 a1c6a512-1295-4272-9138-f99709370657
* Use the audio buffer in USB storage for ISP1583-having targetsMaurus Cuelenaere2009-04-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20617 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#10015 - Use chained transfer descriptor to speed up USB transfers ↵Frank Gevaerts2009-03-29
| | | | | | | | | | 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
* Correct Björn's name in various file headers.Nicolas Pennequin2009-03-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20491 a1c6a512-1295-4272-9138-f99709370657
* Don't swamp the system with broadcast messages that nobody is listening to ↵Frank Gevaerts2009-03-11
| | | | | | | | | | yet anyway. Also, these messages should probably be done in a different way, like an update every second (or maybe half-second) This should fix FS#10006 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20294 a1c6a512-1295-4272-9138-f99709370657
* Allow the user to leave MSC mode by pressing the USB POWER button (the one ↵Frank Gevaerts2009-03-08
| | | | | | | | | | that's used to go to usb power mode on plugin) when the host OS hasn't locked the device. This only works for devices that expose a removable device, so for now the gigabeat S is out of luck. (slightly modified from FS#9993) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20244 a1c6a512-1295-4272-9138-f99709370657
* send the USB broadcast events at a less busy timeFrank Gevaerts2009-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20142 a1c6a512-1295-4272-9138-f99709370657
* Also broadcast transfer information for use by fancy USB screensFrank Gevaerts2009-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20140 a1c6a512-1295-4272-9138-f99709370657
* Leave "usb mode" when all LUNs are ejected againFrank Gevaerts2009-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20139 a1c6a512-1295-4272-9138-f99709370657
* Adds the possibility to show nice "do not disconnect" screens/icons on the ↵Frank Gevaerts2009-02-28
| | | | | | USB screen. A proof-of-concept for the actual screen is at FS#9969 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20138 a1c6a512-1295-4272-9138-f99709370657
* remove SERIALIZE_WRITES. The reason for it (the SD bug) is gone, so there's ↵Frank Gevaerts2009-02-24
| | | | | | no point in keeping this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20098 a1c6a512-1295-4272-9138-f99709370657
* Commit my patch from FS#9940 - fix the invalid active flags in the Gigabeat ↵Dave Chapman2009-02-22
| | | | | | S MBR on the fly in the UMS driver. It is hypothosized that actually changing these on the disk will make the OF more likely to reformat the data partition during recovery - but that is not confirmed. So we play it safe. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20085 a1c6a512-1295-4272-9138-f99709370657
* small usb serial fixes. This seems to work fine on imx31, but for some ↵Frank Gevaerts2009-02-21
| | | | | | reason it sometimes stops sending data on portalplayer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20077 a1c6a512-1295-4272-9138-f99709370657
* more fixes. There's still something wrong as it sometimes suddenly stops ↵Frank Gevaerts2009-02-21
| | | | | | sending data. Disconnecting and reconnecting gets it going again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20072 a1c6a512-1295-4272-9138-f99709370657
* Fix ringbuffer handling. This will hopefully fix the hang-on-fast-send issueFrank Gevaerts2009-02-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20064 a1c6a512-1295-4272-9138-f99709370657
* usb serial on PP seems to have broken. Fix itFrank Gevaerts2009-02-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20023 a1c6a512-1295-4272-9138-f99709370657
* Make basic cache functions into calls, and get rid of ↵Michael Sevakis2009-02-11
| | | | | | CACHE_FUNCTION_WRAPPERS and CACHE_FUNCTIONS_AS_CALL macros. Rename flush/invalidate_icache to cpucache_flush/invalidate. They're inlined only if an implementation isn't provided by defining HAVE_CPUCACHE_FLUSH/INVALIDATE. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19971 a1c6a512-1295-4272-9138-f99709370657
* Fix RAM disk when no audio buffer is availableMaurus Cuelenaere2009-01-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19814 a1c6a512-1295-4272-9138-f99709370657
* USB storage driver:Maurus Cuelenaere2009-01-21
| | | | | | | | * Move RAM disk buffer allocation #ifdef below * Don't use the audio buffer for bootloaders git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19812 a1c6a512-1295-4272-9138-f99709370657
* USB detection changes. c200/e200: Consider USB to be powered when charger is ↵Michael Sevakis2009-01-19
| | | | | | plugged but detect USB connection by bus reset. When received, disconnect and restart the driver fully enabled. imx31: Fix hack used to make initial connect succeeded-- set PHY type before initial reset. General: Move some target code out of usb-drv-arc.c and implement it in respective usb sources and CPU headers so things stay clean. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19797 a1c6a512-1295-4272-9138-f99709370657
* USB retweaking: Take out the USB_REQUEST/RELEASE_DISK scheme and simply ask ↵Michael Sevakis2009-01-13
| | | | | | the USB core whether or not any drivers require exclusive access at the moment of connect. Doing anthing else just produces nasty effects on Windows because it expects some communication just for enabling the PHY and not allowing it to mount volumes if a thread doesn't ack causes annoying error message boxes. Make behavior of each USB type identical from the system perspective. Some miscellaneous changes (simplify, ata->storage naming, define only used USB_* enums values were possible). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19762 a1c6a512-1295-4272-9138-f99709370657
* improve handling of unimplemented commandsFrank Gevaerts2009-01-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19755 a1c6a512-1295-4272-9138-f99709370657
* correct wrong logfFrank Gevaerts2008-12-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19627 a1c6a512-1295-4272-9138-f99709370657
* Add a disconnect handler for usb storage. It doesn't do anything yet, but it ↵Frank Gevaerts2008-12-13
| | | | | | will apparently be needed to reset the audio buffer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19418 a1c6a512-1295-4272-9138-f99709370657
* Replace USE_HIGH_SPEED with USB_NO_HIGH_SPEED, as high speed support is the ↵Frank Gevaerts2008-11-30
| | | | | | normal case git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19274 a1c6a512-1295-4272-9138-f99709370657
* Move tcc77x/usb-tcc77x.c to usb-tcc.c as it is more general than just tcc77x ↵Frank Gevaerts2008-11-30
| | | | | | | | | | (even usb-tcc is too specific, but I don't know anything better) Add #if0ed USB defines to config-cowond2.h, so experimenting with USB is easy Add dummy set_serial_descriptor() implementation to usb_core.c. This one doesn't generate a unique serial, so it must never be used for non-testing purposes. When usaed, a compiler warning will be generated git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19273 a1c6a512-1295-4272-9138-f99709370657
* Add ramdisk storage driver. It will be useful for developing multi-driver ↵Frank Gevaerts2008-11-03
| | | | | | storage git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18993 a1c6a512-1295-4272-9138-f99709370657
* implement single-driver storage layer with macros instead of inlinesFrank Gevaerts2008-11-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18975 a1c6a512-1295-4272-9138-f99709370657
* Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do ↵Frank Gevaerts2008-11-01
| | | | | | | | | that, it also introduces sd_*, nand_*, and mmc_*. This should be a good first step to allow multi-driver targets, like the Elio (ATA/SD), or the D2 (NAND/SD). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18960 a1c6a512-1295-4272-9138-f99709370657
* cleanup storage definesFrank Gevaerts2008-10-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18950 a1c6a512-1295-4272-9138-f99709370657
* Abstract the PortalPlayer AS3514 handling with an "ascodec" API - inspired ↵Dave Chapman2008-10-31
| | | | | | by the wmcodec API used with the Wolfson codecs. The intention is to implement this API for the AS3525 and then share code with the Sansa V2 ports. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18940 a1c6a512-1295-4272-9138-f99709370657
* add optional USB mass storage from ramdisk. This can be useful for developmentFrank Gevaerts2008-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18849 a1c6a512-1295-4272-9138-f99709370657
* disable logf againFrank Gevaerts2008-10-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18704 a1c6a512-1295-4272-9138-f99709370657
* reorganise the USB stack a bit to allow for easier integration of non-ARC ↵Frank Gevaerts2008-10-03
| | | | | | controller drivers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18703 a1c6a512-1295-4272-9138-f99709370657
* Simplify & fix the MMC driver. After more than 3 years I found that the MMC ↵Jens Arnold2008-09-14
| | | | | | specs were a bit misleading, and the 'large' MMC which state a block size of 1024 or 2048 bytes and no partial read and/or partial write capability are happily accepting a block size of 512 bytes. So go KISS and remove all the variable/partial block handling code. This fixes the driver for the Transcend 4GB MMCplus, which doesn't cope when we actually set the 2048 byte block size it states. It also makes write operations involving small blocks faster and more reliable. * Note: The 4GB Transcend still doesn't work when plugged at boot, but works when hotplugged. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18515 a1c6a512-1295-4272-9138-f99709370657
* revert r18327, as it introduces serious issues on non-sd players (like ipods)Frank Gevaerts2008-08-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18370 a1c6a512-1295-4272-9138-f99709370657
* Make usb_storage work on all targets againFrank Gevaerts2008-08-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18357 a1c6a512-1295-4272-9138-f99709370657
* Use cached memory for ata_write_sectors(). This seems to finally fix FS#8663Frank Gevaerts2008-08-21
| | | | | | | | | 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
* define SERIALIZE_WRITES for all HAVE_ATA_SD, not just the sansasFrank Gevaerts2008-07-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18001 a1c6a512-1295-4272-9138-f99709370657