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_ioremap 17 #define dmi_early_unmap early_iounmap 18 #define dmi_remap ioremap_cache 19 #define dmi_unmap iounmap 20 21 #endif /* _ASM_X86_DMI_H */ 22