path: root/include/usb_mass_storage.h
diff options
authorMateusz Zalega <>2013-10-04 19:22:26 +0200
committerMarek Vasut <>2013-10-20 23:42:40 +0200
commit16297cfb2a20c9d89834cd9e31edac5184a777a1 (patch)
treef75f4bccfd6ef79f4953c02f73c5245bc1bdb34d /include/usb_mass_storage.h
parentf3d7cff55951e0b47bad150bf5c329bd577e2ce5 (diff)
usb: new board-specific USB init interface
This commit unifies board-specific USB initialization implementations under one symbol (usb_board_init), declaration of which is available in usb.h. New API allows selective initialization of USB controllers whenever needed. Signed-off-by: Mateusz Zalega <> Signed-off-by: Kyungmin Park <> Reviewed-by: Lukasz Majewski <> Cc: Marek Vasut <> Cc: Lukasz Majewski <>
Diffstat (limited to 'include/usb_mass_storage.h')
1 files changed, 5 insertions, 8 deletions
diff --git a/include/usb_mass_storage.h b/include/usb_mass_storage.h
index e08deb4ddf..13f535ce2e 100644
--- a/include/usb_mass_storage.h
+++ b/include/usb_mass_storage.h
@@ -31,14 +31,11 @@ struct ums_board_info {
struct ums_device ums_dev;
-extern void board_usb_init(void);
-extern int fsg_init(struct ums_board_info *);
-extern void fsg_cleanup(void);
-extern struct ums_board_info *board_ums_init(unsigned int,
- unsigned int, unsigned int);
-extern int usb_gadget_handle_interrupts(void);
-extern int fsg_main_thread(void *);
+int fsg_init(struct ums_board_info *);
+void fsg_cleanup(void);
+struct ums_board_info *board_ums_init(unsigned int, unsigned int,
+ unsigned int);
+int fsg_main_thread(void *);
int fsg_add(struct usb_configuration *c);
OpenPOWER on IntegriCloud