6 extern void *dmi_ioremap(unsigned long addr, unsigned long size);
7 extern void dmi_iounmap(void *addr, unsigned long size);
9 extern void *bt_ioremap(unsigned long addr, unsigned long size);
10 extern void bt_iounmap(void *addr, unsigned long size);
13 #define DMI_MAX_DATA 2048
15 extern int dmi_alloc_index;
16 extern char dmi_alloc_data[DMI_MAX_DATA];
18 /* This is so early that there is no good way to allocate dynamic memory.
19 Allocate data in an BSS array. */
20 static inline void *dmi_alloc(unsigned len)
22 int idx = dmi_alloc_index;
23 if ((dmi_alloc_index += len) > DMI_MAX_DATA)
25 return dmi_alloc_data + idx;
29 #define dmi_ioremap bt_ioremap
30 #define dmi_iounmap bt_iounmap
32 #define dmi_ioremap early_ioremap
33 #define dmi_iounmap early_iounmap