aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd/src/fis.h
blob: 2be2cb1f04ce3cc62d534f9fa7f104f319e6e5de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __FIS_H
#define __FIS_H

struct fis_part {
	unsigned char name[16];
	uint32_t offset;
	uint32_t loadaddr;
	uint32_t size;
	uint32_t length;
	uint32_t crc;
};

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