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  * This program is free software; you can redistribute it and/or modify it
8  * under the terms and conditions of the GNU General Public License,
9  * version 2, as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  */
16 
17 #ifndef __SH_CSS_HOST_DATA_H
18 #define __SH_CSS_HOST_DATA_H
19 
20 #include <ia_css_types.h>	/* ia_css_pipe */
21 
22 /**
23  * @brief Allocate structure ia_css_host_data.
24  *
25  * @param[in]	size		Size of the requested host data
26  *
27  * @return
28  *	- NULL, can't allocate requested size
29  *	- pointer to structure, field address points to host data with size bytes
30  */
31 struct ia_css_host_data *
32 ia_css_host_data_allocate(size_t size);
33 
34 /**
35  * @brief Free structure ia_css_host_data.
36  *
37  * @param[in]	me	Pointer to structure, if a NULL is passed functions
38  *			returns without error. Otherwise a valid pointer to
39  *			structure must be passed and a related memory
40  *			is freed.
41  *
42  * @return
43  */
44 void ia_css_host_data_free(struct ia_css_host_data *me);
45 
46 #endif /* __SH_CSS_HOST_DATA_H */
47