1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef _IMD_PRIVATE_H_
4 #define _IMD_PRIVATE_H_
7 #include <commonlib/bsd/helpers.h>
9 /* In-memory data structures. */
10 struct imd_root_pointer
{
12 /* Relative to upper limit/offset. */
18 /* start is located relative to imd_root */
29 /* Used for fixing the size of an imd. Relative to the root. */
31 struct imd_entry entries
[];
34 #define IMD_ROOT_PTR_MAGIC 0xc0389481
35 #define IMD_ENTRY_MAGIC (~0xc0389481)
36 #define SMALL_REGION_ID CBMEM_ID_IMD_SMALL
37 #define LIMIT_ALIGN 4096
39 #define IMD_FLAG_LOCKED 1
41 #endif /* _IMD_PRIVATE_H */