diff options
Diffstat (limited to 'firmware/storage.c')
-rw-r--r-- | firmware/storage.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/storage.c b/firmware/storage.c index 8740e4ebd2..7ef7428854 100644 --- a/firmware/storage.c +++ b/firmware/storage.c | |||
@@ -190,6 +190,15 @@ int storage_num_drives(void) | |||
190 | return num_drives; | 190 | return num_drives; |
191 | } | 191 | } |
192 | 192 | ||
193 | int storage_driver_type(int drive) | ||
194 | { | ||
195 | if (drive >= num_drives) | ||
196 | return -1; | ||
197 | |||
198 | unsigned int bit = (storage_drivers[drive] & DRIVER_MASK)>>DRIVER_OFFSET; | ||
199 | return bit ? find_first_set_bit(bit) : -1; | ||
200 | } | ||
201 | |||
193 | int storage_init(void) | 202 | int storage_init(void) |
194 | { | 203 | { |
195 | int rc=0; | 204 | int rc=0; |