dmi.h 553 B

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