H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_DMI_H |
| 2 | #define _ASM_X86_DMI_H |
Thomas Gleixner | 327c21b | 2007-10-15 23:28:20 +0200 | [diff] [blame] | 3 | |
Jeremy Fitzhardinge | c8608d6 | 2009-03-22 14:48:44 -0700 | [diff] [blame] | 4 | #include <linux/compiler.h> |
| 5 | #include <linux/init.h> |
| 6 | |
Thomas Gleixner | 327c21b | 2007-10-15 23:28:20 +0200 | [diff] [blame] | 7 | #include <asm/io.h> |
Jeremy Fitzhardinge | 6de6cb4 | 2009-02-27 13:35:45 -0800 | [diff] [blame] | 8 | #include <asm/setup.h> |
Thomas Gleixner | 327c21b | 2007-10-15 23:28:20 +0200 | [diff] [blame] | 9 | |
Jeremy Fitzhardinge | c8608d6 | 2009-03-22 14:48:44 -0700 | [diff] [blame] | 10 | static __always_inline __init void *dmi_alloc(unsigned len) |
Thomas Gleixner | 327c21b | 2007-10-15 23:28:20 +0200 | [diff] [blame] | 11 | { |
Jeremy Fitzhardinge | 6de6cb4 | 2009-02-27 13:35:45 -0800 | [diff] [blame] | 12 | return extend_brk(len, sizeof(int)); |
Thomas Gleixner | 327c21b | 2007-10-15 23:28:20 +0200 | [diff] [blame] | 13 | } |
| 14 | |
Jean Delvare | ef3fb66 | 2008-05-01 04:35:01 -0700 | [diff] [blame] | 15 | /* Use early IO mappings for DMI because it's initialized early */ |
Thomas Gleixner | 327c21b | 2007-10-15 23:28:20 +0200 | [diff] [blame] | 16 | #define dmi_ioremap early_ioremap |
| 17 | #define dmi_iounmap early_iounmap |
| 18 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 19 | #endif /* _ASM_X86_DMI_H */ |