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