summaryrefslogtreecommitdiffstats
path: root/uisimulator/common/sim_tasks.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2014-08-30 01:08:34 -0400
committerMichael Sevakis <jethead71@rockbox.org>2014-08-30 01:29:18 -0400
commitda4938d6eed9c1c29e389e9a1de6a599d365fe09 (patch)
tree31d34d70b83583f91626e23fb83dbba4eb094284 /uisimulator/common/sim_tasks.c
parentf3d60aea34de60c4371c04fa1b8482ca71a64b53 (diff)
downloadrockbox-da4938d6eed9c1c29e389e9a1de6a599d365fe09.tar.gz
rockbox-da4938d6eed9c1c29e389e9a1de6a599d365fe09.zip
Get the last errors I hope!
Change-Id: Ia285b95480cc9ac6494b745d80892c4b1b912341
Diffstat (limited to 'uisimulator/common/sim_tasks.c')
-rw-r--r--uisimulator/common/sim_tasks.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/uisimulator/common/sim_tasks.c b/uisimulator/common/sim_tasks.c
index 003b993740..c2497d113b 100644
--- a/uisimulator/common/sim_tasks.c
+++ b/uisimulator/common/sim_tasks.c
@@ -234,4 +234,26 @@ bool mmc_touched(void)
}
#endif
+#ifdef CONFIG_STORAGE_MULTI
+int hostfs_driver_type(int drive)
+{
+ /* Hack alert */
+#if (CONFIG_STORAGE & STORAGE_ATA)
+ #define SIMEXT1_TYPE_NUM STORAGE_ATA_NUM
+#elif (CONFIG_STORAGE & STORAGE_SD)
+ #define SIMEXT1_TYPE_NUM STORAGE_SD_NUM
+#elif (CONFIG_STORAGE & STORAGE_MMC)
+ #define SIMEXT1_TYPE_NUM STORAGE_MMC_NUM
+#elif (CONFIG_STORAGE & STORAGE_NAND)
+ #define SIMEXT1_TYPE_NUM STORAGE_NAND_NUM
+#elif (CONFIG_STORAGE & STORAGE_RAMDISK)
+ #define SIMEXT1_TYPE_NUM STORAGE_RAMDISK_NUM
+#else
+#error Unknown storage driver
+#endif /* CONFIG_STORAGE */
+
+ return drive > 0 ? SIMEXT1_TYPE_NUM : STORAGE_HOSTFS_NUM;
+}
+#endif /* CONFIG_STORAGE_MULTI */
+
#endif /* CONFIG_STORAGE & STORAGE_MMC */