summaryrefslogtreecommitdiff
path: root/firmware/export/ata_idle_notify.h (follow)
Commit message (Collapse)AuthorAge
* events: Rework event subsystem (add_event, send_event) to be more versatile.Thomas Martitz2014-03-14
| | | | | | | | | | | | | | | | | | 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
* fix database toolThomas Martitz2012-07-18
| | | | Change-Id: I48702c3213aae7e2c64ea0e1f197e61368393759
* hosted: disable USING_STORAGE_CALLBACK againThomas Martitz2012-06-15
| | | | | | | | 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
* Fix broken logic for enabling USING_STORAGE_CALLBACK.Frank Gevaerts2012-05-26
| | | | | | | | | | | | | 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
* Enable USING_STORAGE_CALLBACK on hosted targets. Fixes config.cfg not ↵Thomas Martitz2012-05-13
| | | | | | written properly. Change-Id: I3c87b41baae284b818be5c272d984d937ae0e350
* Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with ↵Thomas Martitz2010-06-21
| | | | | | | | | | | #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
* undo the last commit... I'm too tired to fgure out how to make batt bench ↵Jonathan Gordon2010-01-19
| | | | | | 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
* Dont use the disk spindown notification on the mini2440, undo this if/when ↵Jonathan Gordon2010-01-19
| | | | | | 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
* Correct wrong usage of event callbacks all over the place. It's not supposed ↵Thomas Martitz2009-10-20
| | | | | | | | 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
* CONFIG_NAND is not a bitfieldDave Chapman2009-10-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22906 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
* Bootloaders don't need idle callbacks.Jens Arnold2008-09-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18614 a1c6a512-1295-4272-9138-f99709370657
* Comment/line length/spelling policeBertrik Sikken2008-07-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18127 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | 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
* Implement the playback event handling as a system-wide multi-purpose event ↵Miika Pekkarinen2008-03-16
| | | | | | 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
* dont allow the ata callbacks to be run less than once every 30s unlessJonathan Gordon2006-11-26
| | | | | | | | | 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
* fixed once again.Jonathan Gordon2006-11-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11464 a1c6a512-1295-4272-9138-f99709370657
* fix booboo in ata.c (SYS_POWEROFF falling into SYS_USB_CONNECTED)Jonathan Gordon2006-11-08
| | | | | | | | | 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
* * changes to ata.c - idle callbacks are called after 2 sec of real idle,Jonathan Gordon2006-11-08
| | | | | | | | | | | | 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
* adds ata_idle_notify system which allows callbacks in apps/ to be calledJonathan Gordon2006-11-06
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