#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 |