summaryrefslogtreecommitdiffstats
path: root/include/usb_mass_storage.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-12-07 11:38:50 -0700
committerTom Rini <trini@konsulko.com>2016-01-13 21:05:19 -0500
commit02585eb3b5cba572d69bda1ae0864bdc770a0303 (patch)
tree4ae3ca1352901deef93ebeb81b9bd63b699606be /include/usb_mass_storage.h
parent873cc1d7775ed5de07e6722c7ff423080c2e8f71 (diff)
downloadblackbird-obmc-uboot-02585eb3b5cba572d69bda1ae0864bdc770a0303.tar.gz
blackbird-obmc-uboot-02585eb3b5cba572d69bda1ae0864bdc770a0303.zip
ums: support multiple LUNs at once
Extend the ums command to accept a list of block devices. Each of these will be exported as a separate LUN. An example use-case would be: ums 0 mmc 0,0.1,0.2 ... which would export LUNs for eMMC 0's user data, boot0, and boot1 HW partitions. This is useful since it allows the host access to everything on the eMMC without having to somehow stop the ums command from executing and restart it with different parameters. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/usb_mass_storage.h')
-rw-r--r--include/usb_mass_storage.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/usb_mass_storage.h b/include/usb_mass_storage.h
index 69b80cd1a3..5804b70c35 100644
--- a/include/usb_mass_storage.h
+++ b/include/usb_mass_storage.h
@@ -23,12 +23,10 @@ struct ums {
unsigned int start_sector;
unsigned int num_sectors;
const char *name;
- block_dev_desc_t *block_dev;
+ block_dev_desc_t block_dev;
};
-extern struct ums *ums;
-
-int fsg_init(struct ums *);
+int fsg_init(struct ums *ums_devs, int count);
void fsg_cleanup(void);
int fsg_main_thread(void *);
int fsg_add(struct usb_configuration *c);
OpenPOWER on IntegriCloud