blob: a517ad07699c4d4b3a68e2f9ec8243d333e3b909 [file] [log] [blame]
#ifndef __CPNV_MTD_H
#define __CPNV_MTD_H
typedef enum {
DEVICE_MTD = 0,
DEVICE_ZFTL = 1,
DEVICE_MTD_BLOCK,
} device_type_t;
#define MAX_PATH (256)
extern int mtd_find(const char *i_parti_name, char *o_mtd_path, device_type_t device_type, unsigned int o_mtd_path_len);
extern int mtd_erase_partition(const char* partition_name);
#endif