diff options
Diffstat (limited to 'firmware/storage.c')
-rw-r--r-- | firmware/storage.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/firmware/storage.c b/firmware/storage.c index cee7d1cc8b..d6700d1148 100644 --- a/firmware/storage.c +++ b/firmware/storage.c | |||
@@ -293,6 +293,35 @@ int storage_soft_reset(void) | |||
293 | return rc; | 293 | return rc; |
294 | } | 294 | } |
295 | 295 | ||
296 | #ifdef HAVE_STORAGE_FLUSH | ||
297 | int storage_flush(void) | ||
298 | { | ||
299 | int rc=0; | ||
300 | |||
301 | #if (CONFIG_STORAGE & STORAGE_ATA) | ||
302 | //if ((rc=ata_flush())) return rc; | ||
303 | #endif | ||
304 | |||
305 | #if (CONFIG_STORAGE & STORAGE_MMC) | ||
306 | //if ((rc=mmc_flush())) return rc; | ||
307 | #endif | ||
308 | |||
309 | #if (CONFIG_STORAGE & STORAGE_SD) | ||
310 | //if ((rc=sd_flush())) return rc; | ||
311 | #endif | ||
312 | |||
313 | #if (CONFIG_STORAGE & STORAGE_NAND) | ||
314 | if ((rc=nand_flush())) return rc; | ||
315 | #endif | ||
316 | |||
317 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) | ||
318 | //if ((rc=ramdisk_flush())) return rc; | ||
319 | #endif | ||
320 | |||
321 | return rc; | ||
322 | } | ||
323 | #endif | ||
324 | |||
296 | void storage_spin(void) | 325 | void storage_spin(void) |
297 | { | 326 | { |
298 | #if (CONFIG_STORAGE & STORAGE_ATA) | 327 | #if (CONFIG_STORAGE & STORAGE_ATA) |