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