Get the last errors I hope!

Change-Id: Ia285b95480cc9ac6494b745d80892c4b1b912341
This commit is contained in:
Michael Sevakis 2014-08-30 01:08:34 -04:00
parent f3d60aea34
commit da4938d6ee
6 changed files with 48 additions and 9 deletions

View file

@ -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 */