1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2010 - 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_TAGGER_COMMON_H__
17 #define __IA_CSS_TAGGER_COMMON_H__
18 
19 #include <system_local.h>
20 #include <type_support.h>
21 
22 /**
23  * @brief The tagger's circular buffer.
24  *
25  * Should be one less than NUM_CONTINUOUS_FRAMES in sh_css_internal.h
26  */
27 #define MAX_CB_ELEMS_FOR_TAGGER 14
28 
29 /**
30  * @brief Data structure for the tagger buffer element.
31  */
32 typedef struct {
33 	u32 frame;	/* the frame value stored in the element */
34 	u32 param;	/* the param value stored in the element */
35 	u8 mark;	/* the mark on the element */
36 	u8 lock;	/* the lock on the element */
37 	u8 exp_id; /* exp_id of frame, for debugging only */
38 } ia_css_tagger_buf_sp_elem_t;
39 
40 #endif /* __IA_CSS_TAGGER_COMMON_H__ */
41