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 7 #ifndef __HMEM_PRIVATE_H_INCLUDED__ 8 #define __HMEM_PRIVATE_H_INCLUDED__ 9 10 #include "hmem_public.h" 11 12 #include "assert_support.h" 13 sizeof_hmem(const hmem_ID_t ID)14STORAGE_CLASS_HMEM_C size_t sizeof_hmem( 15 const hmem_ID_t ID) 16 { 17 assert(ID < N_HMEM_ID); 18 (void)ID; 19 return HMEM_SIZE * sizeof(hmem_data_t); 20 } 21 22 #endif /* __HMEM_PRIVATE_H_INCLUDED__ */ 23