net/i40e/base: fix bit test mask
[dpdk.git] / drivers / net / i40e / base / i40e_status.h
1 /*******************************************************************************
2
3 Copyright (c) 2013 - 2015, 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
34 #ifndef _I40E_STATUS_H_
35 #define _I40E_STATUS_H_
36
37 /* Error Codes */
38 enum i40e_status_code {
39         I40E_SUCCESS                            = 0,
40         I40E_ERR_NVM                            = -1,
41         I40E_ERR_NVM_CHECKSUM                   = -2,
42         I40E_ERR_PHY                            = -3,
43         I40E_ERR_CONFIG                         = -4,
44         I40E_ERR_PARAM                          = -5,
45         I40E_ERR_MAC_TYPE                       = -6,
46         I40E_ERR_UNKNOWN_PHY                    = -7,
47         I40E_ERR_LINK_SETUP                     = -8,
48         I40E_ERR_ADAPTER_STOPPED                = -9,
49         I40E_ERR_INVALID_MAC_ADDR               = -10,
50         I40E_ERR_DEVICE_NOT_SUPPORTED           = -11,
51         I40E_ERR_MASTER_REQUESTS_PENDING        = -12,
52         I40E_ERR_INVALID_LINK_SETTINGS          = -13,
53         I40E_ERR_AUTONEG_NOT_COMPLETE           = -14,
54         I40E_ERR_RESET_FAILED                   = -15,
55         I40E_ERR_SWFW_SYNC                      = -16,
56         I40E_ERR_NO_AVAILABLE_VSI               = -17,
57         I40E_ERR_NO_MEMORY                      = -18,
58         I40E_ERR_BAD_PTR                        = -19,
59         I40E_ERR_RING_FULL                      = -20,
60         I40E_ERR_INVALID_PD_ID                  = -21,
61         I40E_ERR_INVALID_QP_ID                  = -22,
62         I40E_ERR_INVALID_CQ_ID                  = -23,
63         I40E_ERR_INVALID_CEQ_ID                 = -24,
64         I40E_ERR_INVALID_AEQ_ID                 = -25,
65         I40E_ERR_INVALID_SIZE                   = -26,
66         I40E_ERR_INVALID_ARP_INDEX              = -27,
67         I40E_ERR_INVALID_FPM_FUNC_ID            = -28,
68         I40E_ERR_QP_INVALID_MSG_SIZE            = -29,
69         I40E_ERR_QP_TOOMANY_WRS_POSTED          = -30,
70         I40E_ERR_INVALID_FRAG_COUNT             = -31,
71         I40E_ERR_QUEUE_EMPTY                    = -32,
72         I40E_ERR_INVALID_ALIGNMENT              = -33,
73         I40E_ERR_FLUSHED_QUEUE                  = -34,
74         I40E_ERR_INVALID_PUSH_PAGE_INDEX        = -35,
75         I40E_ERR_INVALID_IMM_DATA_SIZE          = -36,
76         I40E_ERR_TIMEOUT                        = -37,
77         I40E_ERR_OPCODE_MISMATCH                = -38,
78         I40E_ERR_CQP_COMPL_ERROR                = -39,
79         I40E_ERR_INVALID_VF_ID                  = -40,
80         I40E_ERR_INVALID_HMCFN_ID               = -41,
81         I40E_ERR_BACKING_PAGE_ERROR             = -42,
82         I40E_ERR_NO_PBLCHUNKS_AVAILABLE         = -43,
83         I40E_ERR_INVALID_PBLE_INDEX             = -44,
84         I40E_ERR_INVALID_SD_INDEX               = -45,
85         I40E_ERR_INVALID_PAGE_DESC_INDEX        = -46,
86         I40E_ERR_INVALID_SD_TYPE                = -47,
87         I40E_ERR_MEMCPY_FAILED                  = -48,
88         I40E_ERR_INVALID_HMC_OBJ_INDEX          = -49,
89         I40E_ERR_INVALID_HMC_OBJ_COUNT          = -50,
90         I40E_ERR_INVALID_SRQ_ARM_LIMIT          = -51,
91         I40E_ERR_SRQ_ENABLED                    = -52,
92         I40E_ERR_ADMIN_QUEUE_ERROR              = -53,
93         I40E_ERR_ADMIN_QUEUE_TIMEOUT            = -54,
94         I40E_ERR_BUF_TOO_SHORT                  = -55,
95         I40E_ERR_ADMIN_QUEUE_FULL               = -56,
96         I40E_ERR_ADMIN_QUEUE_NO_WORK            = -57,
97         I40E_ERR_BAD_IWARP_CQE                  = -58,
98         I40E_ERR_NVM_BLANK_MODE                 = -59,
99         I40E_ERR_NOT_IMPLEMENTED                = -60,
100         I40E_ERR_PE_DOORBELL_NOT_ENABLED        = -61,
101         I40E_ERR_DIAG_TEST_FAILED               = -62,
102         I40E_ERR_NOT_READY                      = -63,
103         I40E_NOT_SUPPORTED                      = -64,
104         I40E_ERR_FIRMWARE_API_VERSION           = -65,
105 };
106
107 #endif /* _I40E_STATUS_H_ */