Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_DMI_H |
2 | #define _ASM_X86_DMI_H | |
327c21bc | 3 | |
c8608d6b JF |
4 | #include <linux/compiler.h> |
5 | #include <linux/init.h> | |
6 | ||
327c21bc | 7 | #include <asm/io.h> |
6de6cb44 | 8 | #include <asm/setup.h> |
327c21bc | 9 | |
c8608d6b | 10 | static __always_inline __init void *dmi_alloc(unsigned len) |
327c21bc | 11 | { |
6de6cb44 | 12 | return extend_brk(len, sizeof(int)); |
327c21bc TG |
13 | } |
14 | ||
ef3fb66c | 15 | /* Use early IO mappings for DMI because it's initialized early */ |
cf074402 AB |
16 | #define dmi_early_remap early_ioremap |
17 | #define dmi_early_unmap early_iounmap | |
18 | #define dmi_remap ioremap | |
19 | #define dmi_unmap iounmap | |
327c21bc | 20 | |
1965aae3 | 21 | #endif /* _ASM_X86_DMI_H */ |