barebox/include/usb/gadget-multi.h
Sascha Hauer bfb7aa1e19 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>
2014-07-24 08:32:56 +02:00

18 lines
364 B
C

#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 */