1 /* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB */
2 /* Copyright (c) 2015 - 2020 Intel Corporation */
3 #ifndef IRDMA_STATUS_H
4 #define IRDMA_STATUS_H
5 
6 /* Error Codes */
7 enum irdma_status_code {
8 	IRDMA_SUCCESS				= 0,
9 	IRDMA_ERR_NVM				= -1,
10 	IRDMA_ERR_NVM_CHECKSUM			= -2,
11 	IRDMA_ERR_CFG				= -4,
12 	IRDMA_ERR_PARAM				= -5,
13 	IRDMA_ERR_DEVICE_NOT_SUPPORTED		= -6,
14 	IRDMA_ERR_RESET_FAILED			= -7,
15 	IRDMA_ERR_SWFW_SYNC			= -8,
16 	IRDMA_ERR_NO_MEMORY			= -9,
17 	IRDMA_ERR_BAD_PTR			= -10,
18 	IRDMA_ERR_INVALID_PD_ID			= -11,
19 	IRDMA_ERR_INVALID_QP_ID			= -12,
20 	IRDMA_ERR_INVALID_CQ_ID			= -13,
21 	IRDMA_ERR_INVALID_CEQ_ID		= -14,
22 	IRDMA_ERR_INVALID_AEQ_ID		= -15,
23 	IRDMA_ERR_INVALID_SIZE			= -16,
24 	IRDMA_ERR_INVALID_ARP_INDEX		= -17,
25 	IRDMA_ERR_INVALID_FPM_FUNC_ID		= -18,
26 	IRDMA_ERR_QP_INVALID_MSG_SIZE		= -19,
27 	IRDMA_ERR_QP_TOOMANY_WRS_POSTED		= -20,
28 	IRDMA_ERR_INVALID_FRAG_COUNT		= -21,
29 	IRDMA_ERR_Q_EMPTY			= -22,
30 	IRDMA_ERR_INVALID_ALIGNMENT		= -23,
31 	IRDMA_ERR_FLUSHED_Q			= -24,
32 	IRDMA_ERR_INVALID_PUSH_PAGE_INDEX	= -25,
33 	IRDMA_ERR_INVALID_INLINE_DATA_SIZE	= -26,
34 	IRDMA_ERR_TIMEOUT			= -27,
35 	IRDMA_ERR_OPCODE_MISMATCH		= -28,
36 	IRDMA_ERR_CQP_COMPL_ERROR		= -29,
37 	IRDMA_ERR_INVALID_VF_ID			= -30,
38 	IRDMA_ERR_INVALID_HMCFN_ID		= -31,
39 	IRDMA_ERR_BACKING_PAGE_ERROR		= -32,
40 	IRDMA_ERR_NO_PBLCHUNKS_AVAILABLE	= -33,
41 	IRDMA_ERR_INVALID_PBLE_INDEX		= -34,
42 	IRDMA_ERR_INVALID_SD_INDEX		= -35,
43 	IRDMA_ERR_INVALID_PAGE_DESC_INDEX	= -36,
44 	IRDMA_ERR_INVALID_SD_TYPE		= -37,
45 	IRDMA_ERR_MEMCPY_FAILED			= -38,
46 	IRDMA_ERR_INVALID_HMC_OBJ_INDEX		= -39,
47 	IRDMA_ERR_INVALID_HMC_OBJ_COUNT		= -40,
48 	IRDMA_ERR_BUF_TOO_SHORT			= -43,
49 	IRDMA_ERR_BAD_IWARP_CQE			= -44,
50 	IRDMA_ERR_NVM_BLANK_MODE		= -45,
51 	IRDMA_ERR_NOT_IMPL			= -46,
52 	IRDMA_ERR_PE_DOORBELL_NOT_ENA		= -47,
53 	IRDMA_ERR_NOT_READY			= -48,
54 	IRDMA_NOT_SUPPORTED			= -49,
55 	IRDMA_ERR_FIRMWARE_API_VER		= -50,
56 	IRDMA_ERR_RING_FULL			= -51,
57 	IRDMA_ERR_MPA_CRC			= -61,
58 	IRDMA_ERR_NO_TXBUFS			= -62,
59 	IRDMA_ERR_SEQ_NUM			= -63,
60 	IRDMA_ERR_list_empty			= -64,
61 	IRDMA_ERR_INVALID_MAC_ADDR		= -65,
62 	IRDMA_ERR_BAD_STAG			= -66,
63 	IRDMA_ERR_CQ_COMPL_ERROR		= -67,
64 	IRDMA_ERR_Q_DESTROYED			= -68,
65 	IRDMA_ERR_INVALID_FEAT_CNT		= -69,
66 	IRDMA_ERR_REG_CQ_FULL			= -70,
67 	IRDMA_ERR_VF_MSG_ERROR			= -71,
68 	IRDMA_ERR_NO_INTR			= -72,
69 	IRDMA_ERR_REG_QSET			= -73,
70 };
71 #endif /* IRDMA_STATUS_H */
72