| #ifndef ISP2401 |
| /* |
| * Support for Intel Camera Imaging ISP subsystem. |
| * Copyright (c) 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. |
| */ |
| #else |
| /** |
| 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. |
| */ |
| #endif |
| |
| #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 */ |
| uint32_t dmem_data_addr; /**< data segment address in dmem */ |
| uint32_t dmem_bss_addr; /**< bss segment address in dmem */ |
| uint32_t data_size; /**< data segment size */ |
| uint32_t 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__ */ |