aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/dmi_64.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2007-10-15 17:28:20 -0400
committerThomas Gleixner <tglx@inhelltoy.tec.linutronix.de>2007-10-17 14:17:18 -0400
commit327c21bc3d347d545d227103d7cc58039ab8a0be (patch)
treea7d66db9e564c4cdaef2c45fc74b6b8884b3beff /include/asm-x86/dmi_64.h
parentf1ea05466a13c4fbae852f2ce87aada594f3134f (diff)
x86: unify include/asm/dmi_32/64.h
Unification, so we have these things in one file. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/dmi_64.h')
-rw-r--r--include/asm-x86/dmi_64.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/include/asm-x86/dmi_64.h b/include/asm-x86/dmi_64.h
deleted file mode 100644
index d02e32e3c3f0..000000000000
--- a/include/asm-x86/dmi_64.h
+++ /dev/null
@@ -1,24 +0,0 @@
1#ifndef _ASM_DMI_H
2#define _ASM_DMI_H 1
3
4#include <asm/io.h>
5
6#define DMI_MAX_DATA 2048
7
8extern int dmi_alloc_index;
9extern char dmi_alloc_data[DMI_MAX_DATA];
10
11/* This is so early that there is no good way to allocate dynamic memory.
12 Allocate data in an BSS array. */
13static inline void *dmi_alloc(unsigned len)
14{
15 int idx = dmi_alloc_index;
16 if ((dmi_alloc_index += len) > DMI_MAX_DATA)
17 return NULL;
18 return dmi_alloc_data + idx;
19}
20
21#define dmi_ioremap early_ioremap
22#define dmi_iounmap early_iounmap
23
24#endif