1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 3 4 #ifndef _I40E_STATUS_H_ 5 #define _I40E_STATUS_H_ 6 7 /* Error Codes */ 8 enum i40e_status_code { 9 I40E_SUCCESS = 0, 10 I40E_ERR_NVM = -1, 11 I40E_ERR_NVM_CHECKSUM = -2, 12 I40E_ERR_CONFIG = -4, 13 I40E_ERR_PARAM = -5, 14 I40E_ERR_UNKNOWN_PHY = -7, 15 I40E_ERR_INVALID_MAC_ADDR = -10, 16 I40E_ERR_DEVICE_NOT_SUPPORTED = -11, 17 I40E_ERR_RESET_FAILED = -15, 18 I40E_ERR_NO_AVAILABLE_VSI = -17, 19 I40E_ERR_NO_MEMORY = -18, 20 I40E_ERR_BAD_PTR = -19, 21 I40E_ERR_INVALID_SIZE = -26, 22 I40E_ERR_QUEUE_EMPTY = -32, 23 I40E_ERR_TIMEOUT = -37, 24 I40E_ERR_INVALID_SD_INDEX = -45, 25 I40E_ERR_INVALID_PAGE_DESC_INDEX = -46, 26 I40E_ERR_INVALID_SD_TYPE = -47, 27 I40E_ERR_INVALID_HMC_OBJ_INDEX = -49, 28 I40E_ERR_INVALID_HMC_OBJ_COUNT = -50, 29 I40E_ERR_ADMIN_QUEUE_ERROR = -53, 30 I40E_ERR_ADMIN_QUEUE_TIMEOUT = -54, 31 I40E_ERR_BUF_TOO_SHORT = -55, 32 I40E_ERR_ADMIN_QUEUE_FULL = -56, 33 I40E_ERR_ADMIN_QUEUE_NO_WORK = -57, 34 I40E_ERR_NVM_BLANK_MODE = -59, 35 I40E_ERR_NOT_IMPLEMENTED = -60, 36 I40E_ERR_DIAG_TEST_FAILED = -62, 37 I40E_ERR_NOT_READY = -63, 38 I40E_NOT_SUPPORTED = -64, 39 I40E_ERR_FIRMWARE_API_VERSION = -65, 40 I40E_ERR_ADMIN_QUEUE_CRITICAL_ERROR = -66, 41 }; 42 43 #endif /* _I40E_STATUS_H_ */ 44