1 /*
2  * SPDX-License-Identifier: BSD-3-Clause
3  * SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4  */
5 
6 #ifndef IMPORT_SYM_H
7 #define IMPORT_SYM_H
8 
9 /*
10  * Define dummy symbols for fake_host build.
11  * These must be defined as constant qualifiers for IMPORT_SYM to work.
12  */
13 #define rmm_text_start	0x10000000UL
14 #define rmm_text_end	0x20000000UL
15 #define rmm_ro_start	0x20000000UL
16 #define rmm_ro_end	0x40000000UL
17 #define rmm_rw_start	0x40000000UL
18 #define rmm_rw_end	0x50000000UL
19 
20 /*
21  * Emulates the import of an assembly or linker symbol as a C expression
22  * with the specified type.
23  */
24 #define IMPORT_SYM(type, sym, name) \
25 	static const __attribute__((unused)) type name = (type)(sym)
26 
27 #endif /* IMPORT_SYM_H */
28