diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-10 23:33:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-24 08:32:56 +0200 |
commit | bfb7aa1e191628699b87b1a5b8428e454728d435 (patch) | |
tree | 8bd95d49f70965d4e4f593ddd71af74fe8835c96 /include | |
parent | 3d5080aae90dffa3e3ea702f2efef8c5f9aaf372 (diff) | |
download | barebox-bfb7aa1e191628699b87b1a5b8428e454728d435.tar.gz barebox-bfb7aa1e191628699b87b1a5b8428e454728d435.tar.xz |
USB: gadget: Add a multi function gadget
Similar to the Kernel multi function this gadget driver is used
for creating a USB device with multiple functions. This is
created and removed with the newly created 'usbgadget' command.
Based on the options it creates combinations of DFU, fastboot
and serial USB functions.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb/gadget-multi.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/usb/gadget-multi.h b/include/usb/gadget-multi.h new file mode 100644 index 0000000000..5ca462326a --- /dev/null +++ b/include/usb/gadget-multi.h @@ -0,0 +1,17 @@ +#ifndef __USB_GADGET_MULTI_H +#define __USB_GADGET_MULTI_H + +#include <usb/fastboot.h> +#include <usb/dfu.h> +#include <usb/usbserial.h> + +struct f_multi_opts { + struct f_fastboot_opts fastboot_opts; + struct f_dfu_opts dfu_opts; + int create_acm; +}; + +int usb_multi_register(struct f_multi_opts *opts); +void usb_multi_unregister(void); + +#endif /* __USB_GADGET_MULTI_H */ |