xref: /freebsd/sys/dev/ixl/i40e_status.h (revision 71625ec9ad2a9bc8c09784fbd23b759830e0ee5f)
161ae650dSJack F Vogel /******************************************************************************
261ae650dSJack F Vogel 
3f4cc2d17SEric Joyner   Copyright (c) 2013-2018, Intel Corporation
461ae650dSJack F Vogel   All rights reserved.
561ae650dSJack F Vogel 
661ae650dSJack F Vogel   Redistribution and use in source and binary forms, with or without
761ae650dSJack F Vogel   modification, are permitted provided that the following conditions are met:
861ae650dSJack F Vogel 
961ae650dSJack F Vogel    1. Redistributions of source code must retain the above copyright notice,
1061ae650dSJack F Vogel       this list of conditions and the following disclaimer.
1161ae650dSJack F Vogel 
1261ae650dSJack F Vogel    2. Redistributions in binary form must reproduce the above copyright
1361ae650dSJack F Vogel       notice, this list of conditions and the following disclaimer in the
1461ae650dSJack F Vogel       documentation and/or other materials provided with the distribution.
1561ae650dSJack F Vogel 
1661ae650dSJack F Vogel    3. Neither the name of the Intel Corporation nor the names of its
1761ae650dSJack F Vogel       contributors may be used to endorse or promote products derived from
1861ae650dSJack F Vogel       this software without specific prior written permission.
1961ae650dSJack F Vogel 
2061ae650dSJack F Vogel   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2161ae650dSJack F Vogel   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2261ae650dSJack F Vogel   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2361ae650dSJack F Vogel   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
2461ae650dSJack F Vogel   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2561ae650dSJack F Vogel   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2661ae650dSJack F Vogel   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2761ae650dSJack F Vogel   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2861ae650dSJack F Vogel   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2961ae650dSJack F Vogel   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3061ae650dSJack F Vogel   POSSIBILITY OF SUCH DAMAGE.
3161ae650dSJack F Vogel 
3261ae650dSJack F Vogel ******************************************************************************/
3361ae650dSJack F Vogel 
3461ae650dSJack F Vogel #ifndef _I40E_STATUS_H_
3561ae650dSJack F Vogel #define _I40E_STATUS_H_
3661ae650dSJack F Vogel 
3761ae650dSJack F Vogel /* Error Codes */
3861ae650dSJack F Vogel enum i40e_status_code {
3961ae650dSJack F Vogel 	I40E_SUCCESS				= 0,
4061ae650dSJack F Vogel 	I40E_ERR_NVM				= -1,
4161ae650dSJack F Vogel 	I40E_ERR_NVM_CHECKSUM			= -2,
4261ae650dSJack F Vogel 	I40E_ERR_PHY				= -3,
4361ae650dSJack F Vogel 	I40E_ERR_CONFIG				= -4,
4461ae650dSJack F Vogel 	I40E_ERR_PARAM				= -5,
4561ae650dSJack F Vogel 	I40E_ERR_MAC_TYPE			= -6,
4661ae650dSJack F Vogel 	I40E_ERR_UNKNOWN_PHY			= -7,
4761ae650dSJack F Vogel 	I40E_ERR_LINK_SETUP			= -8,
4861ae650dSJack F Vogel 	I40E_ERR_ADAPTER_STOPPED		= -9,
4961ae650dSJack F Vogel 	I40E_ERR_INVALID_MAC_ADDR		= -10,
5061ae650dSJack F Vogel 	I40E_ERR_DEVICE_NOT_SUPPORTED		= -11,
51*b7b40e4aSKrzysztof Galazka 	I40E_ERR_PRIMARY_REQUESTS_PENDING	= -12,
5261ae650dSJack F Vogel 	I40E_ERR_INVALID_LINK_SETTINGS		= -13,
5361ae650dSJack F Vogel 	I40E_ERR_AUTONEG_NOT_COMPLETE		= -14,
5461ae650dSJack F Vogel 	I40E_ERR_RESET_FAILED			= -15,
5561ae650dSJack F Vogel 	I40E_ERR_SWFW_SYNC			= -16,
5661ae650dSJack F Vogel 	I40E_ERR_NO_AVAILABLE_VSI		= -17,
5761ae650dSJack F Vogel 	I40E_ERR_NO_MEMORY			= -18,
5861ae650dSJack F Vogel 	I40E_ERR_BAD_PTR			= -19,
5961ae650dSJack F Vogel 	I40E_ERR_RING_FULL			= -20,
6061ae650dSJack F Vogel 	I40E_ERR_INVALID_PD_ID			= -21,
6161ae650dSJack F Vogel 	I40E_ERR_INVALID_QP_ID			= -22,
6261ae650dSJack F Vogel 	I40E_ERR_INVALID_CQ_ID			= -23,
6361ae650dSJack F Vogel 	I40E_ERR_INVALID_CEQ_ID			= -24,
6461ae650dSJack F Vogel 	I40E_ERR_INVALID_AEQ_ID			= -25,
6561ae650dSJack F Vogel 	I40E_ERR_INVALID_SIZE			= -26,
6661ae650dSJack F Vogel 	I40E_ERR_INVALID_ARP_INDEX		= -27,
6761ae650dSJack F Vogel 	I40E_ERR_INVALID_FPM_FUNC_ID		= -28,
6861ae650dSJack F Vogel 	I40E_ERR_QP_INVALID_MSG_SIZE		= -29,
6961ae650dSJack F Vogel 	I40E_ERR_QP_TOOMANY_WRS_POSTED		= -30,
7061ae650dSJack F Vogel 	I40E_ERR_INVALID_FRAG_COUNT		= -31,
7161ae650dSJack F Vogel 	I40E_ERR_QUEUE_EMPTY			= -32,
7261ae650dSJack F Vogel 	I40E_ERR_INVALID_ALIGNMENT		= -33,
7361ae650dSJack F Vogel 	I40E_ERR_FLUSHED_QUEUE			= -34,
7461ae650dSJack F Vogel 	I40E_ERR_INVALID_PUSH_PAGE_INDEX	= -35,
7561ae650dSJack F Vogel 	I40E_ERR_INVALID_IMM_DATA_SIZE		= -36,
7661ae650dSJack F Vogel 	I40E_ERR_TIMEOUT			= -37,
7761ae650dSJack F Vogel 	I40E_ERR_OPCODE_MISMATCH		= -38,
7861ae650dSJack F Vogel 	I40E_ERR_CQP_COMPL_ERROR		= -39,
7961ae650dSJack F Vogel 	I40E_ERR_INVALID_VF_ID			= -40,
8061ae650dSJack F Vogel 	I40E_ERR_INVALID_HMCFN_ID		= -41,
8161ae650dSJack F Vogel 	I40E_ERR_BACKING_PAGE_ERROR		= -42,
8261ae650dSJack F Vogel 	I40E_ERR_NO_PBLCHUNKS_AVAILABLE		= -43,
8361ae650dSJack F Vogel 	I40E_ERR_INVALID_PBLE_INDEX		= -44,
8461ae650dSJack F Vogel 	I40E_ERR_INVALID_SD_INDEX		= -45,
8561ae650dSJack F Vogel 	I40E_ERR_INVALID_PAGE_DESC_INDEX	= -46,
8661ae650dSJack F Vogel 	I40E_ERR_INVALID_SD_TYPE		= -47,
8761ae650dSJack F Vogel 	I40E_ERR_MEMCPY_FAILED			= -48,
8861ae650dSJack F Vogel 	I40E_ERR_INVALID_HMC_OBJ_INDEX		= -49,
8961ae650dSJack F Vogel 	I40E_ERR_INVALID_HMC_OBJ_COUNT		= -50,
9061ae650dSJack F Vogel 	I40E_ERR_INVALID_SRQ_ARM_LIMIT		= -51,
9161ae650dSJack F Vogel 	I40E_ERR_SRQ_ENABLED			= -52,
9261ae650dSJack F Vogel 	I40E_ERR_ADMIN_QUEUE_ERROR		= -53,
9361ae650dSJack F Vogel 	I40E_ERR_ADMIN_QUEUE_TIMEOUT		= -54,
9461ae650dSJack F Vogel 	I40E_ERR_BUF_TOO_SHORT			= -55,
9561ae650dSJack F Vogel 	I40E_ERR_ADMIN_QUEUE_FULL		= -56,
9661ae650dSJack F Vogel 	I40E_ERR_ADMIN_QUEUE_NO_WORK		= -57,
9761ae650dSJack F Vogel 	I40E_ERR_BAD_IWARP_CQE			= -58,
9861ae650dSJack F Vogel 	I40E_ERR_NVM_BLANK_MODE			= -59,
9961ae650dSJack F Vogel 	I40E_ERR_NOT_IMPLEMENTED		= -60,
10061ae650dSJack F Vogel 	I40E_ERR_PE_DOORBELL_NOT_ENABLED	= -61,
10161ae650dSJack F Vogel 	I40E_ERR_DIAG_TEST_FAILED		= -62,
10261ae650dSJack F Vogel 	I40E_ERR_NOT_READY			= -63,
10361ae650dSJack F Vogel 	I40E_NOT_SUPPORTED			= -64,
10461ae650dSJack F Vogel 	I40E_ERR_FIRMWARE_API_VERSION		= -65,
105ceebc2f3SEric Joyner 	I40E_ERR_ADMIN_QUEUE_CRITICAL_ERROR	= -66,
10661ae650dSJack F Vogel };
10761ae650dSJack F Vogel 
10861ae650dSJack F Vogel #endif /* _I40E_STATUS_H_ */
109