xref: /linux/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/hmem_public.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1 /* SPDX-License-Identifier: GPL-2.0 */
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 __HMEM_PUBLIC_H_INCLUDED__
17 #define __HMEM_PUBLIC_H_INCLUDED__
18 
19 #include <linux/types.h>		/* size_t */
20 
21 /*! Return the size of HMEM[ID]
22 
23  \param	ID[in]				HMEM identifier
24 
25  \Note: The size is the byte size of the area it occupies
26 		in the address map. I.e. disregarding internal structure
27 
28  \return sizeof(HMEM[ID])
29  */
30 STORAGE_CLASS_HMEM_H size_t sizeof_hmem(
31     const hmem_ID_t		ID);
32 
33 #endif /* __HMEM_PUBLIC_H_INCLUDED__ */
34