18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright (c) 2018, Intel Corporation. */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef _ICE_STATUS_H_
58c2ecf20Sopenharmony_ci#define _ICE_STATUS_H_
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/* Error Codes */
88c2ecf20Sopenharmony_cienum ice_status {
98c2ecf20Sopenharmony_ci	ICE_SUCCESS				= 0,
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci	/* Generic codes : Range -1..-49 */
128c2ecf20Sopenharmony_ci	ICE_ERR_PARAM				= -1,
138c2ecf20Sopenharmony_ci	ICE_ERR_NOT_IMPL			= -2,
148c2ecf20Sopenharmony_ci	ICE_ERR_NOT_READY			= -3,
158c2ecf20Sopenharmony_ci	ICE_ERR_NOT_SUPPORTED			= -4,
168c2ecf20Sopenharmony_ci	ICE_ERR_BAD_PTR				= -5,
178c2ecf20Sopenharmony_ci	ICE_ERR_INVAL_SIZE			= -6,
188c2ecf20Sopenharmony_ci	ICE_ERR_DEVICE_NOT_SUPPORTED		= -8,
198c2ecf20Sopenharmony_ci	ICE_ERR_RESET_FAILED			= -9,
208c2ecf20Sopenharmony_ci	ICE_ERR_FW_API_VER			= -10,
218c2ecf20Sopenharmony_ci	ICE_ERR_NO_MEMORY			= -11,
228c2ecf20Sopenharmony_ci	ICE_ERR_CFG				= -12,
238c2ecf20Sopenharmony_ci	ICE_ERR_OUT_OF_RANGE			= -13,
248c2ecf20Sopenharmony_ci	ICE_ERR_ALREADY_EXISTS			= -14,
258c2ecf20Sopenharmony_ci	ICE_ERR_DOES_NOT_EXIST			= -15,
268c2ecf20Sopenharmony_ci	ICE_ERR_IN_USE				= -16,
278c2ecf20Sopenharmony_ci	ICE_ERR_MAX_LIMIT			= -17,
288c2ecf20Sopenharmony_ci	ICE_ERR_RESET_ONGOING			= -18,
298c2ecf20Sopenharmony_ci	ICE_ERR_HW_TABLE			= -19,
308c2ecf20Sopenharmony_ci	ICE_ERR_FW_DDP_MISMATCH			= -20,
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	ICE_ERR_NVM_CHECKSUM			= -51,
338c2ecf20Sopenharmony_ci	ICE_ERR_BUF_TOO_SHORT			= -52,
348c2ecf20Sopenharmony_ci	ICE_ERR_NVM_BLANK_MODE			= -53,
358c2ecf20Sopenharmony_ci	ICE_ERR_AQ_ERROR			= -100,
368c2ecf20Sopenharmony_ci	ICE_ERR_AQ_TIMEOUT			= -101,
378c2ecf20Sopenharmony_ci	ICE_ERR_AQ_FULL				= -102,
388c2ecf20Sopenharmony_ci	ICE_ERR_AQ_NO_WORK			= -103,
398c2ecf20Sopenharmony_ci	ICE_ERR_AQ_EMPTY			= -104,
408c2ecf20Sopenharmony_ci	ICE_ERR_AQ_FW_CRITICAL			= -105,
418c2ecf20Sopenharmony_ci};
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci#endif /* _ICE_STATUS_H_ */
44