166bc8e0fSJesse Brandeburg /* SPDX-License-Identifier: GPL-2.0 */ 266bc8e0fSJesse Brandeburg /* Copyright(c) 2013 - 2018 Intel Corporation. */ 366bc8e0fSJesse Brandeburg 466bc8e0fSJesse Brandeburg #ifndef _IAVF_STATUS_H_ 566bc8e0fSJesse Brandeburg #define _IAVF_STATUS_H_ 666bc8e0fSJesse Brandeburg 766bc8e0fSJesse Brandeburg /* Error Codes */ 880754bbcSSergey Nemov enum iavf_status { 98821b3faSAlice Michael IAVF_SUCCESS = 0, 108821b3faSAlice Michael IAVF_ERR_NVM = -1, 118821b3faSAlice Michael IAVF_ERR_NVM_CHECKSUM = -2, 128821b3faSAlice Michael IAVF_ERR_PHY = -3, 138821b3faSAlice Michael IAVF_ERR_CONFIG = -4, 148821b3faSAlice Michael IAVF_ERR_PARAM = -5, 158821b3faSAlice Michael IAVF_ERR_MAC_TYPE = -6, 168821b3faSAlice Michael IAVF_ERR_UNKNOWN_PHY = -7, 178821b3faSAlice Michael IAVF_ERR_LINK_SETUP = -8, 188821b3faSAlice Michael IAVF_ERR_ADAPTER_STOPPED = -9, 198821b3faSAlice Michael IAVF_ERR_INVALID_MAC_ADDR = -10, 208821b3faSAlice Michael IAVF_ERR_DEVICE_NOT_SUPPORTED = -11, 210a62b209SMateusz Palczewski IAVF_ERR_PRIMARY_REQUESTS_PENDING = -12, 228821b3faSAlice Michael IAVF_ERR_INVALID_LINK_SETTINGS = -13, 238821b3faSAlice Michael IAVF_ERR_AUTONEG_NOT_COMPLETE = -14, 248821b3faSAlice Michael IAVF_ERR_RESET_FAILED = -15, 258821b3faSAlice Michael IAVF_ERR_SWFW_SYNC = -16, 268821b3faSAlice Michael IAVF_ERR_NO_AVAILABLE_VSI = -17, 278821b3faSAlice Michael IAVF_ERR_NO_MEMORY = -18, 288821b3faSAlice Michael IAVF_ERR_BAD_PTR = -19, 298821b3faSAlice Michael IAVF_ERR_RING_FULL = -20, 308821b3faSAlice Michael IAVF_ERR_INVALID_PD_ID = -21, 318821b3faSAlice Michael IAVF_ERR_INVALID_QP_ID = -22, 328821b3faSAlice Michael IAVF_ERR_INVALID_CQ_ID = -23, 338821b3faSAlice Michael IAVF_ERR_INVALID_CEQ_ID = -24, 348821b3faSAlice Michael IAVF_ERR_INVALID_AEQ_ID = -25, 358821b3faSAlice Michael IAVF_ERR_INVALID_SIZE = -26, 368821b3faSAlice Michael IAVF_ERR_INVALID_ARP_INDEX = -27, 378821b3faSAlice Michael IAVF_ERR_INVALID_FPM_FUNC_ID = -28, 388821b3faSAlice Michael IAVF_ERR_QP_INVALID_MSG_SIZE = -29, 398821b3faSAlice Michael IAVF_ERR_QP_TOOMANY_WRS_POSTED = -30, 408821b3faSAlice Michael IAVF_ERR_INVALID_FRAG_COUNT = -31, 418821b3faSAlice Michael IAVF_ERR_QUEUE_EMPTY = -32, 428821b3faSAlice Michael IAVF_ERR_INVALID_ALIGNMENT = -33, 438821b3faSAlice Michael IAVF_ERR_FLUSHED_QUEUE = -34, 448821b3faSAlice Michael IAVF_ERR_INVALID_PUSH_PAGE_INDEX = -35, 458821b3faSAlice Michael IAVF_ERR_INVALID_IMM_DATA_SIZE = -36, 468821b3faSAlice Michael IAVF_ERR_TIMEOUT = -37, 478821b3faSAlice Michael IAVF_ERR_OPCODE_MISMATCH = -38, 488821b3faSAlice Michael IAVF_ERR_CQP_COMPL_ERROR = -39, 498821b3faSAlice Michael IAVF_ERR_INVALID_VF_ID = -40, 508821b3faSAlice Michael IAVF_ERR_INVALID_HMCFN_ID = -41, 518821b3faSAlice Michael IAVF_ERR_BACKING_PAGE_ERROR = -42, 528821b3faSAlice Michael IAVF_ERR_NO_PBLCHUNKS_AVAILABLE = -43, 538821b3faSAlice Michael IAVF_ERR_INVALID_PBLE_INDEX = -44, 548821b3faSAlice Michael IAVF_ERR_INVALID_SD_INDEX = -45, 558821b3faSAlice Michael IAVF_ERR_INVALID_PAGE_DESC_INDEX = -46, 568821b3faSAlice Michael IAVF_ERR_INVALID_SD_TYPE = -47, 578821b3faSAlice Michael IAVF_ERR_MEMCPY_FAILED = -48, 588821b3faSAlice Michael IAVF_ERR_INVALID_HMC_OBJ_INDEX = -49, 598821b3faSAlice Michael IAVF_ERR_INVALID_HMC_OBJ_COUNT = -50, 608821b3faSAlice Michael IAVF_ERR_INVALID_SRQ_ARM_LIMIT = -51, 618821b3faSAlice Michael IAVF_ERR_SRQ_ENABLED = -52, 628821b3faSAlice Michael IAVF_ERR_ADMIN_QUEUE_ERROR = -53, 638821b3faSAlice Michael IAVF_ERR_ADMIN_QUEUE_TIMEOUT = -54, 648821b3faSAlice Michael IAVF_ERR_BUF_TOO_SHORT = -55, 658821b3faSAlice Michael IAVF_ERR_ADMIN_QUEUE_FULL = -56, 668821b3faSAlice Michael IAVF_ERR_ADMIN_QUEUE_NO_WORK = -57, 67*2723f3b5SJesse Brandeburg IAVF_ERR_BAD_RDMA_CQE = -58, 688821b3faSAlice Michael IAVF_ERR_NVM_BLANK_MODE = -59, 698821b3faSAlice Michael IAVF_ERR_NOT_IMPLEMENTED = -60, 708821b3faSAlice Michael IAVF_ERR_PE_DOORBELL_NOT_ENABLED = -61, 718821b3faSAlice Michael IAVF_ERR_DIAG_TEST_FAILED = -62, 728821b3faSAlice Michael IAVF_ERR_NOT_READY = -63, 738821b3faSAlice Michael IAVF_NOT_SUPPORTED = -64, 748821b3faSAlice Michael IAVF_ERR_FIRMWARE_API_VERSION = -65, 758821b3faSAlice Michael IAVF_ERR_ADMIN_QUEUE_CRITICAL_ERROR = -66, 7666bc8e0fSJesse Brandeburg }; 7766bc8e0fSJesse Brandeburg 7866bc8e0fSJesse Brandeburg #endif /* _IAVF_STATUS_H_ */ 79