summaryrefslogtreecommitdiffstats
path: root/firmware/export/storage.h
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-01-03 10:27:43 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-01-03 10:27:43 +0000
commit64fb3e8df30a10163bb3474b6ae0664d59ae80bb (patch)
treec4c833794a605620aebee9c419baaf25d7a97f7f /firmware/export/storage.h
parent56d972ad572fd270a117858a982b106a3175d8e0 (diff)
downloadrockbox-64fb3e8df30a10163bb3474b6ae0664d59ae80bb.tar.gz
rockbox-64fb3e8df30a10163bb3474b6ae0664d59ae80bb.zip
Fix more tabs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/storage.h')
-rw-r--r--firmware/export/storage.h226
1 files changed, 113 insertions, 113 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h
index cb4ad7fc3a..0096e87a8d 100644
--- a/firmware/export/storage.h
+++ b/firmware/export/storage.h
@@ -56,140 +56,140 @@ struct storage_info
* pointers, which doesn't work with argument-macros.
*/
#define storage_num_drives() NUM_DRIVES
- #if (CONFIG_STORAGE & STORAGE_ATA)
- #define storage_spindown ata_spindown
- #define storage_sleep ata_sleep
- #define storage_spin ata_spin
+ #if (CONFIG_STORAGE & STORAGE_ATA)
+ #define storage_spindown ata_spindown
+ #define storage_sleep ata_sleep
+ #define storage_spin ata_spin
- #define storage_enable(on) ata_enable(on)
- #define storage_sleepnow() ata_sleepnow()
- #define storage_disk_is_active() ata_disk_is_active()
- #define storage_soft_reset() ata_soft_reset()
- #define storage_init() ata_init()
- #define storage_close() ata_close()
- #define storage_read_sectors(drive, start, count, buf) ata_read_sectors(IF_MD2(drive,) start, count, buf)
- #define storage_write_sectors(drive, start, count, buf) ata_write_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_enable(on) ata_enable(on)
+ #define storage_sleepnow() ata_sleepnow()
+ #define storage_disk_is_active() ata_disk_is_active()
+ #define storage_soft_reset() ata_soft_reset()
+ #define storage_init() ata_init()
+ #define storage_close() ata_close()
+ #define storage_read_sectors(drive, start, count, buf) ata_read_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_write_sectors(drive, start, count, buf) ata_write_sectors(IF_MD2(drive,) start, count, buf)
#ifdef HAVE_STORAGE_FLUSH
#define storage_flush() (void)0
#endif
- #define storage_last_disk_activity() ata_last_disk_activity()
- #define storage_spinup_time() ata_spinup_time()
- #define storage_get_identify() ata_get_identify()
+ #define storage_last_disk_activity() ata_last_disk_activity()
+ #define storage_spinup_time() ata_spinup_time()
+ #define storage_get_identify() ata_get_identify()
- #ifdef STORAGE_GET_INFO
- #define storage_get_info(drive, info) ata_get_info(IF_MD2(drive,) info)
- #endif
- #ifdef HAVE_HOTSWAP
- #define storage_removable(drive) ata_removable(IF_MD(drive))
- #define storage_present(drive) ata_present(IF_MD(drive))
- #endif
- #elif (CONFIG_STORAGE & STORAGE_SD)
- #define storage_spindown sd_spindown
- #define storage_sleep sd_sleep
- #define storage_spin sd_spin
+ #ifdef STORAGE_GET_INFO
+ #define storage_get_info(drive, info) ata_get_info(IF_MD2(drive,) info)
+ #endif
+ #ifdef HAVE_HOTSWAP
+ #define storage_removable(drive) ata_removable(IF_MD(drive))
+ #define storage_present(drive) ata_present(IF_MD(drive))
+ #endif
+ #elif (CONFIG_STORAGE & STORAGE_SD)
+ #define storage_spindown sd_spindown
+ #define storage_sleep sd_sleep
+ #define storage_spin sd_spin
- #define storage_enable(on) sd_enable(on)
- #define storage_sleepnow() sd_sleepnow()
- #define storage_disk_is_active() 0
- #define storage_soft_reset() (void)0
- #define storage_init() sd_init()
- #define storage_read_sectors(drive, start, count, buf) sd_read_sectors(IF_MD2(drive,) start, count, buf)
- #define storage_write_sectors(drive, start, count, buf) sd_write_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_enable(on) sd_enable(on)
+ #define storage_sleepnow() sd_sleepnow()
+ #define storage_disk_is_active() 0
+ #define storage_soft_reset() (void)0
+ #define storage_init() sd_init()
+ #define storage_read_sectors(drive, start, count, buf) sd_read_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_write_sectors(drive, start, count, buf) sd_write_sectors(IF_MD2(drive,) start, count, buf)
#ifdef HAVE_STORAGE_FLUSH
#define storage_flush() (void)0
#endif
- #define storage_last_disk_activity() sd_last_disk_activity()
- #define storage_spinup_time() 0
- #define storage_get_identify() sd_get_identify()
+ #define storage_last_disk_activity() sd_last_disk_activity()
+ #define storage_spinup_time() 0
+ #define storage_get_identify() sd_get_identify()
- #ifdef STORAGE_GET_INFO
- #define storage_get_info(drive, info) sd_get_info(IF_MD2(drive,) info)
- #endif
- #ifdef HAVE_HOTSWAP
- #define storage_removable(drive) sd_removable(IF_MD(drive))
- #define storage_present(drive) sd_present(IF_MD(drive))
- #endif
- #elif (CONFIG_STORAGE & STORAGE_MMC)
- #define storage_spindown mmc_spindown
- #define storage_sleep mmc_sleep
- #define storage_spin mmc_spin
+ #ifdef STORAGE_GET_INFO
+ #define storage_get_info(drive, info) sd_get_info(IF_MD2(drive,) info)
+ #endif
+ #ifdef HAVE_HOTSWAP
+ #define storage_removable(drive) sd_removable(IF_MD(drive))
+ #define storage_present(drive) sd_present(IF_MD(drive))
+ #endif
+ #elif (CONFIG_STORAGE & STORAGE_MMC)
+ #define storage_spindown mmc_spindown
+ #define storage_sleep mmc_sleep
+ #define storage_spin mmc_spin
- #define storage_enable(on) mmc_enable(on)
- #define storage_sleepnow() mmc_sleepnow()
- #define storage_disk_is_active() mmc_disk_is_active()
- #define storage_soft_reset() (void)0
- #define storage_init() mmc_init()
- #define storage_read_sectors(drive, start, count, buf) mmc_read_sectors(IF_MD2(drive,) start, count, buf)
- #define storage_write_sectors(drive, start, count, buf) mmc_write_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_enable(on) mmc_enable(on)
+ #define storage_sleepnow() mmc_sleepnow()
+ #define storage_disk_is_active() mmc_disk_is_active()
+ #define storage_soft_reset() (void)0
+ #define storage_init() mmc_init()
+ #define storage_read_sectors(drive, start, count, buf) mmc_read_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_write_sectors(drive, start, count, buf) mmc_write_sectors(IF_MD2(drive,) start, count, buf)
#ifdef HAVE_STORAGE_FLUSH
#define storage_flush() (void)0
#endif
- #define storage_last_disk_activity() mmc_last_disk_activity()
- #define storage_spinup_time() 0
- #define storage_get_identify() mmc_get_identify()
-
- #ifdef STORAGE_GET_INFO
- #define storage_get_info(drive, info) mmc_get_info(IF_MD2(drive,) info)
- #endif
- #ifdef HAVE_HOTSWAP
- #define storage_removable(drive) mmc_removable(IF_MD(drive))
- #define storage_present(drive) mmc_present(IF_MD(drive))
- #endif
- #elif (CONFIG_STORAGE & STORAGE_NAND)
- #define storage_spindown nand_spindown
- #define storage_sleep nand_sleep
- #define storage_spin nand_spin
+ #define storage_last_disk_activity() mmc_last_disk_activity()
+ #define storage_spinup_time() 0
+ #define storage_get_identify() mmc_get_identify()
+
+ #ifdef STORAGE_GET_INFO
+ #define storage_get_info(drive, info) mmc_get_info(IF_MD2(drive,) info)
+ #endif
+ #ifdef HAVE_HOTSWAP
+ #define storage_removable(drive) mmc_removable(IF_MD(drive))
+ #define storage_present(drive) mmc_present(IF_MD(drive))
+ #endif
+ #elif (CONFIG_STORAGE & STORAGE_NAND)
+ #define storage_spindown nand_spindown
+ #define storage_sleep nand_sleep
+ #define storage_spin nand_spin
- #define storage_enable(on) (void)0
- #define storage_sleepnow() nand_sleepnow()
- #define storage_disk_is_active() 0
- #define storage_soft_reset() (void)0
- #define storage_init() nand_init()
- #define storage_read_sectors(drive, start, count, buf) nand_read_sectors(IF_MD2(drive,) start, count, buf)
- #define storage_write_sectors(drive, start, count, buf) nand_write_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_enable(on) (void)0
+ #define storage_sleepnow() nand_sleepnow()
+ #define storage_disk_is_active() 0
+ #define storage_soft_reset() (void)0
+ #define storage_init() nand_init()
+ #define storage_read_sectors(drive, start, count, buf) nand_read_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_write_sectors(drive, start, count, buf) nand_write_sectors(IF_MD2(drive,) start, count, buf)
#ifdef HAVE_STORAGE_FLUSH
- #define storage_flush() nand_flush()
+ #define storage_flush() nand_flush()
+ #endif
+ #define storage_last_disk_activity() nand_last_disk_activity()
+ #define storage_spinup_time() 0
+ #define storage_get_identify() nand_get_identify()
+
+ #ifdef STORAGE_GET_INFO
+ #define storage_get_info(drive, info) nand_get_info(IF_MD2(drive,) info)
+ #endif
+ #ifdef HAVE_HOTSWAP
+ #define storage_removable(drive) nand_removable(IF_MD(drive))
+ #define storage_present(drive) nand_present(IF_MD(drive))
#endif
- #define storage_last_disk_activity() nand_last_disk_activity()
- #define storage_spinup_time() 0
- #define storage_get_identify() nand_get_identify()
-
- #ifdef STORAGE_GET_INFO
- #define storage_get_info(drive, info) nand_get_info(IF_MD2(drive,) info)
- #endif
- #ifdef HAVE_HOTSWAP
- #define storage_removable(drive) nand_removable(IF_MD(drive))
- #define storage_present(drive) nand_present(IF_MD(drive))
- #endif
- #elif (CONFIG_STORAGE & STORAGE_RAMDISK)
- #define storage_spindown ramdisk_spindown
- #define storage_sleep ramdisk_sleep
- #define storage_spin ramdisk_spin
+ #elif (CONFIG_STORAGE & STORAGE_RAMDISK)
+ #define storage_spindown ramdisk_spindown
+ #define storage_sleep ramdisk_sleep
+ #define storage_spin ramdisk_spin
- #define storage_enable(on) (void)0
- #define storage_sleepnow() ramdisk_sleepnow()
- #define storage_disk_is_active() 0
- #define storage_soft_reset() (void)0
- #define storage_init() ramdisk_init()
- #define storage_read_sectors(drive, start, count, buf) ramdisk_read_sectors(IF_MD2(drive,) start, count, buf)
- #define storage_write_sectors(drive, start, count, buf) ramdisk_write_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_enable(on) (void)0
+ #define storage_sleepnow() ramdisk_sleepnow()
+ #define storage_disk_is_active() 0
+ #define storage_soft_reset() (void)0
+ #define storage_init() ramdisk_init()
+ #define storage_read_sectors(drive, start, count, buf) ramdisk_read_sectors(IF_MD2(drive,) start, count, buf)
+ #define storage_write_sectors(drive, start, count, buf) ramdisk_write_sectors(IF_MD2(drive,) start, count, buf)
#ifdef HAVE_STORAGE_FLUSH
#define storage_flush() (void)0
#endif
- #define storage_last_disk_activity() ramdisk_last_disk_activity()
- #define storage_spinup_time() 0
- #define storage_get_identify() ramdisk_get_identify()
-
- #ifdef STORAGE_GET_INFO
- #define storage_get_info(drive, info) ramdisk_get_info(IF_MD2(drive,) info)
- #endif
- #ifdef HAVE_HOTSWAP
- #define storage_removable(drive) ramdisk_removable(IF_MD(drive))
- #define storage_present(drive) ramdisk_present(IF_MD(drive))
- #endif
- #else
- //#error No storage driver!
- #endif
+ #define storage_last_disk_activity() ramdisk_last_disk_activity()
+ #define storage_spinup_time() 0
+ #define storage_get_identify() ramdisk_get_identify()
+
+ #ifdef STORAGE_GET_INFO
+ #define storage_get_info(drive, info) ramdisk_get_info(IF_MD2(drive,) info)
+ #endif
+ #ifdef HAVE_HOTSWAP
+ #define storage_removable(drive) ramdisk_removable(IF_MD(drive))
+ #define storage_present(drive) ramdisk_present(IF_MD(drive))
+ #endif
+ #else
+ //#error No storage driver!
+ #endif
#else /* NOT CONFIG_STORAGE_MULTI and NOT SIMULATOR*/
/* Simulator and multi-driver use normal functions */