diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-07-17 16:34:34 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-07-17 16:34:34 +0000 |
commit | bdb5974c0ef05ca548beabdd2ece0512a60024f9 (patch) | |
tree | 3d0fe4215ab3f1fdb2b0588f4d034e5d514874ea /firmware/export/storage.h | |
parent | cf9935d6362dd52e4b2f33dd19fff0a0860814d7 (diff) | |
download | rockbox-bdb5974c0ef05ca548beabdd2ece0512a60024f9.tar.gz rockbox-bdb5974c0ef05ca548beabdd2ece0512a60024f9.zip |
Revert r21912 : "Storage API : remove undeeded target-specific functions"
After a discussion mixed on mailing list and irc, it was agreed that
more abstraction for plugins is better (so developers don't have to add
a check to HAVE_DISK_STORAGE when writing disk-specific code)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21923 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/storage.h')
-rw-r--r-- | firmware/export/storage.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h index 73ec970635..47d8abda52 100644 --- a/firmware/export/storage.h +++ b/firmware/export/storage.h | |||
@@ -81,9 +81,9 @@ struct storage_info | |||
81 | #define storage_present(drive) ata_present(IF_MV(drive)) | 81 | #define storage_present(drive) ata_present(IF_MV(drive)) |
82 | #endif | 82 | #endif |
83 | #elif (CONFIG_STORAGE & STORAGE_SD) | 83 | #elif (CONFIG_STORAGE & STORAGE_SD) |
84 | #define storage_spindown(seconds) (void)0 | 84 | #define storage_spindown sd_spindown |
85 | #define storage_sleep() (void)0 | 85 | #define storage_sleep sd_sleep |
86 | #define storage_spin() (void)0 | 86 | #define storage_spin sd_spin |
87 | 87 | ||
88 | #define storage_enable(on) sd_enable(on) | 88 | #define storage_enable(on) sd_enable(on) |
89 | #define storage_sleepnow() sd_sleepnow() | 89 | #define storage_sleepnow() sd_sleepnow() |
@@ -105,9 +105,9 @@ struct storage_info | |||
105 | #define storage_present(drive) sd_present(IF_MV(drive)) | 105 | #define storage_present(drive) sd_present(IF_MV(drive)) |
106 | #endif | 106 | #endif |
107 | #elif (CONFIG_STORAGE & STORAGE_MMC) | 107 | #elif (CONFIG_STORAGE & STORAGE_MMC) |
108 | #define storage_spindown(seconds) (void)0 | 108 | #define storage_spindown mmc_spindown |
109 | #define storage_sleep() (void)0 | 109 | #define storage_sleep mmc_sleep |
110 | #define storage_spin() (void)0 | 110 | #define storage_spin mmc_spin |
111 | 111 | ||
112 | #define storage_enable(on) mmc_enable(on) | 112 | #define storage_enable(on) mmc_enable(on) |
113 | #define storage_sleepnow() mmc_sleepnow() | 113 | #define storage_sleepnow() mmc_sleepnow() |
@@ -129,9 +129,9 @@ struct storage_info | |||
129 | #define storage_present(drive) mmc_present(IF_MV(drive)) | 129 | #define storage_present(drive) mmc_present(IF_MV(drive)) |
130 | #endif | 130 | #endif |
131 | #elif (CONFIG_STORAGE & STORAGE_NAND) | 131 | #elif (CONFIG_STORAGE & STORAGE_NAND) |
132 | #define storage_spindown(seconds) (void)0 | 132 | #define storage_spindown nand_spindown |
133 | #define storage_sleep() (void)0 | 133 | #define storage_sleep nand_sleep |
134 | #define storage_spin() (void)0 | 134 | #define storage_spin nand_spin |
135 | 135 | ||
136 | #define storage_enable(on) (void)0 | 136 | #define storage_enable(on) (void)0 |
137 | #define storage_sleepnow() nand_sleepnow() | 137 | #define storage_sleepnow() nand_sleepnow() |