1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Release Version: irci_stable_candrpv_0415_20150521_0458 */ 3 /* 4 * Support for Intel Camera Imaging ISP subsystem. 5 * Copyright (c) 2015, Intel Corporation. 6 */ 7 8 #ifndef __SH_CSS_HOST_DATA_H 9 #define __SH_CSS_HOST_DATA_H 10 11 #include <ia_css_types.h> /* ia_css_pipe */ 12 13 /** 14 * @brief Allocate structure ia_css_host_data. 15 * 16 * @param[in] size Size of the requested host data 17 * 18 * @return 19 * - NULL, can't allocate requested size 20 * - pointer to structure, field address points to host data with size bytes 21 */ 22 struct ia_css_host_data * 23 ia_css_host_data_allocate(size_t size); 24 25 /** 26 * @brief Free structure ia_css_host_data. 27 * 28 * @param[in] me Pointer to structure, if a NULL is passed functions 29 * returns without error. Otherwise a valid pointer to 30 * structure must be passed and a related memory 31 * is freed. 32 * 33 * @return 34 */ 35 void ia_css_host_data_free(struct ia_css_host_data *me); 36 37 #endif /* __SH_CSS_HOST_DATA_H */ 38