aboutsummaryrefslogtreecommitdiff
path: root/cmd/legacy-mtd-utils.h
blob: ac441d5558a1cd97f5bc3262061b501a293c71b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: GPL-2.0+ */

#ifndef __LEGACY_MTD_UTILS_H
#define __LEGACY_MTD_UTILS_H

int mtd_arg_off(const char *arg, int *idx, loff_t *off, loff_t *size,
		loff_t *maxsize, int devtype, uint64_t chipsize);
int mtd_arg_off_size(int argc, char *const argv[], int *idx, loff_t *off,
		     loff_t *size, loff_t *maxsize, int devtype,
		     uint64_t chipsize);

#endif /* LEGACY_MTD_UTILS_H */