6 extern void *dmi_ioremap(unsigned long addr, unsigned long size);
7 extern void dmi_iounmap(void *addr, unsigned long size);
8 extern void *bt_ioremap(unsigned long addr, unsigned long size);
9 extern void bt_iounmap(void *addr, unsigned long size);
11 #define DMI_MAX_DATA 2048
13 extern int dmi_alloc_index;
14 extern char dmi_alloc_data[DMI_MAX_DATA];
16 /* This is so early that there is no good way to allocate dynamic memory.
17 Allocate data in an BSS array. */
18 static inline void *dmi_alloc(unsigned len)
20 int idx = dmi_alloc_index;
21 if ((dmi_alloc_index += len) > DMI_MAX_DATA)
23 return dmi_alloc_data + idx;
26 #define dmi_ioremap bt_ioremap
27 #define dmi_iounmap bt_iounmap