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>
18 lines
364 B
C
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 */
|