GNU Linux-libre 4.14.266-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / hive_isp_css_include / memory_realloc.h
1 /**
2 Support for Intel Camera Imaging ISP subsystem.
3 Copyright (c) 2010 - 2015, Intel Corporation.
4
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.
8
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
12 more details.
13 */
14 #ifndef __MEMORY_REALLOC_H_INCLUDED__
15 #define __MEMORY_REALLOC_H_INCLUDED__
16
17 /*!
18  * \brief
19  * Define the internal reallocation of private css memory
20  *
21  */
22
23 #include <type_support.h>
24 /*
25  * User provided file that defines the (sub)system address types:
26  *      - hrt_vaddress  a type that can hold the (sub)system virtual address range
27  */
28 #include "system_types.h"
29 #include "ia_css_err.h"
30
31 bool reallocate_buffer(
32         hrt_vaddress *curr_buf,
33         size_t *curr_size,
34         size_t needed_size,
35         bool force,
36         enum ia_css_err *err);
37
38 #endif /*__MEMORY_REALLOC_H_INCLUDED__*/