Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_X86_DMI_H
0003 #define _ASM_X86_DMI_H
0004 
0005 #include <linux/compiler.h>
0006 #include <linux/init.h>
0007 #include <linux/io.h>
0008 
0009 #include <asm/setup.h>
0010 
0011 static __always_inline __init void *dmi_alloc(unsigned len)
0012 {
0013     return extend_brk(len, sizeof(int));
0014 }
0015 
0016 /* Use early IO mappings for DMI because it's initialized early */
0017 #define dmi_early_remap     early_memremap
0018 #define dmi_early_unmap     early_memunmap
0019 #define dmi_remap(_x, _l)   memremap(_x, _l, MEMREMAP_WB)
0020 #define dmi_unmap(_x)       memunmap(_x)
0021 
0022 #endif /* _ASM_X86_DMI_H */