| xf.li | aa4d92f | 2023-09-13 00:18:58 -0700 | [diff] [blame] | 1 | #ifndef __CPNV_MTD_H |
| 2 | #define __CPNV_MTD_H | ||||
| 3 | |||||
| 4 | typedef 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 | |||||
| 13 | extern int mtd_find(const char *i_parti_name, char *o_mtd_path, device_type_t device_type, unsigned int o_mtd_path_len); | ||||
| 14 | extern int mtd_erase_partition(const char* partition_name); | ||||
| 15 | |||||
| 16 | #endif | ||||