xref: /openbmc/linux/arch/arm64/include/asm/dmi.h (revision d1ae8c00)
1d1ae8c00SYi Li /*
2d1ae8c00SYi Li  * arch/arm64/include/asm/dmi.h
3d1ae8c00SYi Li  *
4d1ae8c00SYi Li  * Copyright (C) 2013 Linaro Limited.
5d1ae8c00SYi Li  * Written by: Yi Li (yi.li@linaro.org)
6d1ae8c00SYi Li  *
7d1ae8c00SYi Li  * based on arch/ia64/include/asm/dmi.h
8d1ae8c00SYi Li  *
9d1ae8c00SYi Li  * This file is subject to the terms and conditions of the GNU General Public
10d1ae8c00SYi Li  * License.  See the file "COPYING" in the main directory of this archive
11d1ae8c00SYi Li  * for more details.
12d1ae8c00SYi Li  */
13d1ae8c00SYi Li 
14d1ae8c00SYi Li #ifndef __ASM_DMI_H
15d1ae8c00SYi Li #define __ASM_DMI_H
16d1ae8c00SYi Li 
17d1ae8c00SYi Li #include <linux/io.h>
18d1ae8c00SYi Li #include <linux/slab.h>
19d1ae8c00SYi Li 
20d1ae8c00SYi Li /*
21d1ae8c00SYi Li  * According to section 2.3.6 of the UEFI spec, the firmware should not
22d1ae8c00SYi Li  * request a virtual mapping for configuration tables such as SMBIOS.
23d1ae8c00SYi Li  * This means we have to map them before use.
24d1ae8c00SYi Li  */
25d1ae8c00SYi Li #define dmi_early_remap(x, l)		ioremap_cache(x, l)
26d1ae8c00SYi Li #define dmi_early_unmap(x, l)		iounmap(x)
27d1ae8c00SYi Li #define dmi_remap(x, l)			ioremap_cache(x, l)
28d1ae8c00SYi Li #define dmi_unmap(x)			iounmap(x)
29d1ae8c00SYi Li #define dmi_alloc(l)			kzalloc(l, GFP_KERNEL)
30d1ae8c00SYi Li 
31d1ae8c00SYi Li #endif
32