GNU Linux-libre 4.14.266-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / runtime / bufq / interface / ia_css_bufq_comm.h
1 #ifndef ISP2401
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 #else
16 /**
17 Support for Intel Camera Imaging ISP subsystem.
18 Copyright (c) 2010 - 2015, Intel Corporation.
19
20 This program is free software; you can redistribute it and/or modify it
21 under the terms and conditions of the GNU General Public License,
22 version 2, as published by the Free Software Foundation.
23
24 This program is distributed in the hope it will be useful, but WITHOUT
25 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
26 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
27 more details.
28 */
29 #endif
30
31 #ifndef _IA_CSS_BUFQ_COMM_H
32 #define _IA_CSS_BUFQ_COMM_H
33
34 #include "system_global.h"
35
36 enum sh_css_queue_id {
37         SH_CSS_INVALID_QUEUE_ID     = -1,
38         SH_CSS_QUEUE_A_ID = 0,
39         SH_CSS_QUEUE_B_ID,
40         SH_CSS_QUEUE_C_ID,
41         SH_CSS_QUEUE_D_ID,
42         SH_CSS_QUEUE_E_ID,
43         SH_CSS_QUEUE_F_ID,
44         SH_CSS_QUEUE_G_ID,
45 #if defined(HAS_NO_INPUT_SYSTEM)
46         /* input frame queue for skycam */
47         SH_CSS_QUEUE_H_ID,
48 #endif
49 #if defined(USE_INPUT_SYSTEM_VERSION_2) || defined(USE_INPUT_SYSTEM_VERSION_2401)
50         SH_CSS_QUEUE_H_ID, /* for metadata */
51 #endif
52
53 #if defined(HAS_NO_INPUT_SYSTEM) || defined(USE_INPUT_SYSTEM_VERSION_2) || defined(USE_INPUT_SYSTEM_VERSION_2401)
54 #define SH_CSS_MAX_NUM_QUEUES (SH_CSS_QUEUE_H_ID+1)
55 #else
56 #define SH_CSS_MAX_NUM_QUEUES (SH_CSS_QUEUE_G_ID+1)
57 #endif
58
59 };
60
61 #define SH_CSS_MAX_DYNAMIC_BUFFERS_PER_THREAD SH_CSS_MAX_NUM_QUEUES
62 /* for now we staticaly assign queue 0 & 1 to parameter sets */
63 #define IA_CSS_PARAMETER_SET_QUEUE_ID SH_CSS_QUEUE_A_ID
64 #define IA_CSS_PER_FRAME_PARAMETER_SET_QUEUE_ID SH_CSS_QUEUE_B_ID
65
66 #endif