2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 #ifndef __IA_CSS_ERR_H
16 #define __IA_CSS_ERR_H
19 * This file contains possible return values for most
20 * functions in the CSS-API.
23 /** Errors, these values are used as the return value for most
24 * functions in this API.
28 IA_CSS_ERR_INTERNAL_ERROR
,
29 IA_CSS_ERR_CANNOT_ALLOCATE_MEMORY
,
30 IA_CSS_ERR_INVALID_ARGUMENTS
,
31 IA_CSS_ERR_SYSTEM_NOT_IDLE
,
32 IA_CSS_ERR_MODE_HAS_NO_VIEWFINDER
,
33 IA_CSS_ERR_QUEUE_IS_FULL
,
34 IA_CSS_ERR_QUEUE_IS_EMPTY
,
35 IA_CSS_ERR_RESOURCE_NOT_AVAILABLE
,
36 IA_CSS_ERR_RESOURCE_LIST_TO_SMALL
,
37 IA_CSS_ERR_RESOURCE_ITEMS_STILL_ALLOCATED
,
38 IA_CSS_ERR_RESOURCE_EXHAUSTED
,
39 IA_CSS_ERR_RESOURCE_ALREADY_ALLOCATED
,
40 IA_CSS_ERR_VERSION_MISMATCH
,
41 IA_CSS_ERR_NOT_SUPPORTED
44 /** FW warnings. This enum contains a value for each warning that
45 * the SP FW could indicate potential performance issue
47 enum ia_css_fw_warning
{
48 IA_CSS_FW_WARNING_NONE
,
49 IA_CSS_FW_WARNING_ISYS_QUEUE_FULL
, /** < CSS system delayed because of insufficient space in the ISys queue.
50 This warning can be avoided by de-queing ISYS buffers more timely. */
51 IA_CSS_FW_WARNING_PSYS_QUEUE_FULL
, /** < CSS system delayed because of insufficient space in the PSys queue.
52 This warning can be avoided by de-queing PSYS buffers more timely. */
53 IA_CSS_FW_WARNING_CIRCBUF_ALL_LOCKED
, /** < CSS system delayed because of insufficient available buffers.
54 This warning can be avoided by unlocking locked frame-buffers more timely. */
55 IA_CSS_FW_WARNING_EXP_ID_LOCKED
, /** < Exposure ID skipped because the frame associated to it was still locked.
56 This warning can be avoided by unlocking locked frame-buffers more timely. */
57 IA_CSS_FW_WARNING_TAG_EXP_ID_FAILED
, /** < Exposure ID cannot be found on the circular buffer.
58 This warning can be avoided by unlocking locked frame-buffers more timely. */
59 IA_CSS_FW_WARNING_FRAME_PARAM_MISMATCH
, /** < Frame and param pair mismatched in tagger.
60 This warning can be avoided by providing a param set for each frame. */
63 #endif /* __IA_CSS_ERR_H */