aboutsummaryrefslogtreecommitdiff
path: root/libflash/libffs.h
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2018-03-15 16:58:20 +1100
committerStewart Smith <stewart@linux.ibm.com>2018-04-09 03:45:23 -0500
commit14ed1a2d7611503f8ddcf2b5e003c98b9a57f360 (patch)
tree163b4c349595310e5bc2a9e39a5018c6cff005f5 /libflash/libffs.h
parent0673f6282422e5cb26f79c986228c863b1ec8a36 (diff)
downloadskiboot-14ed1a2d7611503f8ddcf2b5e003c98b9a57f360.zip
skiboot-14ed1a2d7611503f8ddcf2b5e003c98b9a57f360.tar.gz
skiboot-14ed1a2d7611503f8ddcf2b5e003c98b9a57f360.tar.bz2
libflash/libffs: Remove the 'sides' from the FFS TOC generation code
It turns out this code was messy and not all that reliable. Doing it at the library level adds complexity to the library and restrictions to the caller. A simpler approach can be achived with the just instantiating multiple ffs_header structures pointing to different parts of the same file. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'libflash/libffs.h')
-rw-r--r--libflash/libffs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libflash/libffs.h b/libflash/libffs.h
index 4c74aed..05db033 100644
--- a/libflash/libffs.h
+++ b/libflash/libffs.h
@@ -151,10 +151,11 @@ int ffs_entry_user_set(struct ffs_entry *ent, struct ffs_entry_user *user);
int ffs_entry_set_act_size(struct ffs_entry *ent, uint32_t actual_size);
-int ffs_entry_add(struct ffs_hdr *hdr, struct ffs_entry *entry, unsigned int side);
struct ffs_entry_user ffs_entry_user_get(struct ffs_entry *ent);
+int ffs_entry_add(struct ffs_hdr *hdr, struct ffs_entry *entry);
+
int ffs_hdr_create_backup(struct ffs_hdr *hdr);
int ffs_hdr_finalise(struct blocklevel_device *bl, struct ffs_hdr *hdr);