1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2010-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_PRIVATE_H_INCLUDED__
17#define __HMEM_PRIVATE_H_INCLUDED__
18
19#include "hmem_public.h"
20
21#include "assert_support.h"
22
23STORAGE_CLASS_HMEM_C size_t sizeof_hmem(
24    const hmem_ID_t		ID)
25{
26	assert(ID < N_HMEM_ID);
27	(void)ID;
28	return HMEM_SIZE * sizeof(hmem_data_t);
29}
30
31#endif /* __HMEM_PRIVATE_H_INCLUDED__ */
32