blob: fd8f9e2ca35f16ffdac6b9e609be0086ae055803 [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
Jeremy Fitzhardingec8608d62009-03-22 14:48:44 -07004#include <linux/compiler.h>
5#include <linux/init.h>
6
Thomas Gleixner327c21b2007-10-15 23:28:20 +02007#include <asm/io.h>
Jeremy Fitzhardinge6de6cb42009-02-27 13:35:45 -08008#include <asm/setup.h>
Thomas Gleixner327c21b2007-10-15 23:28:20 +02009
Jeremy Fitzhardingec8608d62009-03-22 14:48:44 -070010static __always_inline __init void *dmi_alloc(unsigned len)
Thomas Gleixner327c21b2007-10-15 23:28:20 +020011{
Jeremy Fitzhardinge6de6cb42009-02-27 13:35:45 -080012 return extend_brk(len, sizeof(int));
Thomas Gleixner327c21b2007-10-15 23:28:20 +020013}
14
Jean Delvareef3fb662008-05-01 04:35:01 -070015/* Use early IO mappings for DMI because it's initialized early */
Thomas Gleixner327c21b2007-10-15 23:28:20 +020016#define dmi_ioremap early_ioremap
17#define dmi_iounmap early_iounmap
18
H. Peter Anvin1965aae2008-10-22 22:26:29 -070019#endif /* _ASM_X86_DMI_H */