18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * arch/arm64/include/asm/dmi.h 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 2013 Linaro Limited. 58c2ecf20Sopenharmony_ci * Written by: Yi Li (yi.li@linaro.org) 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * based on arch/ia64/include/asm/dmi.h 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 108c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 118c2ecf20Sopenharmony_ci * for more details. 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#ifndef __ASM_DMI_H 158c2ecf20Sopenharmony_ci#define __ASM_DMI_H 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#include <linux/io.h> 188c2ecf20Sopenharmony_ci#include <linux/slab.h> 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci/* 218c2ecf20Sopenharmony_ci * According to section 2.3.6 of the UEFI spec, the firmware should not 228c2ecf20Sopenharmony_ci * request a virtual mapping for configuration tables such as SMBIOS. 238c2ecf20Sopenharmony_ci * This means we have to map them before use. 248c2ecf20Sopenharmony_ci */ 258c2ecf20Sopenharmony_ci#define dmi_early_remap(x, l) ioremap_cache(x, l) 268c2ecf20Sopenharmony_ci#define dmi_early_unmap(x, l) iounmap(x) 278c2ecf20Sopenharmony_ci#define dmi_remap(x, l) ioremap_cache(x, l) 288c2ecf20Sopenharmony_ci#define dmi_unmap(x) iounmap(x) 298c2ecf20Sopenharmony_ci#define dmi_alloc(l) kzalloc(l, GFP_KERNEL) 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif 32