Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_DMI_H
0003 #define _ASM_DMI_H
0004 
0005 #include <linux/io.h>
0006 #include <linux/memblock.h>
0007 
0008 #define dmi_early_remap(x, l)       ioremap_cache(x, l)
0009 #define dmi_early_unmap(x, l)       iounmap(x)
0010 #define dmi_remap(x, l)         ioremap_cache(x, l)
0011 #define dmi_unmap(x)            iounmap(x)
0012 
0013 /* MIPS initialize DMI scan before SLAB is ready, so we use memblock here */
0014 #define dmi_alloc(l)            memblock_alloc_low(l, PAGE_SIZE)
0015 
0016 #if defined(CONFIG_MACH_LOONGSON64)
0017 #define SMBIOS_ENTRY_POINT_SCAN_START   0xFFFE000
0018 #endif
0019 
0020 #endif /* _ASM_DMI_H */