xref: /freebsd/sys/dev/ixl/i40e_status.h (revision cab6a39d7b343596a5823e65c0f7b426551ec22d)
1 /******************************************************************************
2 
3   Copyright (c) 2013-2018, Intel Corporation
4   All rights reserved.
5 
6   Redistribution and use in source and binary forms, with or without
7   modification, are permitted provided that the following conditions are met:
8 
9    1. Redistributions of source code must retain the above copyright notice,
10       this list of conditions and the following disclaimer.
11 
12    2. Redistributions in binary form must reproduce the above copyright
13       notice, this list of conditions and the following disclaimer in the
14       documentation and/or other materials provided with the distribution.
15 
16    3. Neither the name of the Intel Corporation nor the names of its
17       contributors may be used to endorse or promote products derived from
18       this software without specific prior written permission.
19 
20   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   POSSIBILITY OF SUCH DAMAGE.
31 
32 ******************************************************************************/
33 /*$FreeBSD$*/
34 
35 #ifndef _I40E_STATUS_H_
36 #define _I40E_STATUS_H_
37 
38 /* Error Codes */
39 enum i40e_status_code {
40 	I40E_SUCCESS				= 0,
41 	I40E_ERR_NVM				= -1,
42 	I40E_ERR_NVM_CHECKSUM			= -2,
43 	I40E_ERR_PHY				= -3,
44 	I40E_ERR_CONFIG				= -4,
45 	I40E_ERR_PARAM				= -5,
46 	I40E_ERR_MAC_TYPE			= -6,
47 	I40E_ERR_UNKNOWN_PHY			= -7,
48 	I40E_ERR_LINK_SETUP			= -8,
49 	I40E_ERR_ADAPTER_STOPPED		= -9,
50 	I40E_ERR_INVALID_MAC_ADDR		= -10,
51 	I40E_ERR_DEVICE_NOT_SUPPORTED		= -11,
52 	I40E_ERR_MASTER_REQUESTS_PENDING	= -12,
53 	I40E_ERR_INVALID_LINK_SETTINGS		= -13,
54 	I40E_ERR_AUTONEG_NOT_COMPLETE		= -14,
55 	I40E_ERR_RESET_FAILED			= -15,
56 	I40E_ERR_SWFW_SYNC			= -16,
57 	I40E_ERR_NO_AVAILABLE_VSI		= -17,
58 	I40E_ERR_NO_MEMORY			= -18,
59 	I40E_ERR_BAD_PTR			= -19,
60 	I40E_ERR_RING_FULL			= -20,
61 	I40E_ERR_INVALID_PD_ID			= -21,
62 	I40E_ERR_INVALID_QP_ID			= -22,
63 	I40E_ERR_INVALID_CQ_ID			= -23,
64 	I40E_ERR_INVALID_CEQ_ID			= -24,
65 	I40E_ERR_INVALID_AEQ_ID			= -25,
66 	I40E_ERR_INVALID_SIZE			= -26,
67 	I40E_ERR_INVALID_ARP_INDEX		= -27,
68 	I40E_ERR_INVALID_FPM_FUNC_ID		= -28,
69 	I40E_ERR_QP_INVALID_MSG_SIZE		= -29,
70 	I40E_ERR_QP_TOOMANY_WRS_POSTED		= -30,
71 	I40E_ERR_INVALID_FRAG_COUNT		= -31,
72 	I40E_ERR_QUEUE_EMPTY			= -32,
73 	I40E_ERR_INVALID_ALIGNMENT		= -33,
74 	I40E_ERR_FLUSHED_QUEUE			= -34,
75 	I40E_ERR_INVALID_PUSH_PAGE_INDEX	= -35,
76 	I40E_ERR_INVALID_IMM_DATA_SIZE		= -36,
77 	I40E_ERR_TIMEOUT			= -37,
78 	I40E_ERR_OPCODE_MISMATCH		= -38,
79 	I40E_ERR_CQP_COMPL_ERROR		= -39,
80 	I40E_ERR_INVALID_VF_ID			= -40,
81 	I40E_ERR_INVALID_HMCFN_ID		= -41,
82 	I40E_ERR_BACKING_PAGE_ERROR		= -42,
83 	I40E_ERR_NO_PBLCHUNKS_AVAILABLE		= -43,
84 	I40E_ERR_INVALID_PBLE_INDEX		= -44,
85 	I40E_ERR_INVALID_SD_INDEX		= -45,
86 	I40E_ERR_INVALID_PAGE_DESC_INDEX	= -46,
87 	I40E_ERR_INVALID_SD_TYPE		= -47,
88 	I40E_ERR_MEMCPY_FAILED			= -48,
89 	I40E_ERR_INVALID_HMC_OBJ_INDEX		= -49,
90 	I40E_ERR_INVALID_HMC_OBJ_COUNT		= -50,
91 	I40E_ERR_INVALID_SRQ_ARM_LIMIT		= -51,
92 	I40E_ERR_SRQ_ENABLED			= -52,
93 	I40E_ERR_ADMIN_QUEUE_ERROR		= -53,
94 	I40E_ERR_ADMIN_QUEUE_TIMEOUT		= -54,
95 	I40E_ERR_BUF_TOO_SHORT			= -55,
96 	I40E_ERR_ADMIN_QUEUE_FULL		= -56,
97 	I40E_ERR_ADMIN_QUEUE_NO_WORK		= -57,
98 	I40E_ERR_BAD_IWARP_CQE			= -58,
99 	I40E_ERR_NVM_BLANK_MODE			= -59,
100 	I40E_ERR_NOT_IMPLEMENTED		= -60,
101 	I40E_ERR_PE_DOORBELL_NOT_ENABLED	= -61,
102 	I40E_ERR_DIAG_TEST_FAILED		= -62,
103 	I40E_ERR_NOT_READY			= -63,
104 	I40E_NOT_SUPPORTED			= -64,
105 	I40E_ERR_FIRMWARE_API_VERSION		= -65,
106 	I40E_ERR_ADMIN_QUEUE_CRITICAL_ERROR	= -66,
107 };
108 
109 #endif /* _I40E_STATUS_H_ */
110