mtd: Add MTDIOC_ERASESTATE command for retrieving erase state value

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2021-07-13 19:33:12 -03:00 committed by Xiang Xiao
parent b10905015a
commit 30cb497fe1
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@
#define MTDIOC_FLUSH _MTDIOC(0x0009) /* IN: None
* OUT: None (ioctl return value provides
* success/failure indication). */
#define MTDIOC_ERASESTATE _MTDIOC(0x000a) /* IN: Pointer to uint8_t
* OUT: Byte value that represents the
* erased state of the MTD cell */
/* Macros to hide implementation */