Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
32 lines
850 B
C
32 lines
850 B
C
/*
|
|
* arch/arm64/include/asm/dmi.h
|
|
*
|
|
* Copyright (C) 2013 Linaro Limited.
|
|
* Written by: Yi Li (yi.li@linaro.org)
|
|
*
|
|
* based on arch/ia64/include/asm/dmi.h
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*/
|
|
|
|
#ifndef __ASM_DMI_H
|
|
#define __ASM_DMI_H
|
|
|
|
#include <linux/io.h>
|
|
#include <linux/slab.h>
|
|
|
|
/*
|
|
* According to section 2.3.6 of the UEFI spec, the firmware should not
|
|
* request a virtual mapping for configuration tables such as SMBIOS.
|
|
* This means we have to map them before use.
|
|
*/
|
|
#define dmi_early_remap(x, l) ioremap_cache(x, l)
|
|
#define dmi_early_unmap(x, l) iounmap(x)
|
|
#define dmi_remap(x, l) ioremap_cache(x, l)
|
|
#define dmi_unmap(x) iounmap(x)
|
|
#define dmi_alloc(l) kzalloc(l, GFP_KERNEL)
|
|
|
|
#endif
|