2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 #include <ia_css_host_data.h>
17 #include <sh_css_internal.h>
19 struct ia_css_host_data *ia_css_host_data_allocate(size_t size)
21 struct ia_css_host_data *me;
23 me = sh_css_malloc(sizeof(struct ia_css_host_data));
26 me->size = (uint32_t)size;
27 me->address = sh_css_malloc(size);
35 void ia_css_host_data_free(struct ia_css_host_data *me)
38 sh_css_free(me->address);