GNU Linux-libre 4.14.328-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / runtime / isys / src / ibuf_ctrl_rmgr.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 __IBUF_CTRL_RMGR_H_INCLUDED__
32 #define __IBUF_CTRL_RMGR_H_INCLUDED__
33
34 #define MAX_IBUF_HANDLES        24
35 #define MAX_INPUT_BUFFER_SIZE   (64 * 1024)
36 #define IBUF_ALIGN              8
37
38 typedef struct ibuf_handle_s ibuf_handle_t;
39 struct ibuf_handle_s {
40         uint32_t        start_addr;
41         uint32_t        size;
42         bool            active;
43 };
44
45 typedef struct ibuf_rsrc_s ibuf_rsrc_t;
46 struct ibuf_rsrc_s {
47         uint32_t        free_start_addr;
48         uint32_t        free_size;
49         uint16_t        num_active;
50         uint16_t        num_allocated;
51         ibuf_handle_t   handles[MAX_IBUF_HANDLES];
52 };
53
54 #endif /* __IBUF_CTRL_RMGR_H_INCLUDED */
55