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 __IBUF_CTRL_RMGR_H_INCLUDED__
17 #define __IBUF_CTRL_RMGR_H_INCLUDED__
18 
19 #define MAX_IBUF_HANDLES	24
20 #define MAX_INPUT_BUFFER_SIZE	(64 * 1024)
21 #define IBUF_ALIGN		8
22 
23 typedef struct ibuf_handle_s ibuf_handle_t;
24 struct ibuf_handle_s {
25 	u32	start_addr;
26 	u32	size;
27 	bool		active;
28 };
29 
30 typedef struct ibuf_rsrc_s ibuf_rsrc_t;
31 struct ibuf_rsrc_s {
32 	u32	free_start_addr;
33 	u32	free_size;
34 	u16	num_active;
35 	u16	num_allocated;
36 	ibuf_handle_t	handles[MAX_IBUF_HANDLES];
37 };
38 
39 #endif /* __IBUF_CTRL_RMGR_H_INCLUDED */
40