summaryrefslogtreecommitdiff
path: root/firmware/export/mmc.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/mmc.h')
-rw-r--r--firmware/export/mmc.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/firmware/export/mmc.h b/firmware/export/mmc.h
index 06d99d219e..f2b0ad3509 100644
--- a/firmware/export/mmc.h
+++ b/firmware/export/mmc.h
@@ -23,7 +23,7 @@
23#define __MMC_H__ 23#define __MMC_H__
24 24
25#include <stdbool.h> 25#include <stdbool.h>
26#include "mv.h" /* for HAVE_MULTIVOLUME or not */ 26#include "mv.h" /* for HAVE_MULTIDRIVE or not */
27 27
28struct storage_info; 28struct storage_info;
29 29
@@ -35,19 +35,24 @@ bool mmc_disk_is_active(void);
35int mmc_soft_reset(void); 35int mmc_soft_reset(void);
36int mmc_init(void); 36int mmc_init(void);
37void mmc_close(void); 37void mmc_close(void);
38int mmc_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf); 38int mmc_read_sectors(IF_MD2(int drive,) unsigned long start, int count, void* buf);
39int mmc_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const void* buf); 39int mmc_write_sectors(IF_MD2(int drive,) unsigned long start, int count, const void* buf);
40void mmc_spin(void); 40void mmc_spin(void);
41int mmc_spinup_time(void); 41int mmc_spinup_time(void);
42 42
43#ifdef STORAGE_GET_INFO 43#ifdef STORAGE_GET_INFO
44void mmc_get_info(IF_MV2(int drive,) struct storage_info *info); 44void mmc_get_info(IF_MD2(int drive,) struct storage_info *info);
45#endif 45#endif
46#ifdef HAVE_HOTSWAP 46#ifdef HAVE_HOTSWAP
47bool mmc_removable(IF_MV_NONVOID(int drive)); 47bool mmc_removable(IF_MD_NONVOID(int drive));
48bool mmc_present(IF_MV_NONVOID(int drive)); 48bool mmc_present(IF_MD_NONVOID(int drive));
49#endif 49#endif
50 50
51long mmc_last_disk_activity(void); 51long mmc_last_disk_activity(void);
52 52
53#ifdef CONFIG_STORAGE_MULTI
54int mmc_num_drives(int first_drive);
55#endif
56
57
53#endif 58#endif