Rockbox mail archiveSubject: access ata next time its spun up working patch
access ata next time its spun up working patch
From: Jonathan Gordon <jdgordy_at_gmail.com>
Date: Mon, 28 Aug 2006 00:52:17 +1000
amiconn mentioned the need to access the hdd next time its spun up, so
here it is...
to use this, a function needs to be registered as a callback. it will
then be called next time the disk is accessed.
I have only implemented it for ata.c and the sim because im not sure
how it should go into ata_mmc.c and ata_flash.c, but apart from that
the code is safe and ready to go..