Register DFU as usb_function_instance to make it work with composite gadgets. Also use this internally for registering as DFU device (with the 'dfu' command). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
#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 <usb/composite.h>
|
|
|
|
struct f_dfu_opts {
|
|
struct usb_function_instance func_inst;
|
|
struct file_list *files;
|
|
};
|
|
|
|
int usb_dfu_register(struct f_dfu_opts *);
|
|
|
|
#endif /* _USB_DFU_H */
|