diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-01-07 17:38:11 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-01-07 17:38:11 +0100 |
commit | 141a11409e125abeca98d069eec6fcfee480d5fd (patch) | |
tree | 926227c0bf397ca2f28b8e9faea9cc0b83abe19d /usb/device/dfu/dfu.h | |
parent | 541bc5bdaea55365b290f2995fc865371577dc0d (diff) |
DFU: include more common infrastructure for download and upload handling
Diffstat (limited to 'usb/device/dfu/dfu.h')
-rw-r--r-- | usb/device/dfu/dfu.h | 7 |
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); |