1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
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.
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
16 #ifndef __VMEM_H_INCLUDED__
17 #define __VMEM_H_INCLUDED__
20 * This file is included on every cell {SP,ISP,host} and on every system
21 * that uses the VMEM device. It defines the API to DLI bridge
23 * System and cell specific interfaces and inline code are included
24 * conditionally through Makefile path settings.
26 * - . system and cell agnostic interfaces, constants and identifiers
27 * - public: system agnostic, cell specific interfaces
28 * - private: system dependent, cell specific interfaces & inline implementations
29 * - global: system specific constants and identifiers
30 * - local: system and cell specific constants and identifiers
33 #include "system_local.h"
34 #include "vmem_local.h"
36 #ifndef __INLINE_VMEM__
37 #define STORAGE_CLASS_VMEM_H extern
38 #define STORAGE_CLASS_VMEM_C
39 #include "vmem_public.h"
40 #else /* __INLINE_VMEM__ */
41 #define STORAGE_CLASS_VMEM_H static inline
42 #define STORAGE_CLASS_VMEM_C static inline
43 #include "vmem_private.h"
44 #endif /* __INLINE_VMEM__ */
46 #endif /* __VMEM_H_INCLUDED__ */