summaryrefslogtreecommitdiff
path: root/firmware/export/hostfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/hostfs.h')
-rw-r--r--firmware/export/hostfs.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/firmware/export/hostfs.h b/firmware/export/hostfs.h
index bbadecec31..a24d009ca9 100644
--- a/firmware/export/hostfs.h
+++ b/firmware/export/hostfs.h
@@ -41,4 +41,29 @@ extern bool hostfs_removable(int drive);
41extern bool hostfs_present(int drive); 41extern bool hostfs_present(int drive);
42#endif 42#endif
43 43
44/* This has to be repeated here for now for sim's sake since HAVE_HOSTFS
45 eats all the other stuff in storage.h. The sim probably shouldn't use
46 this. */
47#ifdef CONFIG_STORAGE_MULTI
48extern int hostfs_driver_type(int drive);
49#else
50# ifdef APPLICATION
51# define hostfs_driver_type(drive) (STORAGE_HOSTFS_NUM)
52# else /* !APPLICATION */
53# if (CONFIG_STORAGE & STORAGE_ATA)
54# define hostfs_driver_type(drive) (STORAGE_ATA_NUM)
55# elif (CONFIG_STORAGE & STORAGE_SD)
56# define hostfs_driver_type(drive) (STORAGE_SD_NUM)
57# elif (CONFIG_STORAGE & STORAGE_MMC)
58# define hostfs_driver_type(drive) (STORAGE_MMC_NUM)
59# elif (CONFIG_STORAGE & STORAGE_NAND)
60# define hostfs_driver_type(drive) (STORAGE_NAND_NUM)
61# elif (CONFIG_STORAGE & STORAGE_RAMDISK)
62# define hostfs_driver_type(drive) (STORAGE_RAMDISK_NUM)
63# else
64# error Unknown storage driver
65# endif /* CONFIG_STORAGE */
66# endif /* APPLICATION */
67#endif /* CONFIG_STORAGE_MULTI */
68
44#endif /* HOSTFS_H */ 69#endif /* HOSTFS_H */