162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/* Copyright(c) 2013 - 2018 Intel Corporation. */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef _IAVF_STATUS_H_
562306a36Sopenharmony_ci#define _IAVF_STATUS_H_
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci/* Error Codes */
862306a36Sopenharmony_cienum iavf_status {
962306a36Sopenharmony_ci	IAVF_SUCCESS				= 0,
1062306a36Sopenharmony_ci	IAVF_ERR_NVM				= -1,
1162306a36Sopenharmony_ci	IAVF_ERR_NVM_CHECKSUM			= -2,
1262306a36Sopenharmony_ci	IAVF_ERR_PHY				= -3,
1362306a36Sopenharmony_ci	IAVF_ERR_CONFIG				= -4,
1462306a36Sopenharmony_ci	IAVF_ERR_PARAM				= -5,
1562306a36Sopenharmony_ci	IAVF_ERR_MAC_TYPE			= -6,
1662306a36Sopenharmony_ci	IAVF_ERR_UNKNOWN_PHY			= -7,
1762306a36Sopenharmony_ci	IAVF_ERR_LINK_SETUP			= -8,
1862306a36Sopenharmony_ci	IAVF_ERR_ADAPTER_STOPPED		= -9,
1962306a36Sopenharmony_ci	IAVF_ERR_INVALID_MAC_ADDR		= -10,
2062306a36Sopenharmony_ci	IAVF_ERR_DEVICE_NOT_SUPPORTED		= -11,
2162306a36Sopenharmony_ci	IAVF_ERR_PRIMARY_REQUESTS_PENDING	= -12,
2262306a36Sopenharmony_ci	IAVF_ERR_INVALID_LINK_SETTINGS		= -13,
2362306a36Sopenharmony_ci	IAVF_ERR_AUTONEG_NOT_COMPLETE		= -14,
2462306a36Sopenharmony_ci	IAVF_ERR_RESET_FAILED			= -15,
2562306a36Sopenharmony_ci	IAVF_ERR_SWFW_SYNC			= -16,
2662306a36Sopenharmony_ci	IAVF_ERR_NO_AVAILABLE_VSI		= -17,
2762306a36Sopenharmony_ci	IAVF_ERR_NO_MEMORY			= -18,
2862306a36Sopenharmony_ci	IAVF_ERR_BAD_PTR			= -19,
2962306a36Sopenharmony_ci	IAVF_ERR_RING_FULL			= -20,
3062306a36Sopenharmony_ci	IAVF_ERR_INVALID_PD_ID			= -21,
3162306a36Sopenharmony_ci	IAVF_ERR_INVALID_QP_ID			= -22,
3262306a36Sopenharmony_ci	IAVF_ERR_INVALID_CQ_ID			= -23,
3362306a36Sopenharmony_ci	IAVF_ERR_INVALID_CEQ_ID			= -24,
3462306a36Sopenharmony_ci	IAVF_ERR_INVALID_AEQ_ID			= -25,
3562306a36Sopenharmony_ci	IAVF_ERR_INVALID_SIZE			= -26,
3662306a36Sopenharmony_ci	IAVF_ERR_INVALID_ARP_INDEX		= -27,
3762306a36Sopenharmony_ci	IAVF_ERR_INVALID_FPM_FUNC_ID		= -28,
3862306a36Sopenharmony_ci	IAVF_ERR_QP_INVALID_MSG_SIZE		= -29,
3962306a36Sopenharmony_ci	IAVF_ERR_QP_TOOMANY_WRS_POSTED		= -30,
4062306a36Sopenharmony_ci	IAVF_ERR_INVALID_FRAG_COUNT		= -31,
4162306a36Sopenharmony_ci	IAVF_ERR_QUEUE_EMPTY			= -32,
4262306a36Sopenharmony_ci	IAVF_ERR_INVALID_ALIGNMENT		= -33,
4362306a36Sopenharmony_ci	IAVF_ERR_FLUSHED_QUEUE			= -34,
4462306a36Sopenharmony_ci	IAVF_ERR_INVALID_PUSH_PAGE_INDEX	= -35,
4562306a36Sopenharmony_ci	IAVF_ERR_INVALID_IMM_DATA_SIZE		= -36,
4662306a36Sopenharmony_ci	IAVF_ERR_TIMEOUT			= -37,
4762306a36Sopenharmony_ci	IAVF_ERR_OPCODE_MISMATCH		= -38,
4862306a36Sopenharmony_ci	IAVF_ERR_CQP_COMPL_ERROR		= -39,
4962306a36Sopenharmony_ci	IAVF_ERR_INVALID_VF_ID			= -40,
5062306a36Sopenharmony_ci	IAVF_ERR_INVALID_HMCFN_ID		= -41,
5162306a36Sopenharmony_ci	IAVF_ERR_BACKING_PAGE_ERROR		= -42,
5262306a36Sopenharmony_ci	IAVF_ERR_NO_PBLCHUNKS_AVAILABLE		= -43,
5362306a36Sopenharmony_ci	IAVF_ERR_INVALID_PBLE_INDEX		= -44,
5462306a36Sopenharmony_ci	IAVF_ERR_INVALID_SD_INDEX		= -45,
5562306a36Sopenharmony_ci	IAVF_ERR_INVALID_PAGE_DESC_INDEX	= -46,
5662306a36Sopenharmony_ci	IAVF_ERR_INVALID_SD_TYPE		= -47,
5762306a36Sopenharmony_ci	IAVF_ERR_MEMCPY_FAILED			= -48,
5862306a36Sopenharmony_ci	IAVF_ERR_INVALID_HMC_OBJ_INDEX		= -49,
5962306a36Sopenharmony_ci	IAVF_ERR_INVALID_HMC_OBJ_COUNT		= -50,
6062306a36Sopenharmony_ci	IAVF_ERR_INVALID_SRQ_ARM_LIMIT		= -51,
6162306a36Sopenharmony_ci	IAVF_ERR_SRQ_ENABLED			= -52,
6262306a36Sopenharmony_ci	IAVF_ERR_ADMIN_QUEUE_ERROR		= -53,
6362306a36Sopenharmony_ci	IAVF_ERR_ADMIN_QUEUE_TIMEOUT		= -54,
6462306a36Sopenharmony_ci	IAVF_ERR_BUF_TOO_SHORT			= -55,
6562306a36Sopenharmony_ci	IAVF_ERR_ADMIN_QUEUE_FULL		= -56,
6662306a36Sopenharmony_ci	IAVF_ERR_ADMIN_QUEUE_NO_WORK		= -57,
6762306a36Sopenharmony_ci	IAVF_ERR_BAD_RDMA_CQE			= -58,
6862306a36Sopenharmony_ci	IAVF_ERR_NVM_BLANK_MODE			= -59,
6962306a36Sopenharmony_ci	IAVF_ERR_NOT_IMPLEMENTED		= -60,
7062306a36Sopenharmony_ci	IAVF_ERR_PE_DOORBELL_NOT_ENABLED	= -61,
7162306a36Sopenharmony_ci	IAVF_ERR_DIAG_TEST_FAILED		= -62,
7262306a36Sopenharmony_ci	IAVF_ERR_NOT_READY			= -63,
7362306a36Sopenharmony_ci	IAVF_NOT_SUPPORTED			= -64,
7462306a36Sopenharmony_ci	IAVF_ERR_FIRMWARE_API_VERSION		= -65,
7562306a36Sopenharmony_ci	IAVF_ERR_ADMIN_QUEUE_CRITICAL_ERROR	= -66,
7662306a36Sopenharmony_ci};
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ci#endif /* _IAVF_STATUS_H_ */
79