hc
2024-03-26 e0728245c89800c2038c23308f2d88969d5b41c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Support for Intel Camera Imaging ISP subsystem.
 * Copyright (c) 2010 - 2015, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 */
 
#ifndef __IA_CSS_SPCTRL_COMM_H__
#define __IA_CSS_SPCTRL_COMM_H__
 
#include <type_support.h>
 
/* state of SP */
typedef enum {
   IA_CSS_SP_SW_TERMINATED = 0,
   IA_CSS_SP_SW_INITIALIZED,
   IA_CSS_SP_SW_CONNECTED,
   IA_CSS_SP_SW_RUNNING
} ia_css_spctrl_sp_sw_state;
 
/* Structure to encapsulate required arguments for
 * initialization of SP DMEM using the SP itself
 */
struct ia_css_sp_init_dmem_cfg {
   ia_css_ptr      ddr_data_addr;  /** data segment address in ddr  */
   u32        dmem_data_addr; /** data segment address in dmem */
   u32        dmem_bss_addr;  /** bss segment address in dmem  */
   u32        data_size;      /** data segment size            */
   u32        bss_size;       /** bss segment size             */
   sp_ID_t         sp_id;          /* <sp Id */
};
 
#define SIZE_OF_IA_CSS_SP_INIT_DMEM_CFG_STRUCT    \
   (1 * SIZE_OF_IA_CSS_PTR) +        \
   (4 * sizeof(uint32_t)) +        \
   (1 * sizeof(sp_ID_t))
 
#endif /* __IA_CSS_SPCTRL_COMM_H__ */