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_BUFQ_COMM_H
17 #define _IA_CSS_BUFQ_COMM_H
18 
19 #include "system_global.h"
20 
21 enum sh_css_queue_id {
22 	SH_CSS_INVALID_QUEUE_ID     = -1,
23 	SH_CSS_QUEUE_A_ID = 0,
24 	SH_CSS_QUEUE_B_ID,
25 	SH_CSS_QUEUE_C_ID,
26 	SH_CSS_QUEUE_D_ID,
27 	SH_CSS_QUEUE_E_ID,
28 	SH_CSS_QUEUE_F_ID,
29 	SH_CSS_QUEUE_G_ID,
30 	SH_CSS_QUEUE_H_ID, /* for metadata */
31 
32 #define SH_CSS_MAX_NUM_QUEUES (SH_CSS_QUEUE_H_ID + 1)
33 
34 };
35 
36 #define SH_CSS_MAX_DYNAMIC_BUFFERS_PER_THREAD SH_CSS_MAX_NUM_QUEUES
37 /* for now we staticaly assign queue 0 & 1 to parameter sets */
38 #define IA_CSS_PARAMETER_SET_QUEUE_ID SH_CSS_QUEUE_A_ID
39 #define IA_CSS_PER_FRAME_PARAMETER_SET_QUEUE_ID SH_CSS_QUEUE_B_ID
40 
41 #endif
42