Merge remote-tracking branches 'asoc/fix/msm8916', 'asoc/fix/nau8825', 'asoc/fix...
[sfrench/cifs-2.6.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / runtime / spctrl / interface / ia_css_spctrl_comm.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 __IA_CSS_SPCTRL_COMM_H__
32 #define __IA_CSS_SPCTRL_COMM_H__
33
34 #include <type_support.h>
35
36 /* state of SP */
37 typedef enum {
38         IA_CSS_SP_SW_TERMINATED = 0,
39         IA_CSS_SP_SW_INITIALIZED,
40         IA_CSS_SP_SW_CONNECTED,
41         IA_CSS_SP_SW_RUNNING
42 } ia_css_spctrl_sp_sw_state;
43
44 /* Structure to encapsulate required arguments for
45  * initialization of SP DMEM using the SP itself
46  */
47 struct ia_css_sp_init_dmem_cfg {
48         ia_css_ptr      ddr_data_addr;  /** data segment address in ddr  */
49         uint32_t        dmem_data_addr; /** data segment address in dmem */
50         uint32_t        dmem_bss_addr;  /** bss segment address in dmem  */
51         uint32_t        data_size;      /** data segment size            */
52         uint32_t        bss_size;       /** bss segment size             */
53         sp_ID_t         sp_id;          /* <sp Id */
54 };
55
56 #define SIZE_OF_IA_CSS_SP_INIT_DMEM_CFG_STRUCT  \
57         (1 * SIZE_OF_IA_CSS_PTR) +              \
58         (4 * sizeof(uint32_t)) +                \
59         (1 * sizeof(sp_ID_t))
60
61 #endif /* __IA_CSS_SPCTRL_COMM_H__ */