dmi.h 523 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
  4. */
  5. #ifndef _ASM_DMI_H
  6. #define _ASM_DMI_H
  7. #include <linux/io.h>
  8. #include <linux/memblock.h>
  9. #define dmi_early_remap(x, l) dmi_remap(x, l)
  10. #define dmi_early_unmap(x, l) dmi_unmap(x)
  11. #define dmi_alloc(l) memblock_alloc(l, PAGE_SIZE)
  12. static inline void *dmi_remap(u64 phys_addr, unsigned long size)
  13. {
  14. return ((void *)TO_CACHE(phys_addr));
  15. }
  16. static inline void dmi_unmap(void *addr)
  17. {
  18. }
  19. #endif /* _ASM_DMI_H */