summaryrefslogtreecommitdiff
path: root/include/linux/usb/dfu.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-04-19 08:59:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-19 08:59:15 +0200
commite0f1115ebb757cebbc0cf7dd92a586e3dad19b77 (patch)
treef694ff849990cbfa962f49954266b5aa6eadf7eb /include/linux/usb/dfu.h
parentd5a06d4800305af6740cde3894d8f4b65b26b392 (diff)
parent0a73158341d5d3ef1e79e0d77a177121ef502930 (diff)
downloadbarebox-e0f1115ebb757cebbc0cf7dd92a586e3dad19b77.tar.gz
Merge branch 'for-next/usb'
Diffstat (limited to 'include/linux/usb/dfu.h')
-rw-r--r--include/linux/usb/dfu.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/usb/dfu.h b/include/linux/usb/dfu.h
new file mode 100644
index 0000000000..3bc4204500
--- /dev/null
+++ b/include/linux/usb/dfu.h
@@ -0,0 +1,34 @@
+#ifndef _USB_DFU_H
+#define _USB_DFU_H
+/* USB Device Firmware Update Implementation for OpenPCD
+ * (C) 2006 by Harald Welte <hwelte@hmw-consulting.de>
+ *
+ * Protocol definitions for USB DFU
+ *
+ * This ought to be compliant to the USB DFU Spec 1.0 as available from
+ * http://www.usb.org/developers/devclass_docs/usbdfu10.pdf
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <linux/types.h>
+#include <file-list.h>
+#include <linux/usb/composite.h>
+
+struct f_dfu_opts {
+ struct usb_function_instance func_inst;
+ struct file_list *files;
+};
+
+int usb_dfu_detached(void);
+
+#endif /* _USB_DFU_H */