dmi.h 850 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * arch/arm64/include/asm/dmi.h
  3. *
  4. * Copyright (C) 2013 Linaro Limited.
  5. * Written by: Yi Li (yi.li@linaro.org)
  6. *
  7. * based on arch/ia64/include/asm/dmi.h
  8. *
  9. * This file is subject to the terms and conditions of the GNU General Public
  10. * License. See the file "COPYING" in the main directory of this archive
  11. * for more details.
  12. */
  13. #ifndef __ASM_DMI_H
  14. #define __ASM_DMI_H
  15. #include <linux/io.h>
  16. #include <linux/slab.h>
  17. /*
  18. * According to section 2.3.6 of the UEFI spec, the firmware should not
  19. * request a virtual mapping for configuration tables such as SMBIOS.
  20. * This means we have to map them before use.
  21. */
  22. #define dmi_early_remap(x, l) ioremap_cache(x, l)
  23. #define dmi_early_unmap(x, l) iounmap(x)
  24. #define dmi_remap(x, l) ioremap_cache(x, l)
  25. #define dmi_unmap(x) iounmap(x)
  26. #define dmi_alloc(l) kzalloc(l, GFP_KERNEL)
  27. #endif