171d10453SEric Joyner /* SPDX-License-Identifier: BSD-3-Clause */ 2*015f8cc5SEric Joyner /* Copyright (c) 2024, Intel Corporation 371d10453SEric Joyner * All rights reserved. 471d10453SEric Joyner * 571d10453SEric Joyner * Redistribution and use in source and binary forms, with or without 671d10453SEric Joyner * modification, are permitted provided that the following conditions are met: 771d10453SEric Joyner * 871d10453SEric Joyner * 1. Redistributions of source code must retain the above copyright notice, 971d10453SEric Joyner * this list of conditions and the following disclaimer. 1071d10453SEric Joyner * 1171d10453SEric Joyner * 2. Redistributions in binary form must reproduce the above copyright 1271d10453SEric Joyner * notice, this list of conditions and the following disclaimer in the 1371d10453SEric Joyner * documentation and/or other materials provided with the distribution. 1471d10453SEric Joyner * 1571d10453SEric Joyner * 3. Neither the name of the Intel Corporation nor the names of its 1671d10453SEric Joyner * contributors may be used to endorse or promote products derived from 1771d10453SEric Joyner * this software without specific prior written permission. 1871d10453SEric Joyner * 1971d10453SEric Joyner * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2071d10453SEric Joyner * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2171d10453SEric Joyner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2271d10453SEric Joyner * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 2371d10453SEric Joyner * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2471d10453SEric Joyner * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2571d10453SEric Joyner * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2671d10453SEric Joyner * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2771d10453SEric Joyner * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2871d10453SEric Joyner * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2971d10453SEric Joyner * POSSIBILITY OF SUCH DAMAGE. 3071d10453SEric Joyner */ 3171d10453SEric Joyner 3271d10453SEric Joyner #ifndef _ICE_STATUS_H_ 3371d10453SEric Joyner #define _ICE_STATUS_H_ 3471d10453SEric Joyner 3571d10453SEric Joyner /* Error Codes */ 3671d10453SEric Joyner enum ice_status { 3771d10453SEric Joyner ICE_SUCCESS = 0, 3871d10453SEric Joyner 3971d10453SEric Joyner /* Generic codes : Range -1..-49 */ 4071d10453SEric Joyner ICE_ERR_PARAM = -1, 4171d10453SEric Joyner ICE_ERR_NOT_IMPL = -2, 4271d10453SEric Joyner ICE_ERR_NOT_READY = -3, 4371d10453SEric Joyner ICE_ERR_NOT_SUPPORTED = -4, 4471d10453SEric Joyner ICE_ERR_BAD_PTR = -5, 4571d10453SEric Joyner ICE_ERR_INVAL_SIZE = -6, 4671d10453SEric Joyner ICE_ERR_DEVICE_NOT_SUPPORTED = -8, 4771d10453SEric Joyner ICE_ERR_RESET_FAILED = -9, 4871d10453SEric Joyner ICE_ERR_FW_API_VER = -10, 4971d10453SEric Joyner ICE_ERR_NO_MEMORY = -11, 5071d10453SEric Joyner ICE_ERR_CFG = -12, 5171d10453SEric Joyner ICE_ERR_OUT_OF_RANGE = -13, 5271d10453SEric Joyner ICE_ERR_ALREADY_EXISTS = -14, 5371d10453SEric Joyner ICE_ERR_DOES_NOT_EXIST = -15, 5471d10453SEric Joyner ICE_ERR_IN_USE = -16, 5571d10453SEric Joyner ICE_ERR_MAX_LIMIT = -17, 5671d10453SEric Joyner ICE_ERR_RESET_ONGOING = -18, 5771d10453SEric Joyner ICE_ERR_HW_TABLE = -19, 5871d10453SEric Joyner ICE_ERR_FW_DDP_MISMATCH = -20, 5971d10453SEric Joyner 6071d10453SEric Joyner /* NVM specific error codes: Range -50..-59 */ 6171d10453SEric Joyner ICE_ERR_NVM = -50, 6271d10453SEric Joyner ICE_ERR_NVM_CHECKSUM = -51, 6371d10453SEric Joyner ICE_ERR_BUF_TOO_SHORT = -52, 6471d10453SEric Joyner ICE_ERR_NVM_BLANK_MODE = -53, 6571d10453SEric Joyner 6671d10453SEric Joyner /* ARQ/ASQ specific error codes. Range -100..-109 */ 6771d10453SEric Joyner ICE_ERR_AQ_ERROR = -100, 6871d10453SEric Joyner ICE_ERR_AQ_TIMEOUT = -101, 6971d10453SEric Joyner ICE_ERR_AQ_FULL = -102, 7071d10453SEric Joyner ICE_ERR_AQ_NO_WORK = -103, 7171d10453SEric Joyner ICE_ERR_AQ_EMPTY = -104, 727d7af7f8SEric Joyner ICE_ERR_AQ_FW_CRITICAL = -105, 7371d10453SEric Joyner }; 7471d10453SEric Joyner 7571d10453SEric Joyner #endif /* _ICE_STATUS_H_ */ 76