xref: /linux/arch/riscv/include/asm/dmi.h (revision 527a0f2bdcfe77fce22f006b97e42e4da3137c86)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2024 Intel Corporation
4  *
5  * based on arch/arm64/include/asm/dmi.h
6  *
7  * This file is subject to the terms and conditions of the GNU General Public
8  * License.  See the file "COPYING" in the main directory of this archive
9  * for more details.
10  */
11 
12 #ifndef __ASM_DMI_H
13 #define __ASM_DMI_H
14 
15 #include <linux/io.h>
16 #include <linux/slab.h>
17 
18 #define dmi_early_remap(x, l)		memremap(x, l, MEMREMAP_WB)
19 #define dmi_early_unmap(x, l)		memunmap(x)
20 #define dmi_remap(x, l)			memremap(x, l, MEMREMAP_WB)
21 #define dmi_unmap(x)			memunmap(x)
22 #define dmi_alloc(l)			kzalloc(l, GFP_KERNEL)
23 
24 #endif
25