diff options
Diffstat (limited to 'firmware/export/storage.h')
-rw-r--r-- | firmware/export/storage.h | 111 |
1 files changed, 21 insertions, 90 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h index 68867a98b1..d4e69163b7 100644 --- a/firmware/export/storage.h +++ b/firmware/export/storage.h | |||
@@ -175,98 +175,29 @@ struct storage_info | |||
175 | 175 | ||
176 | #endif /* NOT CONFIG_STORAGE_MULTI */ | 176 | #endif /* NOT CONFIG_STORAGE_MULTI */ |
177 | #else /*NOT SIMULATOR */ | 177 | #else /*NOT SIMULATOR */ |
178 | static inline void storage_enable(bool on) | 178 | void storage_enable(bool on); |
179 | { | 179 | void storage_sleep(void); |
180 | (void)on; | 180 | void storage_sleepnow(void); |
181 | } | 181 | bool storage_disk_is_active(void); |
182 | static inline void storage_sleep(void) | 182 | int storage_hard_reset(void); |
183 | { | 183 | int storage_soft_reset(void); |
184 | } | 184 | int storage_init(void); |
185 | static inline void storage_sleepnow(void) | 185 | void storage_close(void); |
186 | { | 186 | int storage_read_sectors(int drive, unsigned long start, int count, void* buf); |
187 | } | 187 | int storage_write_sectors(int drive, unsigned long start, int count, const void* buf); |
188 | static inline bool storage_disk_is_active(void) | 188 | void storage_spin(void); |
189 | { | 189 | void storage_spindown(int seconds); |
190 | return 0; | ||
191 | } | ||
192 | static inline int storage_hard_reset(void) | ||
193 | { | ||
194 | return 0; | ||
195 | } | ||
196 | static inline int storage_soft_reset(void) | ||
197 | { | ||
198 | return 0; | ||
199 | } | ||
200 | static inline int storage_init(void) | ||
201 | { | ||
202 | return 0; | ||
203 | } | ||
204 | static inline void storage_close(void) | ||
205 | { | ||
206 | } | ||
207 | static inline int storage_read_sectors(int drive, unsigned long start, int count, void* buf) | ||
208 | { | ||
209 | (void)drive; | ||
210 | (void)start; | ||
211 | (void)count; | ||
212 | (void)buf; | ||
213 | return 0; | ||
214 | } | ||
215 | static inline int storage_write_sectors(int drive, unsigned long start, int count, const void* buf) | ||
216 | { | ||
217 | (void)drive; | ||
218 | (void)start; | ||
219 | (void)count; | ||
220 | (void)buf; | ||
221 | return 0; | ||
222 | } | ||
223 | |||
224 | static inline void storage_spin(void) | ||
225 | { | ||
226 | } | ||
227 | static inline void storage_spindown(int seconds) | ||
228 | { | ||
229 | (void)seconds; | ||
230 | } | ||
231 | |||
232 | #if (CONFIG_LED == LED_REAL) | 190 | #if (CONFIG_LED == LED_REAL) |
233 | static inline void storage_set_led_enabled(bool enabled) | 191 | void storage_set_led_enabled(bool enabled); |
234 | { | 192 | #endif |
235 | (void)enabled; | 193 | long storage_last_disk_activity(void); |
236 | } | 194 | int storage_spinup_time(void); |
237 | #endif /*LED*/ | ||
238 | |||
239 | static inline long storage_last_disk_activity(void) | ||
240 | { | ||
241 | return 0; | ||
242 | } | ||
243 | |||
244 | static inline int storage_spinup_time(void) | ||
245 | { | ||
246 | return 0; | ||
247 | } | ||
248 | |||
249 | #ifdef STORAGE_GET_INFO | 195 | #ifdef STORAGE_GET_INFO |
250 | static inline void storage_get_info(int drive, struct storage_info *info) | 196 | void storage_get_info(int drive, struct storage_info *info); |
251 | { | 197 | #endif |
252 | (void)drive; | 198 | #ifdef HOTSWAP |
253 | (void)info; | 199 | bool storage_removable(int drive); |
254 | } | 200 | bool storage_present(int drive); |
255 | #endif | 201 | #endif |
256 | |||
257 | #ifdef HAVE_HOTSWAP | ||
258 | static inline bool storage_removable(int drive) | ||
259 | { | ||
260 | (void)drive; | ||
261 | return 0; | ||
262 | } | ||
263 | |||
264 | static inline bool storage_present(int drive) | ||
265 | { | ||
266 | (void)drive; | ||
267 | return 0; | ||
268 | } | ||
269 | #endif /* HOTSWAP */ | ||
270 | |||
271 | #endif/*NOT SIMULATOR */ | 202 | #endif/*NOT SIMULATOR */ |
272 | #endif | 203 | #endif |