aboutsummaryrefslogtreecommitdiff
path: root/libflash/libffs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libflash/libffs.h')
-rw-r--r--libflash/libffs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libflash/libffs.h b/libflash/libffs.h
index b597118..dd58d28 100644
--- a/libflash/libffs.h
+++ b/libflash/libffs.h
@@ -37,9 +37,12 @@ struct ffs_handle;
int ffs_open_flash(struct flash_chip *chip, uint32_t offset,
uint32_t max_size, struct ffs_handle **ffs);
-/* TODO
-int ffs_open_image(void *image, uint32_t size, struct ffs_handle **ffs);
-*/
+/* ffs_open_image is Linux only as it uses lseek, which skiboot does not
+ * implement */
+#ifndef __SKIBOOT__
+int ffs_open_image(int fd, uint32_t size, uint32_t offset,
+ struct ffs_handle **ffs);
+#endif
void ffs_close(struct ffs_handle *ffs);