From 39d9e14cdeef9a20e3da05d527b136de65e39904 Mon Sep 17 00:00:00 2001 From: Cyril Bur Date: Tue, 2 Jun 2015 10:51:02 +1000 Subject: libflash: start using the blocklevel interface. Converted all the libflash calls to use the blocklevel interface, modified all callers to libflash to use the blocklevel interface. This patch should introduce next to no functional change. Signed-off-by: Cyril Bur Signed-off-by: Stewart Smith --- libflash/libffs.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libflash/libffs.h') diff --git a/libflash/libffs.h b/libflash/libffs.h index faaa4bc..a0040e9 100644 --- a/libflash/libffs.h +++ b/libflash/libffs.h @@ -18,6 +18,7 @@ #include #include +#include /* FFS handle, opaque */ struct ffs_handle; @@ -34,8 +35,10 @@ struct ffs_handle; #define FFS_ERR_PART_NOT_FOUND 103 #define FFS_ERR_BAD_ECC 104 -int ffs_open_flash(struct flash_chip *chip, uint32_t toc_offset, - uint32_t max_size, struct ffs_handle **ffs); +/* Init */ + +int ffs_init(uint32_t offset, uint32_t max_size, + struct blocklevel_device *bl, struct ffs_handle **ffs); /* ffs_open_image is Linux only as it uses lseek, which skiboot does not * implement */ -- cgit v1.1