Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1965aae3 PA |
2 | #ifndef _ASM_X86_DMI_H |
3 | #define _ASM_X86_DMI_H | |
327c21bc | 4 | |
c8608d6b JF |
5 | #include <linux/compiler.h> |
6 | #include <linux/init.h> | |
447ae316 | 7 | #include <linux/io.h> |
c8608d6b | 8 | |
6de6cb44 | 9 | #include <asm/setup.h> |
327c21bc | 10 | |
c8608d6b | 11 | static __always_inline __init void *dmi_alloc(unsigned len) |
327c21bc | 12 | { |
6de6cb44 | 13 | return extend_brk(len, sizeof(int)); |
327c21bc TG |
14 | } |
15 | ||
ef3fb66c | 16 | /* Use early IO mappings for DMI because it's initialized early */ |
f7750a79 TL |
17 | #define dmi_early_remap early_memremap |
18 | #define dmi_early_unmap early_memunmap | |
19 | #define dmi_remap(_x, _l) memremap(_x, _l, MEMREMAP_WB) | |
20 | #define dmi_unmap(_x) memunmap(_x) | |
327c21bc | 21 | |
1965aae3 | 22 | #endif /* _ASM_X86_DMI_H */ |