xref: /freebsd/sys/dev/iavf/iavf_status.h (revision 71625ec9ad2a9bc8c09784fbd23b759830e0ee5f)
1*ca853deeSEric Joyner /* SPDX-License-Identifier: BSD-3-Clause */
2*ca853deeSEric Joyner /*  Copyright (c) 2021, Intel Corporation
3*ca853deeSEric Joyner  *  All rights reserved.
4*ca853deeSEric Joyner  *
5*ca853deeSEric Joyner  *  Redistribution and use in source and binary forms, with or without
6*ca853deeSEric Joyner  *  modification, are permitted provided that the following conditions are met:
7*ca853deeSEric Joyner  *
8*ca853deeSEric Joyner  *   1. Redistributions of source code must retain the above copyright notice,
9*ca853deeSEric Joyner  *      this list of conditions and the following disclaimer.
10*ca853deeSEric Joyner  *
11*ca853deeSEric Joyner  *   2. Redistributions in binary form must reproduce the above copyright
12*ca853deeSEric Joyner  *      notice, this list of conditions and the following disclaimer in the
13*ca853deeSEric Joyner  *      documentation and/or other materials provided with the distribution.
14*ca853deeSEric Joyner  *
15*ca853deeSEric Joyner  *   3. Neither the name of the Intel Corporation nor the names of its
16*ca853deeSEric Joyner  *      contributors may be used to endorse or promote products derived from
17*ca853deeSEric Joyner  *      this software without specific prior written permission.
18*ca853deeSEric Joyner  *
19*ca853deeSEric Joyner  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20*ca853deeSEric Joyner  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21*ca853deeSEric Joyner  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22*ca853deeSEric Joyner  *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23*ca853deeSEric Joyner  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*ca853deeSEric Joyner  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*ca853deeSEric Joyner  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*ca853deeSEric Joyner  *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*ca853deeSEric Joyner  *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*ca853deeSEric Joyner  *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*ca853deeSEric Joyner  *  POSSIBILITY OF SUCH DAMAGE.
30*ca853deeSEric Joyner  */
31*ca853deeSEric Joyner 
32*ca853deeSEric Joyner #ifndef _IAVF_STATUS_H_
33*ca853deeSEric Joyner #define _IAVF_STATUS_H_
34*ca853deeSEric Joyner 
35*ca853deeSEric Joyner /* Error Codes */
36*ca853deeSEric Joyner enum iavf_status {
37*ca853deeSEric Joyner 	IAVF_SUCCESS				= 0,
38*ca853deeSEric Joyner 	IAVF_ERR_NVM				= -1,
39*ca853deeSEric Joyner 	IAVF_ERR_NVM_CHECKSUM			= -2,
40*ca853deeSEric Joyner 	IAVF_ERR_PHY				= -3,
41*ca853deeSEric Joyner 	IAVF_ERR_CONFIG				= -4,
42*ca853deeSEric Joyner 	IAVF_ERR_PARAM				= -5,
43*ca853deeSEric Joyner 	IAVF_ERR_MAC_TYPE			= -6,
44*ca853deeSEric Joyner 	IAVF_ERR_UNKNOWN_PHY			= -7,
45*ca853deeSEric Joyner 	IAVF_ERR_LINK_SETUP			= -8,
46*ca853deeSEric Joyner 	IAVF_ERR_ADAPTER_STOPPED		= -9,
47*ca853deeSEric Joyner 	IAVF_ERR_INVALID_MAC_ADDR		= -10,
48*ca853deeSEric Joyner 	IAVF_ERR_DEVICE_NOT_SUPPORTED		= -11,
49*ca853deeSEric Joyner 	IAVF_ERR_MASTER_REQUESTS_PENDING	= -12,
50*ca853deeSEric Joyner 	IAVF_ERR_INVALID_LINK_SETTINGS		= -13,
51*ca853deeSEric Joyner 	IAVF_ERR_AUTONEG_NOT_COMPLETE		= -14,
52*ca853deeSEric Joyner 	IAVF_ERR_RESET_FAILED			= -15,
53*ca853deeSEric Joyner 	IAVF_ERR_SWFW_SYNC			= -16,
54*ca853deeSEric Joyner 	IAVF_ERR_NO_AVAILABLE_VSI		= -17,
55*ca853deeSEric Joyner 	IAVF_ERR_NO_MEMORY			= -18,
56*ca853deeSEric Joyner 	IAVF_ERR_BAD_PTR			= -19,
57*ca853deeSEric Joyner 	IAVF_ERR_RING_FULL			= -20,
58*ca853deeSEric Joyner 	IAVF_ERR_INVALID_PD_ID			= -21,
59*ca853deeSEric Joyner 	IAVF_ERR_INVALID_QP_ID			= -22,
60*ca853deeSEric Joyner 	IAVF_ERR_INVALID_CQ_ID			= -23,
61*ca853deeSEric Joyner 	IAVF_ERR_INVALID_CEQ_ID			= -24,
62*ca853deeSEric Joyner 	IAVF_ERR_INVALID_AEQ_ID			= -25,
63*ca853deeSEric Joyner 	IAVF_ERR_INVALID_SIZE			= -26,
64*ca853deeSEric Joyner 	IAVF_ERR_INVALID_ARP_INDEX		= -27,
65*ca853deeSEric Joyner 	IAVF_ERR_INVALID_FPM_FUNC_ID		= -28,
66*ca853deeSEric Joyner 	IAVF_ERR_QP_INVALID_MSG_SIZE		= -29,
67*ca853deeSEric Joyner 	IAVF_ERR_QP_TOOMANY_WRS_POSTED		= -30,
68*ca853deeSEric Joyner 	IAVF_ERR_INVALID_FRAG_COUNT		= -31,
69*ca853deeSEric Joyner 	IAVF_ERR_QUEUE_EMPTY			= -32,
70*ca853deeSEric Joyner 	IAVF_ERR_INVALID_ALIGNMENT		= -33,
71*ca853deeSEric Joyner 	IAVF_ERR_FLUSHED_QUEUE			= -34,
72*ca853deeSEric Joyner 	IAVF_ERR_INVALID_PUSH_PAGE_INDEX	= -35,
73*ca853deeSEric Joyner 	IAVF_ERR_INVALID_IMM_DATA_SIZE		= -36,
74*ca853deeSEric Joyner 	IAVF_ERR_TIMEOUT			= -37,
75*ca853deeSEric Joyner 	IAVF_ERR_OPCODE_MISMATCH		= -38,
76*ca853deeSEric Joyner 	IAVF_ERR_CQP_COMPL_ERROR		= -39,
77*ca853deeSEric Joyner 	IAVF_ERR_INVALID_VF_ID			= -40,
78*ca853deeSEric Joyner 	IAVF_ERR_INVALID_HMCFN_ID		= -41,
79*ca853deeSEric Joyner 	IAVF_ERR_BACKING_PAGE_ERROR		= -42,
80*ca853deeSEric Joyner 	IAVF_ERR_NO_PBLCHUNKS_AVAILABLE		= -43,
81*ca853deeSEric Joyner 	IAVF_ERR_INVALID_PBLE_INDEX		= -44,
82*ca853deeSEric Joyner 	IAVF_ERR_INVALID_SD_INDEX		= -45,
83*ca853deeSEric Joyner 	IAVF_ERR_INVALID_PAGE_DESC_INDEX	= -46,
84*ca853deeSEric Joyner 	IAVF_ERR_INVALID_SD_TYPE		= -47,
85*ca853deeSEric Joyner 	IAVF_ERR_MEMCPY_FAILED			= -48,
86*ca853deeSEric Joyner 	IAVF_ERR_INVALID_HMC_OBJ_INDEX		= -49,
87*ca853deeSEric Joyner 	IAVF_ERR_INVALID_HMC_OBJ_COUNT		= -50,
88*ca853deeSEric Joyner 	IAVF_ERR_INVALID_SRQ_ARM_LIMIT		= -51,
89*ca853deeSEric Joyner 	IAVF_ERR_SRQ_ENABLED			= -52,
90*ca853deeSEric Joyner 	IAVF_ERR_ADMIN_QUEUE_ERROR		= -53,
91*ca853deeSEric Joyner 	IAVF_ERR_ADMIN_QUEUE_TIMEOUT		= -54,
92*ca853deeSEric Joyner 	IAVF_ERR_BUF_TOO_SHORT			= -55,
93*ca853deeSEric Joyner 	IAVF_ERR_ADMIN_QUEUE_FULL		= -56,
94*ca853deeSEric Joyner 	IAVF_ERR_ADMIN_QUEUE_NO_WORK		= -57,
95*ca853deeSEric Joyner 	IAVF_ERR_BAD_IWARP_CQE			= -58,
96*ca853deeSEric Joyner 	IAVF_ERR_NVM_BLANK_MODE			= -59,
97*ca853deeSEric Joyner 	IAVF_ERR_NOT_IMPLEMENTED		= -60,
98*ca853deeSEric Joyner 	IAVF_ERR_PE_DOORBELL_NOT_ENABLED	= -61,
99*ca853deeSEric Joyner 	IAVF_ERR_DIAG_TEST_FAILED		= -62,
100*ca853deeSEric Joyner 	IAVF_ERR_NOT_READY			= -63,
101*ca853deeSEric Joyner 	IAVF_NOT_SUPPORTED			= -64,
102*ca853deeSEric Joyner 	IAVF_ERR_FIRMWARE_API_VERSION		= -65,
103*ca853deeSEric Joyner 	IAVF_ERR_ADMIN_QUEUE_CRITICAL_ERROR	= -66,
104*ca853deeSEric Joyner };
105*ca853deeSEric Joyner 
106*ca853deeSEric Joyner #endif /* _IAVF_STATUS_H_ */
107