summaryrefslogtreecommitdiffstats
path: root/firmware/export/storage.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-11-01 16:49:38 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-11-01 16:49:38 +0000
commit526304e1cec3fd532c9712b330b2ee469586cf13 (patch)
treec976faad54edabf0677573b33bccc022e8591b6f /firmware/export/storage.h
parentad9db4de3dee9db8f08b5a28f731b066c35e41e6 (diff)
downloadrockbox-526304e1cec3fd532c9712b330b2ee469586cf13.tar.gz
rockbox-526304e1cec3fd532c9712b330b2ee469586cf13.zip
fix reds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18962 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/storage.h')
-rw-r--r--firmware/export/storage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h
index 95e42f67f4..8a0219c523 100644
--- a/firmware/export/storage.h
+++ b/firmware/export/storage.h
@@ -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)
{