summaryrefslogtreecommitdiff
path: root/firmware/export/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/storage.h')
-rw-r--r--firmware/export/storage.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h
index 6c875bc847..1793e385df 100644
--- a/firmware/export/storage.h
+++ b/firmware/export/storage.h
@@ -95,7 +95,7 @@ static inline void stub_storage_spindown(int timeout) { (void)timeout; }
95 #define storage_get_identify() ata_get_identify() 95 #define storage_get_identify() ata_get_identify()
96 96
97 #ifdef STORAGE_GET_INFO 97 #ifdef STORAGE_GET_INFO
98 #define storage_get_info(drive, info) ata_get_info(IF_MD2(drive,) info) 98 #define storage_get_info(drive, info) ata_get_info(IF_MD(drive,) info)
99 #endif 99 #endif
100 #ifdef HAVE_HOTSWAP 100 #ifdef HAVE_HOTSWAP
101 #define storage_removable(drive) ata_removable(IF_MD(drive)) 101 #define storage_removable(drive) ata_removable(IF_MD(drive))
@@ -121,7 +121,7 @@ static inline void stub_storage_spindown(int timeout) { (void)timeout; }
121 #define storage_get_identify() sd_get_identify() 121 #define storage_get_identify() sd_get_identify()
122 122
123 #ifdef STORAGE_GET_INFO 123 #ifdef STORAGE_GET_INFO
124 #define storage_get_info(drive, info) sd_get_info(IF_MD2(drive,) info) 124 #define storage_get_info(drive, info) sd_get_info(IF_MD(drive,) info)
125 #endif 125 #endif
126 #ifdef HAVE_HOTSWAP 126 #ifdef HAVE_HOTSWAP
127 #define storage_removable(drive) sd_removable(IF_MD(drive)) 127 #define storage_removable(drive) sd_removable(IF_MD(drive))
@@ -146,7 +146,7 @@ static inline void stub_storage_spindown(int timeout) { (void)timeout; }
146 #define storage_get_identify() mmc_get_identify() 146 #define storage_get_identify() mmc_get_identify()
147 147
148 #ifdef STORAGE_GET_INFO 148 #ifdef STORAGE_GET_INFO
149 #define storage_get_info(drive, info) mmc_get_info(IF_MD2(drive,) info) 149 #define storage_get_info(drive, info) mmc_get_info(IF_MD(drive,) info)
150 #endif 150 #endif
151 #ifdef HAVE_HOTSWAP 151 #ifdef HAVE_HOTSWAP
152 #define storage_removable(drive) mmc_removable(IF_MD(drive)) 152 #define storage_removable(drive) mmc_removable(IF_MD(drive))
@@ -171,7 +171,7 @@ static inline void stub_storage_spindown(int timeout) { (void)timeout; }
171 #define storage_get_identify() nand_get_identify() 171 #define storage_get_identify() nand_get_identify()
172 172
173 #ifdef STORAGE_GET_INFO 173 #ifdef STORAGE_GET_INFO
174 #define storage_get_info(drive, info) nand_get_info(IF_MD2(drive,) info) 174 #define storage_get_info(drive, info) nand_get_info(IF_MD(drive,) info)
175 #endif 175 #endif
176 #ifdef HAVE_HOTSWAP 176 #ifdef HAVE_HOTSWAP
177 #define storage_removable(drive) nand_removable(IF_MD(drive)) 177 #define storage_removable(drive) nand_removable(IF_MD(drive))
@@ -196,7 +196,7 @@ static inline void stub_storage_spindown(int timeout) { (void)timeout; }
196 #define storage_get_identify() ramdisk_get_identify() 196 #define storage_get_identify() ramdisk_get_identify()
197 197
198 #ifdef STORAGE_GET_INFO 198 #ifdef STORAGE_GET_INFO
199 #define storage_get_info(drive, info) ramdisk_get_info(IF_MD2(drive,) info) 199 #define storage_get_info(drive, info) ramdisk_get_info(IF_MD(drive,) info)
200 #endif 200 #endif
201 #ifdef HAVE_HOTSWAP 201 #ifdef HAVE_HOTSWAP
202 #define storage_removable(drive) ramdisk_removable(IF_MD(drive)) 202 #define storage_removable(drive) ramdisk_removable(IF_MD(drive))
@@ -231,6 +231,6 @@ bool storage_present(int drive);
231 231
232#endif /* NOT CONFIG_STORAGE_MULTI and NOT SIMULATOR*/ 232#endif /* NOT CONFIG_STORAGE_MULTI and NOT SIMULATOR*/
233 233
234int storage_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* buf); 234int storage_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* buf);
235int storage_write_sectors(IF_MD2(int drive,) unsigned long start, int count, const void* buf); 235int storage_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf);
236#endif 236#endif