Debian Codegraph @

arch/mips/include/asm/dmi.h

raw
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_DMI_H
3 #define _ASM_DMI_H
4
5 #include <linux/io.h>
6 #include <linux/memblock.h>
7
8 #define dmi_early_remap(x, l) ioremap(x, l)
9 #define dmi_early_unmap(x, l) iounmap(x)
10 #define dmi_remap(x, l) ioremap_cache(x, l)
11 #define dmi_unmap(x) iounmap(x)
12
13 /* MIPS initialize DMI scan before SLAB is ready, so we use memblock here */
14 #define dmi_alloc(l) memblock_alloc_low(l, PAGE_SIZE)
15
16 #if defined(CONFIG_MACH_LOONGSON64)
17 #define SMBIOS_ENTRY_POINT_SCAN_START 0xFFFE000
18 #endif
19
20 #endif /* _ASM_DMI_H */