summaryrefslogtreecommitdiff
path: root/firmware/usb.c
AgeCommit message (Collapse)Author
2008-04-07Hopefully fix FS#8506 (OF cant be loaded on some PP targets). also hopefully ↵Jonathan Gordon
fixes usb detection for at least e200 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17017 a1c6a512-1295-4272-9138-f99709370657
2008-03-26Do core interrupt masking in a less general fashion and save some ↵Michael Sevakis
instructions to decrease size and speed things up a little bit. Small fix to a few places where interrupts would get enabled again where they shouldn't have been (context switching calls when disabled). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16811 a1c6a512-1295-4272-9138-f99709370657
2008-03-22Set usb_state to USB_POWERED on plugin for software usb device. Otherwise, ↵Frank Gevaerts
the state would remain USB_EXTRACTED when connected to a charger git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16752 a1c6a512-1295-4272-9138-f99709370657
2008-03-21fix H10 not rebooting on usb connect. Apologies to H10 users who enjoyed ↵Frank Gevaerts
their free but unintended USB stack. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16734 a1c6a512-1295-4272-9138-f99709370657
2008-03-21move an #endif to its proper place. This should not actually change anythingFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16732 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-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-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-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-02don't do small cleanups just before going to sleep...Frank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16474 a1c6a512-1295-4272-9138-f99709370657
2008-03-02small cleanupFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16473 a1c6a512-1295-4272-9138-f99709370657
2008-03-02Make it not reboot when plugged into a wall charger with USE_ROCKBOX_USB ↵Frank Gevaerts
diabled as well... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16472 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-02-28HAVE_POWER isn't defined for any target. It should be HAVE_USB_POWER.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16442 a1c6a512-1295-4272-9138-f99709370657
2008-02-27check for HAVE_POWER outside all uses of USBPOWER_BUTTONFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16436 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
2007-11-22New USB stackBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15758 a1c6a512-1295-4272-9138-f99709370657
2007-10-16Take out some NOCACHEBSS_ATTR's that were accidentally left. Put some ↵Michael Sevakis
threading code in IRAM that should be there on PP502x. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15155 a1c6a512-1295-4272-9138-f99709370657
2007-10-16Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis
towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
2007-09-28Commit a subset of the dual core changes that have to do with cache ↵Michael Sevakis
handling, stacks, firmware startup and thread startup. Tested on e200, H10-20GB, iPod Color and 5.5G. Thread function return implemented for all targets. Some changes to plugins to follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14879 a1c6a512-1295-4272-9138-f99709370657
2007-09-04FS #7691 - improved USB detection on PP devices. This patch modifies the ↵Dave Chapman
target-tree function usb_detect() on all targets from bool to int, returning USB_INSERTED or USB_EXTRACTED instead of true or false. This was done to enable the PP usb_detect() to check for USB_POWER (either a connection to a USB wall charger, or the user holding "charge mode" button) and return that as a third value. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14600 a1c6a512-1295-4272-9138-f99709370657
2007-06-30Accept FS#7134 - Sansa: external sd card support by Antonius Hellmann with ↵Michael Sevakis
some tweaks. All testers have given the green light. (Now for the RED ?? ;). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13741 a1c6a512-1295-4272-9138-f99709370657
2007-04-11Moved archos USB handling to target tree. Minor simplification for coldfire ↵Jens Arnold
(only one usb-target.h). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13110 a1c6a512-1295-4272-9138-f99709370657
2007-04-10Remove unused code (already moved to target tree).Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13091 a1c6a512-1295-4272-9138-f99709370657
2007-04-03It's not necessary (anymore?) to map lcd_icon() to sim_lcd_icon() for the ↵Jens Arnold
simulator. * Removed a stray lcd_icon() call from usb handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13006 a1c6a512-1295-4272-9138-f99709370657
2007-03-26Make scheduler functions thread safe core wise. A big step towards playback ↵Miika Pekkarinen
running on COP (not yet possible because more protection on file system level is necessary). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12926 a1c6a512-1295-4272-9138-f99709370657
2007-03-16Rename some macros to account for the recently added M5 port. No code changes.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12809 a1c6a512-1295-4272-9138-f99709370657
2007-03-04Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - ↵Daniel Ankers
iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
2007-02-18CONFIG_CHARGINGJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12384 a1c6a512-1295-4272-9138-f99709370657
2007-02-01FS#4770 - Add USB charging for the H300 seriesSteve Bavin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12169 a1c6a512-1295-4272-9138-f99709370657
2007-01-02iPod USB code has already been moved to the target tree so it's not used ↵Barry Wardell
here any more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11884 a1c6a512-1295-4272-9138-f99709370657
2006-12-19Convert queues to use intptr_t for event data and return values as most of ↵Michael Sevakis
the time pointer are not passed and it should make some things a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
2006-11-22Sansa doesn't use a Wolfson codec. Various other changes to allow Sansa to ↵Daniel Ankers
compile correctly with a normal build. Based on FS#6336 by Pavel Gnelitsa git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11570 a1c6a512-1295-4272-9138-f99709370657
2006-11-10Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
2006-10-30move the iriver h1x0/h3x0 targets to the target treeJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11392 a1c6a512-1295-4272-9138-f99709370657
2006-10-05Move all iPod targets into the target tree. FS#5890Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11129 a1c6a512-1295-4272-9138-f99709370657
2006-09-20Detect charger connected on H10. No need to sleep(HZ) when powering off.Barry Wardell
More sensible USB support for H10: plugging in puts it into USB charging mode and leaves Rockbox usable, holding 'O' while pluggin in the USB cable will reboot the H10 (continuing to hold 'O' starts it up in UMS mode), holding any other button brings up the USB screen as previously. Implement system_reboot() for all PP5020 devices. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11015 a1c6a512-1295-4272-9138-f99709370657
2006-09-16New scheduler, with priorities for swcodec platforms. Frequent taskMiika Pekkarinen
switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
2006-08-12update the gigabeat code and move to target_treeMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10535 a1c6a512-1295-4272-9138-f99709370657
2006-04-08Get rid of the redundant APPLE_* macros. * Fix wrong comments in lcd-ipod.cJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9561 a1c6a512-1295-4272-9138-f99709370657
2006-03-30iPod mini 2G: Properly reboot into diskmode for USB access.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9369 a1c6a512-1295-4272-9138-f99709370657
2006-03-22USB mode for iAudio X5Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9179 a1c6a512-1295-4272-9138-f99709370657
2006-03-18Fix yellow build as well.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9094 a1c6a512-1295-4272-9138-f99709370657
2006-03-16Proper charger input, usb and charger activity detection/reporting for ipod ↵Brandon Low
video git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9061 a1c6a512-1295-4272-9138-f99709370657
2006-02-24Ooops. Fix warning in simsDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8836 a1c6a512-1295-4272-9138-f99709370657
2006-02-24More iPod 3G work from Seven Le MesleDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8835 a1c6a512-1295-4272-9138-f99709370657
2006-02-21Patch #1435744 from Andrew Scott - initial iPod Mini supportDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8764 a1c6a512-1295-4272-9138-f99709370657
2006-02-19Fix red builds - only check for USB_POWERED status if HAVE_USB_POWER is defined.Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8734 a1c6a512-1295-4272-9138-f99709370657
2006-02-19Patch #1434442 by Mikael Magnusson - Prevent shutdown when charging from USBLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8733 a1c6a512-1295-4272-9138-f99709370657