/*1* arch/arm64/include/asm/dmi.h2*3* Copyright (C) 2013 Linaro Limited.4* Written by: Yi Li ([email protected])5*6* based on arch/ia64/include/asm/dmi.h7*8* This file is subject to the terms and conditions of the GNU General Public9* License. See the file "COPYING" in the main directory of this archive10* for more details.11*/1213#ifndef __ASM_DMI_H14#define __ASM_DMI_H1516#include <linux/io.h>17#include <linux/slab.h>1819/*20* According to section 2.3.6 of the UEFI spec, the firmware should not21* request a virtual mapping for configuration tables such as SMBIOS.22* This means we have to map them before use.23*/24#define dmi_early_remap(x, l) ioremap_cache(x, l)25#define dmi_early_unmap(x, l) iounmap(x)26#define dmi_remap(x, l) ioremap_cache(x, l)27#define dmi_unmap(x) iounmap(x)28#define dmi_alloc(l) kzalloc(l, GFP_KERNEL)2930#endif313233