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