]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/gadget/f_dfu.h
usb: gadget: f_dfu: write req->actual bytes
[u-boot] / drivers / usb / gadget / f_dfu.h
index 023e1adacc3c321b5816ab612169f6344d5d7d43..a2565774e1c5eddf739fbbfc2767aff8ea8f7f81 100644 (file)
@@ -4,19 +4,7 @@
  * Copyright (C) 2011-2012 Samsung Electronics
  * author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
  *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __F_DFU_H_
@@ -63,7 +51,6 @@
 
 #define RET_STALL                      -1
 #define RET_ZLP                                0
-#define RET_STAT_LEN                   6
 
 enum dfu_state {
        DFU_STATE_appIDLE               = 0,
@@ -95,6 +82,5 @@ struct dfu_function_descriptor {
        __le16                          bcdDFUVersion;
 } __packed;
 
-/* configuration-specific linkup */
-int dfu_add(struct usb_configuration *c);
+#define DFU_POLL_TIMEOUT_MASK           (0xFFFFFFUL)
 #endif /* __F_DFU_H_ */