diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/nand-x1000-err.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/nand-x1000-err.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/nand-x1000-err.h b/firmware/target/mips/ingenic_x1000/nand-x1000-err.h new file mode 100644 index 0000000000..252d591062 --- /dev/null +++ b/firmware/target/mips/ingenic_x1000/nand-x1000-err.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #ifndef __NAND_X1000_ERR_H__ | ||
2 | #define __NAND_X1000_ERR_H__ | ||
3 | |||
4 | /* Error codes which can be returned by the nand-x1000 API. These codes are | ||
5 | * also used by host-side tools, so we define them here to avoid polluting | ||
6 | * the namespace with useless X1000 APIs. */ | ||
7 | #define NANDERR_CHIP_UNSUPPORTED (-1) | ||
8 | #define NANDERR_WRITE_PROTECTED (-2) | ||
9 | #define NANDERR_UNALIGNED_ADDRESS (-3) | ||
10 | #define NANDERR_UNALIGNED_LENGTH (-4) | ||
11 | #define NANDERR_READ_FAILED (-5) | ||
12 | #define NANDERR_ECC_FAILED (-6) | ||
13 | #define NANDERR_ERASE_FAILED (-7) | ||
14 | #define NANDERR_PROGRAM_FAILED (-8) | ||
15 | #define NANDERR_COMMAND_FAILED (-9) | ||
16 | #define NANDERR_OTHER (-99) | ||
17 | |||
18 | #endif /* __NAND_X1000_ERR_H__ */ | ||