]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - drivers/staging/media/atomisp/pci/atomisp2/css2400/ia_css_err.h
Merge remote-tracking branch 'asoc/topic/pcm512x' into asoc-next
[mirror_ubuntu-focal-kernel.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / ia_css_err.h
CommitLineData
a49d2536
AC
1/*
2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
4 *
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.
8 *
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
12 * more details.
13 */
14
15#ifndef __IA_CSS_ERR_H
16#define __IA_CSS_ERR_H
17
d929fb4e 18/* @file
a49d2536
AC
19 * This file contains possible return values for most
20 * functions in the CSS-API.
21 */
22
d929fb4e 23/* Errors, these values are used as the return value for most
a49d2536
AC
24 * functions in this API.
25 */
26enum ia_css_err {
27 IA_CSS_SUCCESS,
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
42};
43
d929fb4e 44/* FW warnings. This enum contains a value for each warning that
a49d2536
AC
45 * the SP FW could indicate potential performance issue
46 */
47enum ia_css_fw_warning {
48 IA_CSS_FW_WARNING_NONE,
d929fb4e 49 IA_CSS_FW_WARNING_ISYS_QUEUE_FULL, /* < CSS system delayed because of insufficient space in the ISys queue.
a49d2536 50 This warning can be avoided by de-queing ISYS buffers more timely. */
d929fb4e 51 IA_CSS_FW_WARNING_PSYS_QUEUE_FULL, /* < CSS system delayed because of insufficient space in the PSys queue.
a49d2536 52 This warning can be avoided by de-queing PSYS buffers more timely. */
d929fb4e 53 IA_CSS_FW_WARNING_CIRCBUF_ALL_LOCKED, /* < CSS system delayed because of insufficient available buffers.
a49d2536 54 This warning can be avoided by unlocking locked frame-buffers more timely. */
d929fb4e 55 IA_CSS_FW_WARNING_EXP_ID_LOCKED, /* < Exposure ID skipped because the frame associated to it was still locked.
a49d2536 56 This warning can be avoided by unlocking locked frame-buffers more timely. */
d929fb4e 57 IA_CSS_FW_WARNING_TAG_EXP_ID_FAILED, /* < Exposure ID cannot be found on the circular buffer.
a49d2536 58 This warning can be avoided by unlocking locked frame-buffers more timely. */
d929fb4e 59 IA_CSS_FW_WARNING_FRAME_PARAM_MISMATCH, /* < Frame and param pair mismatched in tagger.
a49d2536
AC
60 This warning can be avoided by providing a param set for each frame. */
61};
62
63#endif /* __IA_CSS_ERR_H */