1/* SPDX-License-Identifier: GPL-2.0 */
2// SPDX-License-Identifier: GPL-2.0-or-later
3/*
4 * (c) 2020 Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
5 */
6
7
8#ifndef __INPUT_SYSTEM_GLOBAL_H_INCLUDED__
9#define __INPUT_SYSTEM_GLOBAL_H_INCLUDED__
10typedef enum {
11 INPUT_SYSTEM_ERR_NO_ERROR = 0,
12 /* ISP2401 */
13 INPUT_SYSTEM_ERR_CREATE_CHANNEL_FAIL,
14 INPUT_SYSTEM_ERR_CONFIGURE_CHANNEL_FAIL,
15 INPUT_SYSTEM_ERR_OPEN_CHANNEL_FAIL,
16 INPUT_SYSTEM_ERR_TRANSFER_FAIL,
17 INPUT_SYSTEM_ERR_CREATE_INPUT_PORT_FAIL,
18 INPUT_SYSTEM_ERR_CONFIGURE_INPUT_PORT_FAIL,
19 INPUT_SYSTEM_ERR_OPEN_INPUT_PORT_FAIL,
20 /* ISP2400 */
21 INPUT_SYSTEM_ERR_GENERIC,
22 INPUT_SYSTEM_ERR_CHANNEL_ALREADY_SET,
23 INPUT_SYSTEM_ERR_CONFLICT_ON_RESOURCE,
24 INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED,
25} input_system_err_t;
26
27#include "isp2401_input_system_global.h"
28#include "isp2400_input_system_global.h"
29
30#endif /* __INPUT_SYSTEM_GLOBAL_H_INCLUDED__ */
31

source code of linux/drivers/staging/media/atomisp/pci/input_system_global.h