projects
/
my-code
/
arm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7afb73c
)
notebook -> pc ;)
author
hackbard
<hackbard@hackdaworld.org>
Mon, 8 Oct 2007 16:15:48 +0000
(18:15 +0200)
committer
hackbard
<hackbard@hackdaworld.org>
Mon, 8 Oct 2007 16:15:48 +0000
(18:15 +0200)
betty/pffs.h
patch
|
blob
|
history
diff --git
a/betty/pffs.h
b/betty/pffs.h
index
6ddfbde
..
98ddd50
100644
(file)
--- a/
betty/pffs.h
+++ b/
betty/pffs.h
@@
-91,9
+91,19
@@
typedef struct s_pffs_fd {
char file[PFFS_MAX_FILENAME_SIZE+PFFS_MAX_FILENAME_SIZE]; // the file
u8 fn_size; // file name size
u8 mode; // mode, eg: write, read
char file[PFFS_MAX_FILENAME_SIZE+PFFS_MAX_FILENAME_SIZE]; // the file
u8 fn_size; // file name size
u8 mode; // mode, eg: write, read
- t_pffs *pffs; // the pffs main struct
+ t_pffs *pffs; //
pointer to
the pffs main struct
} t_pffs_fd;
} t_pffs_fd;
+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_data_min,u8 sec_num_data_max,
/* function prototypes (only the ones applications should use!) */
int pffs_flash_register(t_pffs *pffs,u32 base_addr,u32 *sec_addr,
u8 sec_num_data_min,u8 sec_num_data_max,