summaryrefslogtreecommitdiff
path: root/usb/device/dfu/dfu.h
diff options
context:
space:
mode:
Diffstat (limited to 'usb/device/dfu/dfu.h')
-rw-r--r--usb/device/dfu/dfu.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/usb/device/dfu/dfu.h b/usb/device/dfu/dfu.h
index 34afa4a..bf07d43 100644
--- a/usb/device/dfu/dfu.h
+++ b/usb/device/dfu/dfu.h
@@ -116,13 +116,16 @@ struct dfu {
uint8_t status;
uint32_t state;
int past_manifest;
+ unsigned int total_bytes;
};
extern struct dfu dfu;
/* call-backs by the board/SOC */
-extern int USBDFU_handle_dnload(uint16_t val, uint16_t len, int first);
-extern int USBDFU_handle_upload(uint16_t val, uint16_t len, int first);
+extern int USBDFU_handle_dnload(uint8_t altif, unsigned int offset,
+ uint8_t *data, unsigned int len);
+extern int USBDFU_handle_upload(uint8_t altif, unsigned int offset,
+ uint8_t *data, unsigned int req_len);
void USBDFU_Runtime_RequestHandler(const USBGenericRequest *request);
void USBDFU_DFU_RequestHandler(const USBGenericRequest *request);
personal git repositories of Harald Welte. Your mileage may vary