summaryrefslogtreecommitdiffstats
path: root/include/ubiformat.h
blob: 8305a853c721b7fe3eee378d61b3c6a4d926955c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __UBIFORMAT_H
#define __UBIFORMAT_H

#include <linux/types.h>

struct ubiformat_args {
	unsigned int yes:1;
	unsigned int quiet:1;
	unsigned int verbose:1;
	unsigned int override_ec:1;
	unsigned int novtbl:1;
	unsigned int manual_subpage;
	int subpage_size;
	int vid_hdr_offs;
	int ubi_ver;
	uint32_t image_seq;
	long long ec;
	const char *image;
};

int ubiformat(struct mtd_info *mtd, struct ubiformat_args *args);

int ubiformat_write(struct mtd_info *mtd, const void *buf, size_t count,
		    loff_t offset);

#endif /* __UBIFORMAT_H */