1
0
Fork 0
forked from len0rd/rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18962 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2008-11-01 16:49:38 +00:00
parent ad9db4de3d
commit 526304e1ce
6 changed files with 30 additions and 19 deletions

View file

@ -39,6 +39,10 @@
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
/* LCD dimensions */
#define LCD_WIDTH 128
#define LCD_HEIGHT 64
@ -120,8 +124,4 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/"
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
#endif /* SIMULATOR */

View file

@ -48,6 +48,10 @@
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
/* Some (2Gb?) D2s seem to be FAT16 formatted */
#define HAVE_FAT16SUPPORT
@ -145,8 +149,5 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
#endif /* SIMULATOR */

View file

@ -69,6 +69,10 @@
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
/* LCD dimensions */
#define LCD_WIDTH 160
#define LCD_HEIGHT 128
@ -155,10 +159,6 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/"
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
#ifdef BOOTLOADER
#define TCCBOOT
#endif

View file

@ -45,6 +45,10 @@
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
/* LCD dimensions */
#define LCD_WIDTH 128
#define LCD_HEIGHT 64
@ -139,8 +143,4 @@
#define ICODE_ATTR_ALAC
#define IBSS_ATTR_SHORTEN_DECODED0
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
#endif /* SIMULATOR */

View file

@ -38,6 +38,10 @@
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
/* LCD dimensions */
#define LCD_WIDTH 128
#define LCD_HEIGHT 64
@ -124,8 +128,4 @@
#define ICODE_ATTR_ALAC
#define IBSS_ATTR_SHORTEN_DECODED0
#define CONFIG_STORAGE STORAGE_NAND
#define CONFIG_NAND NAND_TCC
#endif /* SIMULATOR */

View file

@ -102,6 +102,7 @@ static inline int storage_soft_reset(void)
}
static inline int storage_init(void)
{
#ifndef SIMULATOR
#if (CONFIG_STORAGE & STORAGE_ATA)
return ata_init();
#elif (CONFIG_STORAGE & STORAGE_SD)
@ -113,6 +114,15 @@ static inline int storage_init(void)
#else
#error No storage driver!
#endif
#else
return 0;
#endif
}
static inline void storage_close(void)
{
#if (CONFIG_STORAGE & STORAGE_ATA)
ata_close();
#endif
}
static inline int storage_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf)
{