summaryrefslogtreecommitdiff
path: root/include/linux/usb/mass_storage.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-03-20 09:03:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-03-20 16:05:12 +0100
commit253e3e4f47bfbc2919dbe9e0dce35f054009cdb6 (patch)
tree722b728d788adc24c97c1d367255355cb14486a1 /include/linux/usb/mass_storage.h
parent37ea6d0f30d45b4ad5539a9748ebf5e4e5635132 (diff)
downloadbarebox-253e3e4f47bfbc2919dbe9e0dce35f054009cdb6.tar.gz
usb: move include files to place where Linux has them
For easier patch merging and comparison with Linux move the usb gadget files to where Linux has them. For now do a plain git mv include/usb include/linux/usb, eventhough there might be some files which are purely barebox specific. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/usb/mass_storage.h')
-rw-r--r--include/linux/usb/mass_storage.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/usb/mass_storage.h b/include/linux/usb/mass_storage.h
new file mode 100644
index 0000000000..5bf7fea2f3
--- /dev/null
+++ b/include/linux/usb/mass_storage.h
@@ -0,0 +1,29 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2011 Samsung Electrnoics
+ * Lukasz Majewski <l.majewski@samsung.com>
+ */
+
+#ifndef __USB_MASS_STORAGE_H__
+#define __USB_MASS_STORAGE_H__
+
+#include <linux/usb/composite.h>
+
+/* Wait at maximum 60 seconds for cable connection */
+#define UMS_CABLE_READY_TIMEOUT 60
+
+struct fsg_common;
+
+struct f_ums_opts {
+ struct usb_function_instance func_inst;
+ struct fsg_common *common;
+ struct file_list *files;
+ unsigned int num_sectors;
+ int fd;
+ int refcnt;
+ char name[16];
+};
+
+int usb_ums_register(struct f_ums_opts *);
+
+#endif /* __USB_MASS_STORAGE_H__ */