1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 
16 #ifndef __IA_CSS_ERR_H
17 #define __IA_CSS_ERR_H
18 
19 /* @file
20  * This file contains possible return values for most
21  * functions in the CSS-API.
22  */
23 
24 /* FW warnings. This enum contains a value for each warning that
25  * the SP FW could indicate potential performance issue
26  */
27 enum ia_css_fw_warning {
28 	IA_CSS_FW_WARNING_NONE,
29 	IA_CSS_FW_WARNING_ISYS_QUEUE_FULL, /* < CSS system delayed because of insufficient space in the ISys queue.
30 		This warning can be avoided by de-queuing ISYS buffers more timely. */
31 	IA_CSS_FW_WARNING_PSYS_QUEUE_FULL, /* < CSS system delayed because of insufficient space in the PSys queue.
32 		This warning can be avoided by de-queuing PSYS buffers more timely. */
33 	IA_CSS_FW_WARNING_CIRCBUF_ALL_LOCKED, /* < CSS system delayed because of insufficient available buffers.
34 		This warning can be avoided by unlocking locked frame-buffers more timely. */
35 	IA_CSS_FW_WARNING_EXP_ID_LOCKED, /* < Exposure ID skipped because the frame associated to it was still locked.
36 		This warning can be avoided by unlocking locked frame-buffers more timely. */
37 	IA_CSS_FW_WARNING_TAG_EXP_ID_FAILED, /* < Exposure ID cannot be found on the circular buffer.
38 		This warning can be avoided by unlocking locked frame-buffers more timely. */
39 	IA_CSS_FW_WARNING_FRAME_PARAM_MISMATCH, /* < Frame and param pair mismatched in tagger.
40 		This warning can be avoided by providing a param set for each frame. */
41 };
42 
43 #endif /* __IA_CSS_ERR_H */
44