summaryrefslogtreecommitdiffstats
path: root/firmware/export/storage.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-17 16:57:51 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-17 18:38:49 -0400
commitd8d37ffdb8bed39df5d021afa9e09bf087b45d0d (patch)
treeeaea28432d9a76c98d69470c3c8a8bd0b4e17282 /firmware/export/storage.h
parent0a4a920029bfb8194c37870b7e6d8e60cd7c8ef9 (diff)
downloadrockbox-d8d37ffdb8bed39df5d021afa9e09bf087b45d0d.tar.gz
rockbox-d8d37ffdb8bed39df5d021afa9e09bf087b45d0d.zip
Define a USB storage type, and hook it up for hosted targets
Change-Id: I56363c989139c7edf0b2c67b0aac9ef1adfacba2
Diffstat (limited to 'firmware/export/storage.h')
-rw-r--r--firmware/export/storage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/storage.h b/firmware/export/storage.h
index e6424f7b03..ee1423c93a 100644
--- a/firmware/export/storage.h
+++ b/firmware/export/storage.h
@@ -34,6 +34,9 @@
#if (CONFIG_STORAGE & STORAGE_SD)
#include "sd.h"
#endif
+#if (CONFIG_STORAGE & STORAGE_USB)
+// TODO: Doesn't matter until we're native
+#endif
#if (CONFIG_STORAGE & STORAGE_MMC)
#include "mmc.h"
#endif
@@ -97,6 +100,9 @@ int nand_event(long id, intptr_t data);
#if (CONFIG_STORAGE & STORAGE_RAMDISK)
int ramdisk_event(long id, intptr_t data);
#endif
+#if (CONFIG_STORAGE & STORAGE_USB)
+// int usb_event(long id, intptr_t data); // TODO: Implement
+#endif
struct storage_info
{
@@ -278,6 +284,8 @@ static inline void storage_sleep(void) {};
#define storage_present(drive) ramdisk_present(IF_MD(drive))
#endif
#define storage_driver_type(drive) (STORAGE_RAMDISK_NUM)
+ #elif (CONFIG_STORAGE & STORAGE_USB)
+ // TODO: Eventually fix me
#else
//#error No storage driver!
#endif