summaryrefslogtreecommitdiffstats
path: root/mboxd_flash.h
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-07-12 03:41:08 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-07-19 23:00:12 +0000
commit7ee307c7e88ba0c1aae1791e95c2573c6b1e62cb (patch)
treee29fdfef5456cbad240bfd6001e61241bf5cacdc /mboxd_flash.h
parent017e45c3f202116ad09d5abdcaeb88f5b5f52594 (diff)
downloadphosphor-mboxd-7ee307c7e88ba0c1aae1791e95c2573c6b1e62cb.tar.gz
phosphor-mboxd-7ee307c7e88ba0c1aae1791e95c2573c6b1e62cb.zip
copy_flash: update window size
When a pnor partition is copied to a window, update the window size with the actual number of blocks copied. This is required in the response of the V2 Read Window Command. Change-Id: I2c158df1bd261a4e62b9cbb2765e7623a7fb3dc9 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'mboxd_flash.h')
-rw-r--r--mboxd_flash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mboxd_flash.h b/mboxd_flash.h
index d8b0d0d..7c02445 100644
--- a/mboxd_flash.h
+++ b/mboxd_flash.h
@@ -29,8 +29,8 @@ extern "C" {
int init_flash_dev(struct mbox_context *context);
void free_flash_dev(struct mbox_context *context);
-int copy_flash(struct mbox_context *context, uint32_t offset, void *mem,
- uint32_t size);
+int64_t copy_flash(struct mbox_context *context, uint32_t offset, void *mem,
+ uint32_t size);
int set_flash_bytemap(struct mbox_context *context, uint32_t offset,
uint32_t count, uint8_t val);
int erase_flash(struct mbox_context *context, uint32_t offset, uint32_t count);
OpenPOWER on IntegriCloud