GNU Linux-libre 4.14.294-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / css_2401_csi2p_system / host / ibuf_ctrl_local.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #ifndef __IBUF_CTRL_LOCAL_H_INCLUDED__
16 #define __IBUF_CTRL_LOCAL_H_INCLUDED__
17
18 #include "ibuf_ctrl_global.h"
19
20 typedef struct ibuf_ctrl_proc_state_s   ibuf_ctrl_proc_state_t;
21 typedef struct ibuf_ctrl_state_s                ibuf_ctrl_state_t;
22
23 struct ibuf_ctrl_proc_state_s {
24         hrt_data num_items;
25         hrt_data num_stores;
26         hrt_data dma_channel;
27         hrt_data dma_command;
28         hrt_data ibuf_st_addr;
29         hrt_data ibuf_stride;
30         hrt_data ibuf_end_addr;
31         hrt_data dest_st_addr;
32         hrt_data dest_stride;
33         hrt_data dest_end_addr;
34         hrt_data sync_frame;
35         hrt_data sync_command;
36         hrt_data store_command;
37         hrt_data shift_returned_items;
38         hrt_data elems_ibuf;
39         hrt_data elems_dest;
40         hrt_data cur_stores;
41         hrt_data cur_acks;
42         hrt_data cur_s2m_ibuf_addr;
43         hrt_data cur_dma_ibuf_addr;
44         hrt_data cur_dma_dest_addr;
45         hrt_data cur_isp_dest_addr;
46         hrt_data dma_cmds_send;
47         hrt_data main_cntrl_state;
48         hrt_data dma_sync_state;
49         hrt_data isp_sync_state;
50 };
51
52 struct ibuf_ctrl_state_s {
53         hrt_data        recalc_words;
54         hrt_data        arbiters;
55         ibuf_ctrl_proc_state_t  proc_state[N_STREAM2MMIO_SID_ID];
56 };
57
58 #endif /* __IBUF_CTRL_LOCAL_H_INCLUDED__ */