1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
9 #include <linux/memblock.h>
11 #define dmi_early_remap(x, l) dmi_remap(x, l)
12 #define dmi_early_unmap(x, l) dmi_unmap(x)
13 #define dmi_alloc(l) memblock_alloc(l, PAGE_SIZE)
15 static inline void *dmi_remap(u64 phys_addr
, unsigned long size
)
17 return ((void *)TO_CACHE(phys_addr
));
20 static inline void dmi_unmap(void *addr
)
24 #endif /* _ASM_DMI_H */