diff options
Diffstat (limited to 'firmware/export/mv.h')
-rw-r--r-- | firmware/export/mv.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/firmware/export/mv.h b/firmware/export/mv.h index b1c8a83008..0d98ed1211 100644 --- a/firmware/export/mv.h +++ b/firmware/export/mv.h | |||
@@ -37,18 +37,29 @@ | |||
37 | #define IF_MD(x...) | 37 | #define IF_MD(x...) |
38 | #define IF_MD_NONVOID(x...) void | 38 | #define IF_MD_NONVOID(x...) void |
39 | #define IF_MD_DRV(d) 0 | 39 | #define IF_MD_DRV(d) 0 |
40 | #endif | 40 | #endif /* HAVE_MULTIDRIVE */ |
41 | 41 | ||
42 | /* Volumes mean things that have filesystems on them, like partitions */ | 42 | /* Volumes mean things that have filesystems on them, like partitions */ |
43 | #ifdef HAVE_MULTIVOLUME | 43 | #ifdef HAVE_MULTIVOLUME |
44 | #define IF_MV(x...) x /* valist contents or empty */ | 44 | #define IF_MV(x...) x /* valist contents or empty */ |
45 | #define IF_MV_NONVOID(x...) x /* valist contents or 'void' */ | 45 | #define IF_MV_NONVOID(x...) x /* valist contents or 'void' */ |
46 | #define IF_MV_VOL(v) v /* volume argument or '0' */ | 46 | #define IF_MV_VOL(v) v /* volume argument or '0' */ |
47 | /* how to name volumes, first char must be outside of legal file names, | ||
48 | a number gets appended to enumerate, if applicable */ | ||
49 | #if (CONFIG_STORAGE & STORAGE_MMC) | ||
50 | #define VOL_NAMES "<MMC%d>" | ||
51 | #define VOL_ENUM_POS 4 /* position of %d, to avoid runtime calculation */ | ||
52 | #elif (CONFIG_STORAGE & STORAGE_SD) | ||
53 | #define VOL_NAMES "<microSD%d>" | ||
54 | #define VOL_ENUM_POS 8 /* position of %d, to avoid runtime calculation */ | ||
55 | #else | ||
56 | #define VOL_NAMES "<HD%d>" | ||
57 | #define VOL_ENUM_POS 3 | ||
58 | #endif /* CONFIG_STORAGE */ | ||
47 | #else /* empty definitions if no multi-volume */ | 59 | #else /* empty definitions if no multi-volume */ |
48 | #define IF_MV(x...) | 60 | #define IF_MV(x...) |
49 | #define IF_MV_NONVOID(x...) void | 61 | #define IF_MV_NONVOID(x...) void |
50 | #define IF_MV_VOL(v) 0 | 62 | #define IF_MV_VOL(v) 0 |
51 | #endif | 63 | #endif /* HAVE_MULTIVOLUME */ |
52 | |||
53 | 64 | ||
54 | #endif /* __MV_H__ */ | 65 | #endif /* __MV_H__ */ |