diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-11-01 16:14:28 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-11-01 16:14:28 +0000 |
commit | 2f8a0081c64534da23fc0fa9cc685eb7454fd9c9 (patch) | |
tree | 84dbdbd5326cb48f43d2ebd5a4c86e992c1d5288 /apps/main.c | |
parent | 646cac0bde7b11fa7bcb670d1d76eec78e360485 (diff) | |
download | rockbox-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 'apps/main.c')
-rw-r--r-- | apps/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/main.c b/apps/main.c index 50597699c5..111c5d1e78 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -20,7 +20,7 @@ | |||
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | #include "config.h" | 21 | #include "config.h" |
22 | 22 | ||
23 | #include "ata.h" | 23 | #include "storage.h" |
24 | #include "disk.h" | 24 | #include "disk.h" |
25 | #include "fat.h" | 25 | #include "fat.h" |
26 | #include "lcd.h" | 26 | #include "lcd.h" |
@@ -289,7 +289,7 @@ static void init(void) | |||
289 | #endif | 289 | #endif |
290 | /* Must be done before any code uses the multi-screen APi */ | 290 | /* Must be done before any code uses the multi-screen APi */ |
291 | gui_syncstatusbar_init(&statusbars); | 291 | gui_syncstatusbar_init(&statusbars); |
292 | ata_init(); | 292 | storage_init(); |
293 | settings_reset(); | 293 | settings_reset(); |
294 | settings_load(SETTINGS_ALL); | 294 | settings_load(SETTINGS_ALL); |
295 | gui_sync_wps_init(); | 295 | gui_sync_wps_init(); |
@@ -427,7 +427,7 @@ static void init(void) | |||
427 | } | 427 | } |
428 | #endif | 428 | #endif |
429 | 429 | ||
430 | rc = ata_init(); | 430 | rc = storage_init(); |
431 | if(rc) | 431 | if(rc) |
432 | { | 432 | { |
433 | #ifdef HAVE_LCD_BITMAP | 433 | #ifdef HAVE_LCD_BITMAP |