summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c (follow)
Commit message (Collapse)AuthorAge
* behave for multi-volumeJörg Hohensohn2004-12-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5520 a1c6a512-1295-4272-9138-f99709370657
* prepared to mount multiple partitions into one logical file system (most ↵Jörg Hohensohn2004-12-28
| | | | | | useful for Ondio, internal memory + external MMC) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
* Retry initializing the harddisk with hard reset in case the first try fails. ↵Jens Arnold2004-11-23
| | | | | | Fixes panic when starting flashed rockbox by leaving the archos charging screen with On. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5461 a1c6a512-1295-4272-9138-f99709370657
* Moved player ATA power handling to the correct functionsJens Arnold2004-11-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5449 a1c6a512-1295-4272-9138-f99709370657
* New players: switch on the HD in ata_init()Jens Arnold2004-11-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5443 a1c6a512-1295-4272-9138-f99709370657
* Fixed warning when compiling with PREFER_C_WRITINGJens Arnold2004-10-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5229 a1c6a512-1295-4272-9138-f99709370657
* Correct CPU type handlingLinus Nielsen Feltzing2004-10-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5202 a1c6a512-1295-4272-9138-f99709370657
* Compile ata_mmc.c for targets with mmc, ata.c for all others.Björn Stenberg2004-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5174 a1c6a512-1295-4272-9138-f99709370657
* a hell of a commit: changed several HAVE_xx configuration flags into ↵Jörg Hohensohn2004-09-28
| | | | | | multiple choice values (keypad, tuner, CPU, h/w codec) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5126 a1c6a512-1295-4272-9138-f99709370657
* Added preliminary support for Iriver H100Björn Stenberg2004-09-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5089 a1c6a512-1295-4272-9138-f99709370657
* prepared Ondio USB passthrough (but doesn't work yet)Jörg Hohensohn2004-09-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5066 a1c6a512-1295-4272-9138-f99709370657
* prepared an empty MMC driverJörg Hohensohn2004-09-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5065 a1c6a512-1295-4272-9138-f99709370657
* Const policed pointer arguments to functions, part 2Jens Arnold2004-08-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
* More const policeing step 3Jens Arnold2004-08-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4982 a1c6a512-1295-4272-9138-f99709370657
* Enabled assembler optimized disk reading and writing (approx. 2 times as fast)Jens Arnold2004-07-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4825 a1c6a512-1295-4272-9138-f99709370657
* Disabled automatic disk spindown (by the drive). Updated comments regarding ↵Jens Arnold2004-06-11
| | | | | | timing git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4733 a1c6a512-1295-4272-9138-f99709370657
* patch #922836 by Jens: way faster disk writing, in assembler. The code is ↵Jörg Hohensohn2004-04-01
| | | | | | in, but yet disabled by #define PREFER_C_WRITING unless it's proven safe for all disks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4460 a1c6a512-1295-4272-9138-f99709370657
* A hip shot trying to make the Red LED Death situation a little betterLinus Nielsen Feltzing2004-03-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4409 a1c6a512-1295-4272-9138-f99709370657
* - no second ata_hard_reset() call, saves ~2.5 seconds flash boot time ↵Jörg Hohensohn2004-03-10
| | | | | | | | | (please test) - Jens' new assembler code in copy_read_sectors(), but still disabled git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4358 a1c6a512-1295-4272-9138-f99709370657
* Reverted the STANDBY fix from 2004-02-15, rev 1.106Linus Nielsen Feltzing2004-03-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4352 a1c6a512-1295-4272-9138-f99709370657
* Now sets the highest possible PIO mode in set_features()Linus Nielsen Feltzing2004-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4328 a1c6a512-1295-4272-9138-f99709370657
* fixed compiling errorsLinus Nielsen Feltzing2004-02-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4310 a1c6a512-1295-4272-9138-f99709370657
* set_features() is now called from ata_power_on()Linus Nielsen Feltzing2004-02-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4309 a1c6a512-1295-4272-9138-f99709370657
* Silly me, I forgot to remove my debugging codeLinus Nielsen Feltzing2004-02-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4308 a1c6a512-1295-4272-9138-f99709370657
* Bug 1: The STANDBY mode is now explicitly disabled, since it could be set to ↵Linus Nielsen Feltzing2004-02-16
| | | | | | 30s at powerup. Bug 2: set_features() wasn't called in ata_power_on(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4307 a1c6a512-1295-4272-9138-f99709370657
* Assembly code for copy_read_sectors() disabled: Tests with Trent showed that ↵Jörg Hohensohn2004-02-15
| | | | | | this is to blame for file system corruptions, even waitstates didn't fix it. No idea why, sorry... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4304 a1c6a512-1295-4272-9138-f99709370657
* Assembly code for copy_read_sectors() reworked: I've spread the ATA reads ↵Jörg Hohensohn2004-02-09
| | | | | | apart by filling independent instructions inbetween, this is also slightly faster because of no pipeline stall. Hopefully this fixes the problem Kargatron had with it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4302 a1c6a512-1295-4272-9138-f99709370657
* no code change, I just forgot to take my template disassembly out (a big ↵Jörg Hohensohn2004-01-27
| | | | | | comment block) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4282 a1c6a512-1295-4272-9138-f99709370657
* Assembler optimized copy_read_sectors() gives another speedup of factor 1.4 ↵Jörg Hohensohn2004-01-27
| | | | | | for aligned and 1.2 for misaligned. Including my previous change the file reading is now nearly twice as fast compared to when I started this. -> Less disk uptime, longer battery life. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4281 a1c6a512-1295-4272-9138-f99709370657
* warning + obsolete variable removedJörg Hohensohn2004-01-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4248 a1c6a512-1295-4272-9138-f99709370657
* Optimized the sector read loop as much as C allows. I measured an overall ↵Jörg Hohensohn2004-01-16
| | | | | | speed improvement for file reading of 12.5% for 16-bit aligned and 35% for misaligned. I took the rest of ata_read_sectors() out of IRAM, it's sufficient if only the copy loop stays there. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4247 a1c6a512-1295-4272-9138-f99709370657
* Added acoustic management, power management and read look-ahead.Björn Stenberg2004-01-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4230 a1c6a512-1295-4272-9138-f99709370657
* Improved timing in soft_reset. This hopefully cures spontaneous Red Led freezes.Björn Stenberg2003-12-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4161 a1c6a512-1295-4272-9138-f99709370657
* adjustments for NeoDaniel Stenberg2003-12-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4130 a1c6a512-1295-4272-9138-f99709370657
* No more spinning disk while charging flashed FM+V2 (you need the new ↵Jörg Hohensohn2003-12-03
| | | | | | bootloader to utilize it). ToDo: remove now false voltage reading from charging screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4095 a1c6a512-1295-4272-9138-f99709370657
* The code police strikes backLinus Nielsen Feltzing2003-11-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4024 a1c6a512-1295-4272-9138-f99709370657
* set/clear port bits with atomic instructions instead of read-modify-write, ↵Jörg Hohensohn2003-11-06
| | | | | | saves time+space, allows port usage in ISR git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4022 a1c6a512-1295-4272-9138-f99709370657
* ATA io_address_detect() now doesn't probe any more, but uses the h/w mask. ↵Jörg Hohensohn2003-09-01
| | | | | | Probing failed for some flash users. I hope this works for everybody, we have to try to find out. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3946 a1c6a512-1295-4272-9138-f99709370657
* report sleeping disk while not initialized, needed for changing before ↵Jörg Hohensohn2003-07-18
| | | | | | ata_init() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3844 a1c6a512-1295-4272-9138-f99709370657
* Initalize last_disk_activityBjörn Stenberg2003-07-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3830 a1c6a512-1295-4272-9138-f99709370657
* Fixed spindown bug: last_disk_activity was set 10 seconds into the future, ↵Björn Stenberg2003-07-10
| | | | | | which resulted in too long spindown delays. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3826 a1c6a512-1295-4272-9138-f99709370657
* Cold start fixes: master_slave_select() now checks for BSY as well as RDY ↵Björn Stenberg2003-07-09
| | | | | | (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
* Removed warningsBjörn Stenberg2003-07-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3821 a1c6a512-1295-4272-9138-f99709370657
* again different coldstart, ata_init() now has non-ambiguous return codes for ↵Jörg Hohensohn2003-07-09
| | | | | | better diagnostics git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3820 a1c6a512-1295-4272-9138-f99709370657
* better place and method for the spinup wait code, still I'd welcome comments ↵Jörg Hohensohn2003-07-08
| | | | | | on this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3815 a1c6a512-1295-4272-9138-f99709370657
* When starting from flash, we have to wait for the disk to get ready. (Quite ↵Jörg Hohensohn2003-07-03
| | | | | | a new situation ;-) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3803 a1c6a512-1295-4272-9138-f99709370657
* port inits for cold start abilityJörg Hohensohn2003-06-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3764 a1c6a512-1295-4272-9138-f99709370657
* Experiment: enable ATA STANDBY when switching to USB modeLinus Nielsen Feltzing2003-05-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3668 a1c6a512-1295-4272-9138-f99709370657
* Corrected wrong write return code.Björn Stenberg2003-04-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3623 a1c6a512-1295-4272-9138-f99709370657
* ata_write_sectors() didn't handle odd buffer addressesLinus Nielsen Feltzing2003-04-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3544 a1c6a512-1295-4272-9138-f99709370657