summaryrefslogtreecommitdiff
path: root/api/api_private.h
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@gmail.com>2019-01-12 02:03:15 +0200
committerTom Rini <trini@konsulko.com>2019-11-07 17:58:31 -0500
commit036218a67130343a71ea34aeae1231bc11f040c2 (patch)
tree600e9b8b408872167ee05626fa7046b4df4a4371 /api/api_private.h
parent0be2ecd4861faa410491170e205488f9ee82a227 (diff)
downloadu-boot-036218a67130343a71ea34aeae1231bc11f040c2.tar.gz
u-boot-036218a67130343a71ea34aeae1231bc11f040c2.tar.bz2
u-boot-036218a67130343a71ea34aeae1231bc11f040c2.zip
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);