diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-09-21 09:58:41 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-09-21 09:58:41 +0000 |
commit | 63c91af40444020930fadf0c0bff49aefa35cc68 (patch) | |
tree | 33dded4ca4216980c5056c60fb1e12cab82570d5 /package/mtd/src/fis.h | |
parent | 87a8e8ac1067f58ba831c4aae443f3655c31cd80 (diff) | |
download | upstream-63c91af40444020930fadf0c0bff49aefa35cc68.tar.gz upstream-63c91af40444020930fadf0c0bff49aefa35cc68.tar.bz2 upstream-63c91af40444020930fadf0c0bff49aefa35cc68.zip |
mtd: add support for rewriting the fis table layout on redboot based systems
SVN-Revision: 17659
Diffstat (limited to 'package/mtd/src/fis.h')
-rw-r--r-- | package/mtd/src/fis.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/mtd/src/fis.h b/package/mtd/src/fis.h new file mode 100644 index 0000000000..bdf1103d8a --- /dev/null +++ b/package/mtd/src/fis.h @@ -0,0 +1,14 @@ +#ifndef __FIS_H +#define __FIS_H + +struct fis_part { + unsigned char name[16]; + uint32_t offset; + uint32_t loadaddr; + uint32_t size; +}; + +int fis_validate(struct fis_part *old, int n_old, struct fis_part *new, int n_new); +int fis_remap(struct fis_part *old, int n_old, struct fis_part *new, int n_new); + +#endif |