diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-17 16:57:51 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-17 18:38:49 -0400 |
commit | d8d37ffdb8bed39df5d021afa9e09bf087b45d0d (patch) | |
tree | eaea28432d9a76c98d69470c3c8a8bd0b4e17282 /firmware/export/storage.h | |
parent | 0a4a920029bfb8194c37870b7e6d8e60cd7c8ef9 (diff) | |
download | rockbox-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.h | 8 |
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 @@ | |||
34 | #if (CONFIG_STORAGE & STORAGE_SD) | 34 | #if (CONFIG_STORAGE & STORAGE_SD) |
35 | #include "sd.h" | 35 | #include "sd.h" |
36 | #endif | 36 | #endif |
37 | #if (CONFIG_STORAGE & STORAGE_USB) | ||
38 | // TODO: Doesn't matter until we're native | ||
39 | #endif | ||
37 | #if (CONFIG_STORAGE & STORAGE_MMC) | 40 | #if (CONFIG_STORAGE & STORAGE_MMC) |
38 | #include "mmc.h" | 41 | #include "mmc.h" |
39 | #endif | 42 | #endif |
@@ -97,6 +100,9 @@ int nand_event(long id, intptr_t data); | |||
97 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) | 100 | #if (CONFIG_STORAGE & STORAGE_RAMDISK) |
98 | int ramdisk_event(long id, intptr_t data); | 101 | int ramdisk_event(long id, intptr_t data); |
99 | #endif | 102 | #endif |
103 | #if (CONFIG_STORAGE & STORAGE_USB) | ||
104 | // int usb_event(long id, intptr_t data); // TODO: Implement | ||
105 | #endif | ||
100 | 106 | ||
101 | struct storage_info | 107 | struct storage_info |
102 | { | 108 | { |
@@ -278,6 +284,8 @@ static inline void storage_sleep(void) {}; | |||
278 | #define storage_present(drive) ramdisk_present(IF_MD(drive)) | 284 | #define storage_present(drive) ramdisk_present(IF_MD(drive)) |
279 | #endif | 285 | #endif |
280 | #define storage_driver_type(drive) (STORAGE_RAMDISK_NUM) | 286 | #define storage_driver_type(drive) (STORAGE_RAMDISK_NUM) |
287 | #elif (CONFIG_STORAGE & STORAGE_USB) | ||
288 | // TODO: Eventually fix me | ||
281 | #else | 289 | #else |
282 | //#error No storage driver! | 290 | //#error No storage driver! |
283 | #endif | 291 | #endif |