blob: aa32f7e6c197485c709670f00cbfe66ae873b65b [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_DMI_H
2#define _ASM_X86_DMI_H
Thomas Gleixner327c21b2007-10-15 23:28:20 +02003
4#include <asm/io.h>
Jeremy Fitzhardinge6de6cb42009-02-27 13:35:45 -08005#include <asm/setup.h>
Thomas Gleixner327c21b2007-10-15 23:28:20 +02006
Thomas Gleixner327c21b2007-10-15 23:28:20 +02007static inline void *dmi_alloc(unsigned len)
8{
Jeremy Fitzhardinge6de6cb42009-02-27 13:35:45 -08009 return extend_brk(len, sizeof(int));
Thomas Gleixner327c21b2007-10-15 23:28:20 +020010}
11
Jean Delvareef3fb662008-05-01 04:35:01 -070012/* Use early IO mappings for DMI because it's initialized early */
Thomas Gleixner327c21b2007-10-15 23:28:20 +020013#define dmi_ioremap early_ioremap
14#define dmi_iounmap early_iounmap
15
H. Peter Anvin1965aae2008-10-22 22:26:29 -070016#endif /* _ASM_X86_DMI_H */