GNU Linux-libre 4.14.251-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / ia_css_host_data.h
1 /* Release Version: irci_stable_candrpv_0415_20150521_0458 */
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
16 #ifndef __SH_CSS_HOST_DATA_H
17 #define __SH_CSS_HOST_DATA_H
18
19 #include <ia_css_types.h>       /* ia_css_pipe */
20
21 /**
22  * @brief Allocate structure ia_css_host_data.
23  *
24  * @param[in]   size            Size of the requested host data
25  *
26  * @return
27  *      - NULL, can't allocate requested size
28  *      - pointer to structure, field address points to host data with size bytes
29  */
30 struct ia_css_host_data *
31 ia_css_host_data_allocate(size_t size);
32
33 /**
34  * @brief Free structure ia_css_host_data.
35  *
36  * @param[in]   me      Pointer to structure, if a NULL is passed functions
37  *                      returns without error. Otherwise a valid pointer to
38  *                      structure must be passed and a related memory
39  *                      is freed.
40  *
41  * @return
42  */
43 void ia_css_host_data_free(struct ia_css_host_data *me);
44
45 #endif /* __SH_CSS_HOST_DATA_H */
46