diff options
Diffstat (limited to 'firmware/export/hostfs.h')
-rw-r--r-- | firmware/export/hostfs.h | 25 |
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); extern bool hostfs_present(int drive); #endif +/* This has to be repeated here for now for sim's sake since HAVE_HOSTFS + eats all the other stuff in storage.h. The sim probably shouldn't use + this. */ +#ifdef CONFIG_STORAGE_MULTI +extern int hostfs_driver_type(int drive); +#else +# ifdef APPLICATION +# define hostfs_driver_type(drive) (STORAGE_HOSTFS_NUM) +# else /* !APPLICATION */ +# if (CONFIG_STORAGE & STORAGE_ATA) +# define hostfs_driver_type(drive) (STORAGE_ATA_NUM) +# elif (CONFIG_STORAGE & STORAGE_SD) +# define hostfs_driver_type(drive) (STORAGE_SD_NUM) +# elif (CONFIG_STORAGE & STORAGE_MMC) +# define hostfs_driver_type(drive) (STORAGE_MMC_NUM) +# elif (CONFIG_STORAGE & STORAGE_NAND) +# define hostfs_driver_type(drive) (STORAGE_NAND_NUM) +# elif (CONFIG_STORAGE & STORAGE_RAMDISK) +# define hostfs_driver_type(drive) (STORAGE_RAMDISK_NUM) +# else +# error Unknown storage driver +# endif /* CONFIG_STORAGE */ +# endif /* APPLICATION */ +#endif /* CONFIG_STORAGE_MULTI */ + #endif /* HOSTFS_H */ |