1 #ifndef _ASM_X86_DMI_H 2 #define _ASM_X86_DMI_H 3 4 #include <linux/compiler.h> 5 #include <linux/init.h> 6 7 #include <asm/io.h> 8 #include <asm/setup.h> 9 10 static __always_inline __init void *dmi_alloc(unsigned len) 11 { 12 return extend_brk(len, sizeof(int)); 13 } 14 15 /* Use early IO mappings for DMI because it's initialized early */ 16 #define dmi_early_remap early_memremap 17 #define dmi_early_unmap early_memunmap 18 #define dmi_remap(_x, _l) memremap(_x, _l, MEMREMAP_WB) 19 #define dmi_unmap(_x) memunmap(_x) 20 21 #endif /* _ASM_X86_DMI_H */ 22