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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h
index 95e42f67f4..8a0219c523 100644
--- a/firmware/export/storage.h
+++ b/firmware/export/storage.h
@@ -102,6 +102,7 @@ static inline int storage_soft_reset(void)
102} 102}
103static inline int storage_init(void) 103static inline int storage_init(void)
104{ 104{
105#ifndef SIMULATOR
105#if (CONFIG_STORAGE & STORAGE_ATA) 106#if (CONFIG_STORAGE & STORAGE_ATA)
106 return ata_init(); 107 return ata_init();
107#elif (CONFIG_STORAGE & STORAGE_SD) 108#elif (CONFIG_STORAGE & STORAGE_SD)
@@ -113,6 +114,15 @@ static inline int storage_init(void)
113#else 114#else
114 #error No storage driver! 115 #error No storage driver!
115#endif 116#endif
117#else
118 return 0;
119#endif
120}
121static inline void storage_close(void)
122{
123#if (CONFIG_STORAGE & STORAGE_ATA)
124 ata_close();
125#endif
116} 126}
117static inline int storage_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf) 127static inline int storage_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf)
118{ 128{