net/ice/base: update copyright date
[dpdk.git] / drivers / net / ice / base / ice_status.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2001-2021 Intel Corporation
3  */
4
5 #ifndef _ICE_STATUS_H_
6 #define _ICE_STATUS_H_
7
8 /* Error Codes */
9 enum ice_status {
10         ICE_SUCCESS                             = 0,
11
12         /* Generic codes : Range -1..-49 */
13         ICE_ERR_PARAM                           = -1,
14         ICE_ERR_NOT_IMPL                        = -2,
15         ICE_ERR_NOT_READY                       = -3,
16         ICE_ERR_NOT_SUPPORTED                   = -4,
17         ICE_ERR_BAD_PTR                         = -5,
18         ICE_ERR_INVAL_SIZE                      = -6,
19         ICE_ERR_DEVICE_NOT_SUPPORTED            = -8,
20         ICE_ERR_RESET_FAILED                    = -9,
21         ICE_ERR_FW_API_VER                      = -10,
22         ICE_ERR_NO_MEMORY                       = -11,
23         ICE_ERR_CFG                             = -12,
24         ICE_ERR_OUT_OF_RANGE                    = -13,
25         ICE_ERR_ALREADY_EXISTS                  = -14,
26         ICE_ERR_DOES_NOT_EXIST                  = -15,
27         ICE_ERR_IN_USE                          = -16,
28         ICE_ERR_MAX_LIMIT                       = -17,
29         ICE_ERR_RESET_ONGOING                   = -18,
30         ICE_ERR_HW_TABLE                        = -19,
31         ICE_ERR_FW_DDP_MISMATCH                 = -20,
32
33         /* NVM specific error codes: Range -50..-59 */
34         ICE_ERR_NVM                             = -50,
35         ICE_ERR_NVM_CHECKSUM                    = -51,
36         ICE_ERR_BUF_TOO_SHORT                   = -52,
37         ICE_ERR_NVM_BLANK_MODE                  = -53,
38
39         /* ARQ/ASQ specific error codes. Range -100..-109 */
40         ICE_ERR_AQ_ERROR                        = -100,
41         ICE_ERR_AQ_TIMEOUT                      = -101,
42         ICE_ERR_AQ_FULL                         = -102,
43         ICE_ERR_AQ_NO_WORK                      = -103,
44         ICE_ERR_AQ_EMPTY                        = -104,
45         ICE_ERR_AQ_FW_CRITICAL                  = -105,
46 };
47
48 #endif /* _ICE_STATUS_H_ */