aboutsummaryrefslogtreecommitdiff
path: root/src/download.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/download.h')
-rw-r--r--src/download.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/download.h b/src/download.h
index fc215a6..c1554cb 100644
--- a/src/download.h
+++ b/src/download.h
@@ -93,6 +93,14 @@ struct download_ready_read_request {
uint32_t length;
} __attribute__((__packed__));
+struct download_write_async_request {
+ uint8_t command;
+ uint8_t binary_type;
+ uint16_t reserved;
+ uint32_t total_length;
+ uint32_t length;
+} __attribute__((__packed__));
+
struct download_response {
uint8_t ack;
} __attribute__((__packed__));
@@ -107,6 +115,7 @@ int download_erase(struct context *context, off_t address, size_t length);
int download_read(struct context *context, void *buffer, size_t length);
int download_initialize_partition(struct context *context, off_t address, size_t length);
int download_ready_read(struct context *context, off_t address, size_t length);
+int download_write_async(struct context *context, void *buffer, size_t length);
int download_reset(struct context *context);
int download_notify_start_dl(struct context *context);