diff options
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/pathfuncs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/common/pathfuncs.c b/firmware/common/pathfuncs.c index 0935a9a6e3..1c48a54972 100644 --- a/firmware/common/pathfuncs.c +++ b/firmware/common/pathfuncs.c | |||
@@ -45,6 +45,9 @@ enum storage_name_dec_indexes | |||
45 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) | 45 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) |
46 | STORAGE_DEC_IDX_RAMDISK, | 46 | STORAGE_DEC_IDX_RAMDISK, |
47 | #endif | 47 | #endif |
48 | #if (CONFIG_STORAGE & STORAGE_USB) | ||
49 | STORAGE_DEC_IDX_USB, | ||
50 | #endif | ||
48 | #if (CONFIG_STORAGE & STORAGE_HOSTFS) | 51 | #if (CONFIG_STORAGE & STORAGE_HOSTFS) |
49 | STORAGE_DEC_IDX_HOSTFS, | 52 | STORAGE_DEC_IDX_HOSTFS, |
50 | #endif | 53 | #endif |
@@ -68,6 +71,9 @@ static const char * const storage_dec_names[STORAGE_NUM_DEC_IDX+1] = | |||
68 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) | 71 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) |
69 | [STORAGE_DEC_IDX_RAMDISK] = RAMDISK_VOL_DEC, | 72 | [STORAGE_DEC_IDX_RAMDISK] = RAMDISK_VOL_DEC, |
70 | #endif | 73 | #endif |
74 | #if (CONFIG_STORAGE & STORAGE_USB) | ||
75 | [STORAGE_DEC_IDX_USB] = USB_VOL_DEC, | ||
76 | #endif | ||
71 | #if (CONFIG_STORAGE & STORAGE_HOSTFS) | 77 | #if (CONFIG_STORAGE & STORAGE_HOSTFS) |
72 | [STORAGE_DEC_IDX_HOSTFS] = HOSTFS_VOL_DEC, | 78 | [STORAGE_DEC_IDX_HOSTFS] = HOSTFS_VOL_DEC, |
73 | #endif | 79 | #endif |
@@ -92,6 +98,9 @@ static const unsigned char storage_dec_indexes[STORAGE_NUM_TYPES+1] = | |||
92 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) | 98 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) |
93 | [STORAGE_RAMDISK_NUM] = STORAGE_DEC_IDX_RAMDISK, | 99 | [STORAGE_RAMDISK_NUM] = STORAGE_DEC_IDX_RAMDISK, |
94 | #endif | 100 | #endif |
101 | #if (CONFIG_STORAGE & STORAGE_USB) | ||
102 | [STORAGE_USB_NUM] = STORAGE_DEC_IDX_USB, | ||
103 | #endif | ||
95 | #if (CONFIG_STORAGE & STORAGE_HOSTFS) | 104 | #if (CONFIG_STORAGE & STORAGE_HOSTFS) |
96 | [STORAGE_HOSTFS_NUM] = STORAGE_DEC_IDX_HOSTFS, | 105 | [STORAGE_HOSTFS_NUM] = STORAGE_DEC_IDX_HOSTFS, |
97 | #endif | 106 | #endif |