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 b1c8a83..0d98ed1 100644 --- a/firmware/export/mv.h +++ b/firmware/export/mv.h @@ -37,18 +37,29 @@ #define IF_MD(x...) #define IF_MD_NONVOID(x...) void #define IF_MD_DRV(d) 0 -#endif +#endif /* HAVE_MULTIDRIVE */ /* Volumes mean things that have filesystems on them, like partitions */ #ifdef HAVE_MULTIVOLUME #define IF_MV(x...) x /* valist contents or empty */ #define IF_MV_NONVOID(x...) x /* valist contents or 'void' */ #define IF_MV_VOL(v) v /* volume argument or '0' */ +/* how to name volumes, first char must be outside of legal file names, + a number gets appended to enumerate, if applicable */ +#if (CONFIG_STORAGE & STORAGE_MMC) +#define VOL_NAMES "<MMC%d>" +#define VOL_ENUM_POS 4 /* position of %d, to avoid runtime calculation */ +#elif (CONFIG_STORAGE & STORAGE_SD) +#define VOL_NAMES "<microSD%d>" +#define VOL_ENUM_POS 8 /* position of %d, to avoid runtime calculation */ +#else +#define VOL_NAMES "<HD%d>" +#define VOL_ENUM_POS 3 +#endif /* CONFIG_STORAGE */ #else /* empty definitions if no multi-volume */ #define IF_MV(x...) #define IF_MV_NONVOID(x...) void #define IF_MV_VOL(v) 0 -#endif - +#endif /* HAVE_MULTIVOLUME */ #endif /* __MV_H__ */ |