+typedef struct s_pffs_sector_header {
+ u32 wear_level; // program / erase cycles
+}
+
+typedef struct s_pffs_file_header {
+ u32 file_len; // length of files in ?
+ u32 file_cont; // continued file addr
+ u8 file_name_len; // lenght of the filename in words
+}
+
+/* function prototypes (only the ones applications should use!) */
+int pffs_flash_register(t_pffs *pffs,u32 base_addr,u32 *sec_addr,u8 sec_num,
+ int (*fw)(u32 addr,u16 *buf,int len),
+ int (*fr)(u32 addr,u16 *buf,int len),
+ int (*fe)(u32 addr));
+int pffs_init(t_pffs *pffs);