Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/*
|
|
* Copyright (C) 2017 MediaTek Inc.
|
|
* Licensed under either
|
|
* BSD Licence, (see NOTICE for more details)
|
|
* GNU General Public License, version 2.0, (see NOTICE for more details)
|
|
*/
|
|
#ifndef __ERRNO_H__
|
|
#define __ERRNO_H__
|
|
|
|
/* Nand Driver Extended Error Codes */
|
|
#define NAND_OK 0
|
|
|
|
#ifndef EIO
|
|
#define EIO 5 /* I/O error */
|
|
#define ENOMEM 12 /* Out of memory */
|
|
#define EFAULT 14 /* Bad address */
|
|
#define EBUSY 16 /* Device or resource busy */
|
|
#define ENODEV 19 /* No such device */
|
|
#define EINVAL 22 /* Invalid argument */
|
|
#define ENOSPC 28 /* No space left on device */
|
|
/* Operation not supported on transport endpoint */
|
|
#define EOPNOTSUPP 95
|
|
#define ETIMEDOUT 110 /* Connection timed out */
|
|
#endif
|
|
|
|
#define ENANDFLIPS 1024 /* Too many bitflips, corrected */
|
|
#define ENANDREAD 1025 /* Read fail, can't correct */
|
|
#define ENANDWRITE 1026 /* Write fail */
|
|
#define ENANDERASE 1027 /* Erase fail */
|
|
#define ENANDBAD 1028 /* Bad block */
|
|
|
|
#define IS_NAND_ERR(err) ((err) >= -ENANDBAD && (err) <= -ENANDFLIPS)
|
|
|
|
#endif /* __ERRNO_H__ */
|