summaryrefslogtreecommitdiff
path: root/bootloader/iriver_h300.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-11-01 16:14:28 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-11-01 16:14:28 +0000
commit2f8a0081c64534da23fc0fa9cc685eb7454fd9c9 (patch)
tree84dbdbd5326cb48f43d2ebd5a4c86e992c1d5288 /bootloader/iriver_h300.c
parent646cac0bde7b11fa7bcb670d1d76eec78e360485 (diff)
downloadrockbox-2f8a0081c64534da23fc0fa9cc685eb7454fd9c9.tar.gz
rockbox-2f8a0081c64534da23fc0fa9cc685eb7454fd9c9.zip
Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do 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
Diffstat (limited to 'bootloader/iriver_h300.c')
-rw-r--r--bootloader/iriver_h300.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bootloader/iriver_h300.c b/bootloader/iriver_h300.c
index 9d839aed29..d15efb9b72 100644
--- a/bootloader/iriver_h300.c
+++ b/bootloader/iriver_h300.c
@@ -31,7 +31,7 @@
31#include "scroll_engine.h" 31#include "scroll_engine.h"
32#include "kernel.h" 32#include "kernel.h"
33#include "thread.h" 33#include "thread.h"
34#include "ata.h" 34#include "storage.h"
35#include "usb.h" 35#include "usb.h"
36#include "disk.h" 36#include "disk.h"
37#include "font.h" 37#include "font.h"
@@ -93,10 +93,10 @@ void shutdown(void)
93 if (ide_powered()) 93 if (ide_powered())
94 { 94 {
95 /* Make sure ATA has been initialized. */ 95 /* Make sure ATA has been initialized. */
96 ata_init(); 96 storage_init();
97 97
98 /* And put the disk into sleep immediately. */ 98 /* And put the disk into sleep immediately. */
99 ata_sleepnow(); 99 storage_sleepnow();
100 } 100 }
101 101
102 sleep(HZ*2); 102 sleep(HZ*2);
@@ -317,7 +317,7 @@ void main(void)
317 lcd_remote_update(); 317 lcd_remote_update();
318 318
319 ide_power_enable(true); 319 ide_power_enable(true);
320 ata_enable(false); 320 storage_enable(false);
321 sleep(HZ/20); 321 sleep(HZ/20);
322 usb_enable(true); 322 usb_enable(true);
323 cpu_idle_mode(true); 323 cpu_idle_mode(true);
@@ -328,7 +328,7 @@ void main(void)
328 remote_line = 0; 328 remote_line = 0;
329 check_battery(); 329 check_battery();
330 330
331 ata_spin(); /* Prevent the drive from spinning down */ 331 storage_spin(); /* Prevent the drive from spinning down */
332 sleep(HZ); 332 sleep(HZ);
333 } 333 }
334 334
@@ -339,7 +339,7 @@ void main(void)
339 lcd_update(); 339 lcd_update();
340 } 340 }
341 341
342 rc = ata_init(); 342 rc = storage_init();
343 if(rc) 343 if(rc)
344 { 344 {
345 reset_screen(); 345 reset_screen();