1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef _ASM_DMI_H 3*4882a593Smuzhiyun #define _ASM_DMI_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #include <linux/io.h> 6*4882a593Smuzhiyun #include <linux/memblock.h> 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun #define dmi_early_remap(x, l) ioremap_cache(x, l) 9*4882a593Smuzhiyun #define dmi_early_unmap(x, l) iounmap(x) 10*4882a593Smuzhiyun #define dmi_remap(x, l) ioremap_cache(x, l) 11*4882a593Smuzhiyun #define dmi_unmap(x) iounmap(x) 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun /* MIPS initialize DMI scan before SLAB is ready, so we use memblock here */ 14*4882a593Smuzhiyun #define dmi_alloc(l) memblock_alloc_low(l, PAGE_SIZE) 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun #if defined(CONFIG_MACH_LOONGSON64) 17*4882a593Smuzhiyun #define SMBIOS_ENTRY_POINT_SCAN_START 0xFFFE000 18*4882a593Smuzhiyun #endif 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #endif /* _ASM_DMI_H */ 21