1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 3 4 #ifndef _IAVF_STATUS_H_ 5 #define _IAVF_STATUS_H_ 6 7 /* Error Codes */ 8 enum iavf_status { 9 IAVF_SUCCESS = 0, 10 IAVF_ERR_NVM = -1, 11 IAVF_ERR_NVM_CHECKSUM = -2, 12 IAVF_ERR_PHY = -3, 13 IAVF_ERR_CONFIG = -4, 14 IAVF_ERR_PARAM = -5, 15 IAVF_ERR_MAC_TYPE = -6, 16 IAVF_ERR_UNKNOWN_PHY = -7, 17 IAVF_ERR_LINK_SETUP = -8, 18 IAVF_ERR_ADAPTER_STOPPED = -9, 19 IAVF_ERR_INVALID_MAC_ADDR = -10, 20 IAVF_ERR_DEVICE_NOT_SUPPORTED = -11, 21 IAVF_ERR_MASTER_REQUESTS_PENDING = -12, 22 IAVF_ERR_INVALID_LINK_SETTINGS = -13, 23 IAVF_ERR_AUTONEG_NOT_COMPLETE = -14, 24 IAVF_ERR_RESET_FAILED = -15, 25 IAVF_ERR_SWFW_SYNC = -16, 26 IAVF_ERR_NO_AVAILABLE_VSI = -17, 27 IAVF_ERR_NO_MEMORY = -18, 28 IAVF_ERR_BAD_PTR = -19, 29 IAVF_ERR_RING_FULL = -20, 30 IAVF_ERR_INVALID_PD_ID = -21, 31 IAVF_ERR_INVALID_QP_ID = -22, 32 IAVF_ERR_INVALID_CQ_ID = -23, 33 IAVF_ERR_INVALID_CEQ_ID = -24, 34 IAVF_ERR_INVALID_AEQ_ID = -25, 35 IAVF_ERR_INVALID_SIZE = -26, 36 IAVF_ERR_INVALID_ARP_INDEX = -27, 37 IAVF_ERR_INVALID_FPM_FUNC_ID = -28, 38 IAVF_ERR_QP_INVALID_MSG_SIZE = -29, 39 IAVF_ERR_QP_TOOMANY_WRS_POSTED = -30, 40 IAVF_ERR_INVALID_FRAG_COUNT = -31, 41 IAVF_ERR_QUEUE_EMPTY = -32, 42 IAVF_ERR_INVALID_ALIGNMENT = -33, 43 IAVF_ERR_FLUSHED_QUEUE = -34, 44 IAVF_ERR_INVALID_PUSH_PAGE_INDEX = -35, 45 IAVF_ERR_INVALID_IMM_DATA_SIZE = -36, 46 IAVF_ERR_TIMEOUT = -37, 47 IAVF_ERR_OPCODE_MISMATCH = -38, 48 IAVF_ERR_CQP_COMPL_ERROR = -39, 49 IAVF_ERR_INVALID_VF_ID = -40, 50 IAVF_ERR_INVALID_HMCFN_ID = -41, 51 IAVF_ERR_BACKING_PAGE_ERROR = -42, 52 IAVF_ERR_NO_PBLCHUNKS_AVAILABLE = -43, 53 IAVF_ERR_INVALID_PBLE_INDEX = -44, 54 IAVF_ERR_INVALID_SD_INDEX = -45, 55 IAVF_ERR_INVALID_PAGE_DESC_INDEX = -46, 56 IAVF_ERR_INVALID_SD_TYPE = -47, 57 IAVF_ERR_MEMCPY_FAILED = -48, 58 IAVF_ERR_INVALID_HMC_OBJ_INDEX = -49, 59 IAVF_ERR_INVALID_HMC_OBJ_COUNT = -50, 60 IAVF_ERR_INVALID_SRQ_ARM_LIMIT = -51, 61 IAVF_ERR_SRQ_ENABLED = -52, 62 IAVF_ERR_ADMIN_QUEUE_ERROR = -53, 63 IAVF_ERR_ADMIN_QUEUE_TIMEOUT = -54, 64 IAVF_ERR_BUF_TOO_SHORT = -55, 65 IAVF_ERR_ADMIN_QUEUE_FULL = -56, 66 IAVF_ERR_ADMIN_QUEUE_NO_WORK = -57, 67 IAVF_ERR_BAD_IWARP_CQE = -58, 68 IAVF_ERR_NVM_BLANK_MODE = -59, 69 IAVF_ERR_NOT_IMPLEMENTED = -60, 70 IAVF_ERR_PE_DOORBELL_NOT_ENABLED = -61, 71 IAVF_ERR_DIAG_TEST_FAILED = -62, 72 IAVF_ERR_NOT_READY = -63, 73 IAVF_NOT_SUPPORTED = -64, 74 IAVF_ERR_FIRMWARE_API_VERSION = -65, 75 IAVF_ERR_ADMIN_QUEUE_CRITICAL_ERROR = -66, 76 }; 77 78 #endif /* _IAVF_STATUS_H_ */ 79