summaryrefslogtreecommitdiff
path: root/api/api_private.h
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>2019-01-12 03:03:15 +0300
committerTom Rini <trini@konsulko.com>2019-11-08 01:58:31 +0300
commit036218a67130343a71ea34aeae1231bc11f040c2 (patch)
tree600e9b8b408872167ee05626fa7046b4df4a4371 /api/api_private.h
parent0be2ecd4861faa410491170e205488f9ee82a227 (diff)
downloadu-boot-036218a67130343a71ea34aeae1231bc11f040c2.tar.xz
api: storage: Add the missing write operation support
API_dev_write(va_list ap) is currently lacking the write support to storage devices because, historically, those devices did not implement block_write() The solution has been tested by loading and booting a (patched) GRUB instance in a QEMU vexpress-a9 environment. The disk write operations were triggered with GRUB's save_env command. Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Diffstat (limited to 'api/api_private.h')
-rw-r--r--api/api_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/api_private.h b/api/api_private.h
index 8d97ca95a2..07fd50ad3a 100644
--- a/api/api_private.h
+++ b/api/api_private.h
@@ -22,6 +22,7 @@ int dev_close_stor(void *);
int dev_close_net(void *);
lbasize_t dev_read_stor(void *, void *, lbasize_t, lbastart_t);
+lbasize_t dev_write_stor(void *, void *, lbasize_t, lbastart_t);
int dev_read_net(void *, void *, int);
int dev_write_net(void *, void *, int);