summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
AgeCommit message (Collapse)Author
2003-07-18report sleeping disk while not initialized, needed for changing before ↵Jörg Hohensohn
ata_init() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3844 a1c6a512-1295-4272-9138-f99709370657
2003-07-11Initalize last_disk_activityBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3830 a1c6a512-1295-4272-9138-f99709370657
2003-07-10Fixed spindown bug: last_disk_activity was set 10 seconds into the future, ↵Björn Stenberg
which resulted in too long spindown delays. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3826 a1c6a512-1295-4272-9138-f99709370657
2003-07-09Cold start fixes: master_slave_select() now checks for BSY as well as RDY ↵Björn Stenberg
(since disks are BSY during powerup). Also, wait_for_bsy() looks at ATA_STATUS instead of ATA_ALT_STATUS, since the address of ATA_ALT_STATUS is not determined until later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3822 a1c6a512-1295-4272-9138-f99709370657
2003-07-09Removed warningsBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3821 a1c6a512-1295-4272-9138-f99709370657
2003-07-09again different coldstart, ata_init() now has non-ambiguous return codes for ↵Jörg Hohensohn
better diagnostics git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3820 a1c6a512-1295-4272-9138-f99709370657
2003-07-08better place and method for the spinup wait code, still I'd welcome comments ↵Jörg Hohensohn
on this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3815 a1c6a512-1295-4272-9138-f99709370657
2003-07-03When starting from flash, we have to wait for the disk to get ready. (Quite ↵Jörg Hohensohn
a new situation ;-) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3803 a1c6a512-1295-4272-9138-f99709370657
2003-06-26port inits for cold start abilityJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3764 a1c6a512-1295-4272-9138-f99709370657
2003-05-10Experiment: enable ATA STANDBY when switching to USB modeLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3668 a1c6a512-1295-4272-9138-f99709370657
2003-04-28Corrected wrong write return code.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3623 a1c6a512-1295-4272-9138-f99709370657
2003-04-12ata_write_sectors() didn't handle odd buffer addressesLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3544 a1c6a512-1295-4272-9138-f99709370657
2003-04-11Don't enter cpu sleep during disk operationsBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3530 a1c6a512-1295-4272-9138-f99709370657
2003-04-05The newest ATA driver fixes broke the ata_spinup_time informationLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3515 a1c6a512-1295-4272-9138-f99709370657
2003-03-31Better led control. Added status read delay. Fixed potential ↵Björn Stenberg
last_disk_activity race. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3501 a1c6a512-1295-4272-9138-f99709370657
2003-03-24Another attempt to stop the red led dead.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3498 a1c6a512-1295-4272-9138-f99709370657
2003-03-17Don't spin down disk while retryingBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3457 a1c6a512-1295-4272-9138-f99709370657
2003-03-14Moved read code around a bit to more strictly obey the ATA specification.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3444 a1c6a512-1295-4272-9138-f99709370657
2003-03-13Initialize return code at start of loop, not at the end.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3440 a1c6a512-1295-4272-9138-f99709370657
2003-02-27An attempt to get rid of the "red freeze" problem: Perform a soft reset on ↵Björn Stenberg
read error. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3351 a1c6a512-1295-4272-9138-f99709370657
2003-02-14The power-saving SLEEP patch by Simon Elén.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3259 a1c6a512-1295-4272-9138-f99709370657
2002-12-06Bug fix: Don't cut the power during spinup...Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2959 a1c6a512-1295-4272-9138-f99709370657
2002-12-06Fixed a race condition between sleep thread and spinup code.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2958 a1c6a512-1295-4272-9138-f99709370657
2002-12-05Fixed spinup clocking. Also updating last_disk_activity more frequently, to ↵Björn Stenberg
avoid shutdown race condition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2935 a1c6a512-1295-4272-9138-f99709370657
2002-12-04Added disk spinup clockingBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2927 a1c6a512-1295-4272-9138-f99709370657
2002-12-03Bug fix: Master/slave was not always properly selected after powerdown.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2910 a1c6a512-1295-4272-9138-f99709370657
2002-12-03Added 'Disk info' to debug menuBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2908 a1c6a512-1295-4272-9138-f99709370657
2002-12-03use the proper #ifdef for a featureDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2903 a1c6a512-1295-4272-9138-f99709370657
2002-12-03Added a >2ms delay in ata_hard_reset() before reading status, as per ATA ↵Björn Stenberg
specificatione (pedantic mode entered) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2902 a1c6a512-1295-4272-9138-f99709370657
2002-12-03Bug fix: A failed read could return OK.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2899 a1c6a512-1295-4272-9138-f99709370657
2002-12-02Updated power-on procedureBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2896 a1c6a512-1295-4272-9138-f99709370657
2002-11-29HAVE_ATA_POWER_OFF is now defined and used if the platform has support forDaniel Stenberg
that control git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2889 a1c6a512-1295-4272-9138-f99709370657
2002-11-28Added option to enable/disable disk poweroff (for diagnostic purposes)Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2888 a1c6a512-1295-4272-9138-f99709370657
2002-11-27Added disk poweroff 2s after spindown. (Only for recorders yet.)Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2887 a1c6a512-1295-4272-9138-f99709370657
2002-11-22Erroneous commit.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2877 a1c6a512-1295-4272-9138-f99709370657
2002-11-22Fixed warnings.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2876 a1c6a512-1295-4272-9138-f99709370657
2002-11-12Added extra safety checks.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2839 a1c6a512-1295-4272-9138-f99709370657
2002-11-07Changed return code of ata_write_sectors() to be the same as for ↵Björn Stenberg
ata_read_sectors(). (0 == Success) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2811 a1c6a512-1295-4272-9138-f99709370657
2002-09-25Improved retry handlingBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2415 a1c6a512-1295-4272-9138-f99709370657
2002-09-24Check status register for errorBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2400 a1c6a512-1295-4272-9138-f99709370657
2002-09-24Added read retry.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2397 a1c6a512-1295-4272-9138-f99709370657
2002-09-23Now exports last_disk_activity, for auto-poweroffLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2373 a1c6a512-1295-4272-9138-f99709370657
2002-09-23Bug fix: The LED was not on during writesBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2368 a1c6a512-1295-4272-9138-f99709370657
2002-09-06Made the sleep code a little bit less aggressive.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2220 a1c6a512-1295-4272-9138-f99709370657
2002-09-06Now runs SET_MULTIPLE_MODE after usb disconnect, since the windows driver ↵Björn Stenberg
sets it to a non-default value. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2214 a1c6a512-1295-4272-9138-f99709370657
2002-09-06Optimized ata_read_sectors() a littleLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2213 a1c6a512-1295-4272-9138-f99709370657
2002-09-05Now uses READ MULTIPLE command. Also corrected some return values.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2186 a1c6a512-1295-4272-9138-f99709370657
2002-09-04Increased BSY & RDY timeouts to 10 secondsBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2174 a1c6a512-1295-4272-9138-f99709370657
2002-09-02Ooops! perform_soft_reset() unlocked the mutex...Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2132 a1c6a512-1295-4272-9138-f99709370657
2002-09-02STANDBY mode works againLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2115 a1c6a512-1295-4272-9138-f99709370657