summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c (follow)
Commit message (Collapse)AuthorAge
* Add a check to verify ATA driver has been initialised in ata_sleepnow().Miika Pekkarinen2007-01-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11949 a1c6a512-1295-4272-9138-f99709370657
* renamed biglba to lba48, plus a slight optimizationJörg Hohensohn2006-12-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11825 a1c6a512-1295-4272-9138-f99709370657
* Preparation for disks >137 GB, use BigLBA 48 bit addressing if necessary. ↵Jörg Hohensohn2006-12-19
| | | | | | Only activated with compile flag HAVE_BIGLBA. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11820 a1c6a512-1295-4272-9138-f99709370657
* Convert queues to use intptr_t for event data and return values as most of ↵Michael Sevakis2006-12-19
| | | | | | the time pointer are not passed and it should make some things a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
* Archos: Moved the ata_address_detect() code into ata_device_init(), removing ↵Jens Arnold2006-12-19
| | | | | | the associated #ifdef and some public #defines. Saves a tiny bit of code as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11812 a1c6a512-1295-4272-9138-f99709370657
* Fix settings not saving to disk correctly, (fixes FS#6408)Jonathan Gordon2006-12-06
| | | | | | | | | | Stop playback.c requesting a rebuffer while not playing Shutting down from inside the menu will now save settings to disk, and entering the main menu will not force a setting save unless a setting actually changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11674 a1c6a512-1295-4272-9138-f99709370657
* Completed target tree move of the ata driver code. Some code cleanup.Jens Arnold2006-12-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11655 a1c6a512-1295-4272-9138-f99709370657
* Prevent the click of death when connecting an ipod to usb.Miika Pekkarinen2006-11-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11622 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
* Get rid of ages-old interdependency between ata.c and mas.cJens Arnold2006-11-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11519 a1c6a512-1295-4272-9138-f99709370657
* Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.Jens Arnold2006-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
* Bah, Linus was right, trying to call the ata_idle callbacks on usb andJonathan Gordon2006-11-09
| | | | | | | | shutdown doesnt work. Threads with callbacks must handle these 2 events instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11477 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
* dont spin up the disk to call the callbacks.Jonathan Gordon2006-11-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11458 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
* move coldfire ata defines to a shared ata-target.hMarcoen Hirschberg2006-10-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11395 a1c6a512-1295-4272-9138-f99709370657
* move the iriver h1x0/h3x0 targets to the target treeJonathan Gordon2006-10-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11392 a1c6a512-1295-4272-9138-f99709370657
* cleanup ata.c a bit by moving portalplayer defines to target_tree and ↵Marcoen Hirschberg2006-10-27
| | | | | | removing unused portalplayer and gigabeat code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11365 a1c6a512-1295-4272-9138-f99709370657
* A better workaround due to ATA sleep bugs in the Ipod Nano. battery_bench ↵Thom Johansen2006-10-25
| | | | | | and plugins like it should now work also on Nano. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11344 a1c6a512-1295-4272-9138-f99709370657
* New scheduler, with priorities for swcodec platforms. Frequent taskMiika Pekkarinen2006-09-16
| | | | | | | | | | switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
* update the gigabeat code and move to target_treeMarcoen Hirschberg2006-08-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10535 a1c6a512-1295-4272-9138-f99709370657
* ATA driver: * Don't lie to gcc about which parameters the assembler ↵Jens Arnold2006-04-29
| | | | | | optimised loops touch. Fixes problems with higher optimisation levels. Some slight tweaks for SH1. * Prevent the assembler loops from being inlined as this is less efficient than having them in IRAM (only relevant at higher optimisation levels). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9828 a1c6a512-1295-4272-9138-f99709370657
* Get rid of the redundant APPLE_* macros. * Fix wrong comments in lcd-ipod.cJens Arnold2006-04-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9561 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: Assembler optimised disk writing, speed increase ~36% on average.Jens Arnold2006-03-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9117 a1c6a512-1295-4272-9138-f99709370657
* Fix s-t-u-p-i-d bug in the asm ata read routine.Jens Arnold2006-03-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9098 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: Assembler optimised disk reading, speed increase ~40% on average.Jens Arnold2006-03-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9092 a1c6a512-1295-4272-9138-f99709370657
* ATA driver: Fixed a flaw in check_registers(), and added support for iAudio X5Linus Nielsen Feltzing2006-03-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8948 a1c6a512-1295-4272-9138-f99709370657
* gigabeat related changesMarcoen Hirschberg2006-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8885 a1c6a512-1295-4272-9138-f99709370657
* first gigabeat commitMarcoen Hirschberg2006-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8831 a1c6a512-1295-4272-9138-f99709370657
* Fix slow shutdown on ipod nano.Thom Johansen2006-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8741 a1c6a512-1295-4272-9138-f99709370657
* More iPod 3G code from Seven Le MesleDave Chapman2006-02-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8582 a1c6a512-1295-4272-9138-f99709370657
* Make it compile on iAudio X5Linus Nielsen Feltzing2006-02-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8543 a1c6a512-1295-4272-9138-f99709370657
* iPod: Fix endian bug with disk reads and writes to a non-aligned memory buffer.Dave Chapman2006-01-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8369 a1c6a512-1295-4272-9138-f99709370657
* Temp fix for iPod Nano. Disable ATA sleep, as this will hang disk accesses.Thom Johansen2006-01-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8357 a1c6a512-1295-4272-9138-f99709370657
* Fixed yellow iPod builds.Jens Arnold2005-11-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8062 a1c6a512-1295-4272-9138-f99709370657
* Fixed disk icon display in remote status bar on iriver. * Rolled back led.c ↵Jens Arnold2005-11-24
| | | | | | changes, introducing a changed #if condition only. Reduces code size on targets with real controllable LED. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8059 a1c6a512-1295-4272-9138-f99709370657
* H300 has no ATA LEDLinus Nielsen Feltzing2005-11-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7961 a1c6a512-1295-4272-9138-f99709370657
* Reverted erroneous commitLinus Nielsen Feltzing2005-11-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7918 a1c6a512-1295-4272-9138-f99709370657
* Cleaned up bootloader linker control file and added the H300 targetLinus Nielsen Feltzing2005-11-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7916 a1c6a512-1295-4272-9138-f99709370657
* Use ICODE_ATTR instead of __attribute__ ((section(".icode")))Dave Chapman2005-11-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7820 a1c6a512-1295-4272-9138-f99709370657
* iPod: Code cleanup - the bootloader now compiles with zero warningsDave Chapman2005-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7812 a1c6a512-1295-4272-9138-f99709370657
* Remove #warning left over from debugging. Sorry about that.Dave Chapman2005-11-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7790 a1c6a512-1295-4272-9138-f99709370657
* Fixed the bug in ata.c preventing files from being read correctly.Miika Pekkarinen2005-11-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7789 a1c6a512-1295-4272-9138-f99709370657
* Removed unused ata_standby(), changed return type of ata_sleep() to void, ↵Jens Arnold2005-11-07
| | | | | | removed misleading comment from ata.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7782 a1c6a512-1295-4272-9138-f99709370657
* Initial commit of work-in-progress iPod portDave Chapman2005-11-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
* Replace SWAB16 and SWAB32 with a comprehensive set of byte-swap macros - ↵Dave Chapman2005-10-06
| | | | | | letoh16, letoh32, htole16, htole32, betoh16, betoh32, htobe16 and htobe32 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7584 a1c6a512-1295-4272-9138-f99709370657
* Atomic GPIO accessLinus Nielsen Feltzing2005-07-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7114 a1c6a512-1295-4272-9138-f99709370657
* Multiple choice LED configuration instead of HAVE_LED. Removes erroneous MMC ↵Jens Arnold2005-06-04
| | | | | | icon display on iriver, and saves some code on Ondio. Removed invert_led() as it is no longer used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6568 a1c6a512-1295-4272-9138-f99709370657
* This should (hopefully) fix the long-standing RLD problem once and for all.Jens Arnold2005-05-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6452 a1c6a512-1295-4272-9138-f99709370657