From d8d37ffdb8bed39df5d021afa9e09bf087b45d0d Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 17 Oct 2020 16:57:51 -0400 Subject: Define a USB storage type, and hook it up for hosted targets Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2 --- firmware/common/pathfuncs.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'firmware/common/pathfuncs.c') 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 #if (CONFIG_STORAGE & STORAGE_RAMDISK) STORAGE_DEC_IDX_RAMDISK, #endif +#if (CONFIG_STORAGE & STORAGE_USB) + STORAGE_DEC_IDX_USB, +#endif #if (CONFIG_STORAGE & STORAGE_HOSTFS) STORAGE_DEC_IDX_HOSTFS, #endif @@ -68,6 +71,9 @@ static const char * const storage_dec_names[STORAGE_NUM_DEC_IDX+1] = #if (CONFIG_STORAGE & STORAGE_RAMDISK) [STORAGE_DEC_IDX_RAMDISK] = RAMDISK_VOL_DEC, #endif +#if (CONFIG_STORAGE & STORAGE_USB) + [STORAGE_DEC_IDX_USB] = USB_VOL_DEC, +#endif #if (CONFIG_STORAGE & STORAGE_HOSTFS) [STORAGE_DEC_IDX_HOSTFS] = HOSTFS_VOL_DEC, #endif @@ -92,6 +98,9 @@ static const unsigned char storage_dec_indexes[STORAGE_NUM_TYPES+1] = #if (CONFIG_STORAGE & STORAGE_RAMDISK) [STORAGE_RAMDISK_NUM] = STORAGE_DEC_IDX_RAMDISK, #endif +#if (CONFIG_STORAGE & STORAGE_USB) + [STORAGE_USB_NUM] = STORAGE_DEC_IDX_USB, +#endif #if (CONFIG_STORAGE & STORAGE_HOSTFS) [STORAGE_HOSTFS_NUM] = STORAGE_DEC_IDX_HOSTFS, #endif -- cgit v1.2.3