1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018-2021 Beijing WangXun Technology Co., Ltd.
3 * Copyright(c) 2010-2017 Intel Corporation
6 #ifndef _NGBE_STATUS_H_
7 #define _NGBE_STATUS_H_
11 * module error(simple)
12 * module error(detailed)
14 * (-256, 256): reserved for non-ngbe defined error code
16 #define TERR_BASE (0x100)
18 /* WARNING: just for legacy compatibility */
19 #define NGBE_NOT_IMPLEMENTED 0x7FFFFFFF
20 #define NGBE_ERR_OPS_DUMMY 0x3FFFFFFF
23 #define NGBE_ERR_EEPROM -(TERR_BASE + 1)
24 #define NGBE_ERR_EEPROM_CHECKSUM -(TERR_BASE + 2)
25 #define NGBE_ERR_PHY -(TERR_BASE + 3)
26 #define NGBE_ERR_CONFIG -(TERR_BASE + 4)
27 #define NGBE_ERR_PARAM -(TERR_BASE + 5)
28 #define NGBE_ERR_MAC_TYPE -(TERR_BASE + 6)
29 #define NGBE_ERR_UNKNOWN_PHY -(TERR_BASE + 7)
30 #define NGBE_ERR_LINK_SETUP -(TERR_BASE + 8)
31 #define NGBE_ERR_ADAPTER_STOPPED -(TERR_BASE + 9)
32 #define NGBE_ERR_INVALID_MAC_ADDR -(TERR_BASE + 10)
33 #define NGBE_ERR_DEVICE_NOT_SUPPORTED -(TERR_BASE + 11)
34 #define NGBE_ERR_MASTER_REQUESTS_PENDING -(TERR_BASE + 12)
35 #define NGBE_ERR_INVALID_LINK_SETTINGS -(TERR_BASE + 13)
36 #define NGBE_ERR_AUTONEG_NOT_COMPLETE -(TERR_BASE + 14)
37 #define NGBE_ERR_RESET_FAILED -(TERR_BASE + 15)
38 #define NGBE_ERR_SWFW_SYNC -(TERR_BASE + 16)
39 #define NGBE_ERR_PHY_ADDR_INVALID -(TERR_BASE + 17)
40 #define NGBE_ERR_I2C -(TERR_BASE + 18)
41 #define NGBE_ERR_SFP_NOT_SUPPORTED -(TERR_BASE + 19)
42 #define NGBE_ERR_SFP_NOT_PRESENT -(TERR_BASE + 20)
43 #define NGBE_ERR_SFP_NO_INIT_SEQ_PRESENT -(TERR_BASE + 21)
44 #define NGBE_ERR_NO_SAN_ADDR_PTR -(TERR_BASE + 22)
45 #define NGBE_ERR_FDIR_REINIT_FAILED -(TERR_BASE + 23)
46 #define NGBE_ERR_EEPROM_VERSION -(TERR_BASE + 24)
47 #define NGBE_ERR_NO_SPACE -(TERR_BASE + 25)
48 #define NGBE_ERR_OVERTEMP -(TERR_BASE + 26)
49 #define NGBE_ERR_FC_NOT_NEGOTIATED -(TERR_BASE + 27)
50 #define NGBE_ERR_FC_NOT_SUPPORTED -(TERR_BASE + 28)
51 #define NGBE_ERR_SFP_SETUP_NOT_COMPLETE -(TERR_BASE + 30)
52 #define NGBE_ERR_PBA_SECTION -(TERR_BASE + 31)
53 #define NGBE_ERR_INVALID_ARGUMENT -(TERR_BASE + 32)
54 #define NGBE_ERR_HOST_INTERFACE_COMMAND -(TERR_BASE + 33)
55 #define NGBE_ERR_OUT_OF_MEM -(TERR_BASE + 34)
56 #define NGBE_ERR_FEATURE_NOT_SUPPORTED -(TERR_BASE + 36)
57 #define NGBE_ERR_EEPROM_PROTECTED_REGION -(TERR_BASE + 37)
58 #define NGBE_ERR_FDIR_CMD_INCOMPLETE -(TERR_BASE + 38)
59 #define NGBE_ERR_FW_RESP_INVALID -(TERR_BASE + 39)
60 #define NGBE_ERR_TOKEN_RETRY -(TERR_BASE + 40)
61 #define NGBE_ERR_FLASH_LOADING_FAILED -(TERR_BASE + 41)
63 #define NGBE_ERR_NOSUPP -(TERR_BASE + 42)
64 #define NGBE_ERR_UNDERTEMP -(TERR_BASE + 43)
65 #define NGBE_ERR_XPCS_POWER_UP_FAILED -(TERR_BASE + 44)
66 #define NGBE_ERR_PHY_INIT_NOT_DONE -(TERR_BASE + 45)
67 #define NGBE_ERR_TIMEOUT -(TERR_BASE + 46)
68 #define NGBE_ERR_REGISTER -(TERR_BASE + 47)
69 #define NGBE_ERR_MNG_ACCESS_FAILED -(TERR_BASE + 49)
70 #define NGBE_ERR_PHY_TYPE -(TERR_BASE + 50)
71 #define NGBE_ERR_PHY_TIMEOUT -(TERR_BASE + 51)
73 #endif /* _NGBE_STATUS_H_ */