1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #ifndef __IA_CSS_ERR_H
8 #define __IA_CSS_ERR_H
9 
10 /* @file
11  * This file contains possible return values for most
12  * functions in the CSS-API.
13  */
14 
15 /* FW warnings. This enum contains a value for each warning that
16  * the SP FW could indicate potential performance issue
17  */
18 enum ia_css_fw_warning {
19 	IA_CSS_FW_WARNING_NONE,
20 	IA_CSS_FW_WARNING_ISYS_QUEUE_FULL, /* < CSS system delayed because of insufficient space in the ISys queue.
21 		This warning can be avoided by de-queuing ISYS buffers more timely. */
22 	IA_CSS_FW_WARNING_PSYS_QUEUE_FULL, /* < CSS system delayed because of insufficient space in the PSys queue.
23 		This warning can be avoided by de-queuing PSYS buffers more timely. */
24 	IA_CSS_FW_WARNING_CIRCBUF_ALL_LOCKED, /* < CSS system delayed because of insufficient available buffers.
25 		This warning can be avoided by unlocking locked frame-buffers more timely. */
26 	IA_CSS_FW_WARNING_EXP_ID_LOCKED, /* < Exposure ID skipped because the frame associated to it was still locked.
27 		This warning can be avoided by unlocking locked frame-buffers more timely. */
28 	IA_CSS_FW_WARNING_TAG_EXP_ID_FAILED, /* < Exposure ID cannot be found on the circular buffer.
29 		This warning can be avoided by unlocking locked frame-buffers more timely. */
30 	IA_CSS_FW_WARNING_FRAME_PARAM_MISMATCH, /* < Frame and param pair mismatched in tagger.
31 		This warning can be avoided by providing a param set for each frame. */
32 };
33 
34 #endif /* __IA_CSS_ERR_H */
35