diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2015-06-02 10:51:02 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-09 16:37:33 +1000 |
commit | 39d9e14cdeef9a20e3da05d527b136de65e39904 (patch) | |
tree | 13246271b2b9fba1dbfc0a6729ca84223668e6cf /libflash/libffs.h | |
parent | 1fd9d5afc6aff3870695110c74a4a9daa88e5c81 (diff) | |
download | skiboot-39d9e14cdeef9a20e3da05d527b136de65e39904.zip skiboot-39d9e14cdeef9a20e3da05d527b136de65e39904.tar.gz skiboot-39d9e14cdeef9a20e3da05d527b136de65e39904.tar.bz2 |
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 <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash/libffs.h')
-rw-r--r-- | libflash/libffs.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 <libflash/libflash.h> #include <libflash/ffs.h> +#include <libflash/blocklevel.h> /* 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 */ |