blob: a517ad07699c4d4b3a68e2f9ec8243d333e3b909 [file] [log] [blame]
xf.liaa4d92f2023-09-13 00:18:58 -07001#ifndef __CPNV_MTD_H
2#define __CPNV_MTD_H
3
4typedef enum {
5 DEVICE_MTD = 0,
6 DEVICE_ZFTL = 1,
7 DEVICE_MTD_BLOCK,
8} device_type_t;
9
10#define MAX_PATH (256)
11
12
13extern int mtd_find(const char *i_parti_name, char *o_mtd_path, device_type_t device_type, unsigned int o_mtd_path_len);
14extern int mtd_erase_partition(const char* partition_name);
15
16#endif