Dave Chapman
fe4ffbd94c
Optimise (replace two loops with one) and bug-fix the ProductId string 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-11 18:08:21 +00:00
Björn Stenberg
8545c3bdcf
Removed compiler warning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16280 a1c6a512-1295-4272-9138-f99709370657
2008-02-11 14:38:43 +00:00
Björn Stenberg
2f7cffa204
Major USB fixes by Frank Gevaerts. Still disabled in builds, #define USE_ROCKBOX_USB to test.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16279 a1c6a512-1295-4272-9138-f99709370657
2008-02-11 14:26:25 +00:00
Christian Gmeiner
94be71eab5
Add a working serial driver to usb stack. At the moment it simply echos back what it gets. You can test it on linux by
...
0) change relevant defines in usb_core.c
1) modprobe usbserial vendor=0x0781 product=0x7421 debug=1
2) picocom /dev/ttyUSB0
3) look at your logf screen if you build with logf support and enabled LOGF_ENABLE define in usb_serial.c
I also modified usb_core so that storage and serial both can make use the the 'usb_core'-thread. More will come :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15850 a1c6a512-1295-4272-9138-f99709370657
2007-11-30 00:13:00 +00:00
Björn Stenberg
da245a9ae9
Added support for 'deconfiguration'.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15799 a1c6a512-1295-4272-9138-f99709370657
2007-11-24 23:43:06 +00:00
Björn Stenberg
d2b86885d5
Fixed memory corruption bug for those testing usb_storage.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15798 a1c6a512-1295-4272-9138-f99709370657
2007-11-24 22:40:37 +00:00
Björn Stenberg
bfff12aff9
Added GET_CONFIGURATION. Added usb state tracking. Changed charger pktsize to 512. Fixed compile errors for usb_storage.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15797 a1c6a512-1295-4272-9138-f99709370657
2007-11-24 22:37:41 +00:00
Björn Stenberg
20dbc1b21f
Re-added USB charger detection and auto reboot on host connect.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15774 a1c6a512-1295-4272-9138-f99709370657
2007-11-23 15:02:26 +00:00
Björn Stenberg
482e839ea9
Enable usbstack on ipods.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15772 a1c6a512-1295-4272-9138-f99709370657
2007-11-23 09:58:47 +00:00
Björn Stenberg
b4e5123e5d
New USB stack
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15758 a1c6a512-1295-4272-9138-f99709370657
2007-11-22 20:51:00 +00:00
Christian Gmeiner
0f5d9f9125
first part of usbstack patches -> show and use selection of usb stack mode only, if
...
a target supports both modes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14916 a1c6a512-1295-4272-9138-f99709370657
2007-09-30 12:25:06 +00:00
Peter D'Hoye
a576657011
Get/Set Interface - just stores the value, makes one more compliance test pass
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14794 a1c6a512-1295-4272-9138-f99709370657
2007-09-20 23:31:57 +00:00
Peter D'Hoye
e4363c116c
usb stack code police, fix some warnings and set svn keywords correctly
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14761 a1c6a512-1295-4272-9138-f99709370657
2007-09-19 23:20:55 +00:00
Peter D'Hoye
b0c996ba92
code police, no functional changes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14737 a1c6a512-1295-4272-9138-f99709370657
2007-09-17 20:49:02 +00:00
Christian Gmeiner
db4753e924
usb stack: add support for standard request get string
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14626 a1c6a512-1295-4272-9138-f99709370657
2007-09-06 07:17:54 +00:00
Christian Gmeiner
649734f5fc
remove some debug..
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14543 a1c6a512-1295-4272-9138-f99709370657
2007-08-30 19:55:36 +00:00
Christian Gmeiner
c7b3f8be9b
add missing get configuration request handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14530 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 22:04:09 +00:00
Christian Gmeiner
e3bef6728f
make USB Command Verifier happy
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14526 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 19:13:07 +00:00
Christian Gmeiner
57c2a5fa5a
add support to switch device driver at runtime
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14508 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 11:55:23 +00:00
Christian Gmeiner
17f2dd5c13
endpoint address was only set in fs descriptor, but we need it in hs too. Update storage device descriptor dynamic based on dcd
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14507 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 10:14:47 +00:00
Christian Gmeiner
7d4c7f9f28
we use only 2 endpoints
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14502 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 09:17:15 +00:00
Peter D'Hoye
52a60df47e
code police part two (/me blames his editor)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14500 a1c6a512-1295-4272-9138-f99709370657
2007-08-29 00:47:04 +00:00
Peter D'Hoye
924e906c27
Remove two more warnings when building the usb stack
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14497 a1c6a512-1295-4272-9138-f99709370657
2007-08-28 23:49:03 +00:00
Christian Gmeiner
4474d6827c
binding a device driver could fail.. handle this case
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14493 a1c6a512-1295-4272-9138-f99709370657
2007-08-28 20:50:41 +00:00
Christian Gmeiner
195ef597f5
Add support for full and highspeed in stack and drivers.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14492 a1c6a512-1295-4272-9138-f99709370657
2007-08-28 20:29:28 +00:00
Dave Chapman
b016131c00
Set svn:keywords
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14485 a1c6a512-1295-4272-9138-f99709370657
2007-08-27 22:12:35 +00:00
Dave Chapman
03745f4ed3
Cosmetic changes only - tab, whitespace and brace policing
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14484 a1c6a512-1295-4272-9138-f99709370657
2007-08-27 22:07:36 +00:00
Christian Gmeiner
5365535daa
fix lang problem and little clean up
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14477 a1c6a512-1295-4272-9138-f99709370657
2007-08-27 17:45:01 +00:00
Christian Gmeiner
8181a0c905
Usb Stack: only setup packet handling, and not enabled by default as there is a lot to do.
...
* settings code is not fully ready -> changing device driver has no effect
* clean ups
* check copyriths
* find a way to detect IN transfers
* support for full and highspeed
* ...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14470 a1c6a512-1295-4272-9138-f99709370657
2007-08-27 16:04:32 +00:00