summaryrefslogtreecommitdiff
path: root/firmware/export/ata_idle_notify.h
AgeCommit message (Collapse)Author
2014-03-14events: Rework event subsystem (add_event, send_event) to be more versatile.Thomas Martitz
add_event_ex is added that takes an extra user_data pointer. This pointer is passed to the callback (add_event and add_event_ex have slightly different callbacks types). All callbacks also get the event id passed. Events added with add_event_ex must be removed with remove_event_ex because the user_data pointer must match in addition to the callback pointer. On the other add_event is simplified to omit the oneshort parameter which was almost always false (still there with add_event_ex). As a side effect the ata_idle_notify callbacks are changed as well, they do not take a data parameter anymore which was always NULL anyway. This commit also adds some documentation to events.h Change-Id: I13e29a0f88ef908f175b376d83550f9e0231f772
2012-07-18fix database toolThomas Martitz
Change-Id: I48702c3213aae7e2c64ea0e1f197e61368393759
2012-06-15hosted: disable USING_STORAGE_CALLBACK againThomas Martitz
6b8330d was not the correct fix. In fact, it prevents settings from being written as there's no DISK_EVENT_SPINUP event, so they were only saved on proper shutdown. Change-Id: Iad26366f2821ed6adf445c391d461563c5782a71
2012-05-26Fix broken logic for enabling USING_STORAGE_CALLBACK.Frank Gevaerts
The logic got broken by 6b8330d2. Since the ifp700 port is basically unmaintained and unfinished and doesn't build anyway, we can remove the special-casing for it. This simplifies the logic to "hosted or native, except for bootloaders", which simplifies further to "not bootloaders". Fixes FS#12685 Change-Id: Iaaad534067da22b74bf647aa58dcbb678bbc5f70
2012-05-13Enable USING_STORAGE_CALLBACK on hosted targets. Fixes config.cfg not ↵Thomas Martitz
written properly. Change-Id: I3c87b41baae284b818be5c272d984d937ae0e350
2010-06-21Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz
#if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657
2010-01-19undo the last commit... I'm too tired to fgure out how to make batt bench ↵Jonathan Gordon
work without the spin down notification (aka, fix red the really lazy way) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24284 a1c6a512-1295-4272-9138-f99709370657
2010-01-19Dont use the disk spindown notification on the mini2440, undo this if/when ↵Jonathan Gordon
we have a clean way to force a shutdown/umount of the sd card git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24283 a1c6a512-1295-4272-9138-f99709370657
2009-10-20Correct wrong usage of event callbacks all over the place. It's not supposed ↵Thomas Martitz
to return anything, and should take a data parameter. Fixing it because correcting the event api prototypes causes many warnings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23301 a1c6a512-1295-4272-9138-f99709370657
2009-10-04CONFIG_NAND is not a bitfieldDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22906 a1c6a512-1295-4272-9138-f99709370657
2008-11-01Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do ↵Frank Gevaerts
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
2008-10-31cleanup storage definesFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18950 a1c6a512-1295-4272-9138-f99709370657
2008-09-23Bootloaders don't need idle callbacks.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18614 a1c6a512-1295-4272-9138-f99709370657
2008-07-27Comment/line length/spelling policeBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18127 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-03-16Implement the playback event handling as a system-wide multi-purpose event ↵Miika Pekkarinen
system. Unified mpeg.c and playback.c audio event handling. Converted ata_idle_notify to use the new event handling system also. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16682 a1c6a512-1295-4272-9138-f99709370657
2006-11-26dont allow the ata callbacks to be run less than once every 30s unlessJonathan Gordon
explicitly forced to. The sleep_after param is only true in the Q_SLEEP event, so its uneeded, so removed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11599 a1c6a512-1295-4272-9138-f99709370657
2006-11-08fixed once again.Jonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11464 a1c6a512-1295-4272-9138-f99709370657
2006-11-08fix booboo in ata.c (SYS_POWEROFF falling into SYS_USB_CONNECTED)Jonathan Gordon
enable ata_idle callbacks in ata_mmc.c (calls the callbacks after 10s of real inactivity) fix builds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11462 a1c6a512-1295-4272-9138-f99709370657
2006-11-08* changes to ata.c - idle callbacks are called after 2 sec of real idle,Jonathan Gordon
and shutdown and usb (it makes sense here). ata_sleep doesnt get broken by callbacks. * allow ata_sleep() at the end of buffering again * config block uses ata_idle instead of delayed sector when saving * remove delayed sector code from ata_mmc.c (idle callbacks are not yet implemented for ata_mmc.c tho) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11461 a1c6a512-1295-4272-9138-f99709370657
2006-11-06adds ata_idle_notify system which allows callbacks in apps/ to be calledJonathan Gordon
when the hard disk is idle but spinning, and just before shutting down. on SWCODEC targets with > 8MB RAM the playback engine will try to refill the buffer if it is less than 75% full while the disk is spinning (temporarily disabled on the nano) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11451 a1c6a512-1295-4272-9138-f99709370657