dmi.h 411 B

1234567891011121314151617181920
  1. #ifndef _ASM_X86_DMI_H
  2. #define _ASM_X86_DMI_H
  3. #include <linux/compiler.h>
  4. #include <linux/init.h>
  5. #include <asm/io.h>
  6. #include <asm/setup.h>
  7. static __always_inline __init void *dmi_alloc(unsigned len)
  8. {
  9. return extend_brk(len, sizeof(int));
  10. }
  11. /* Use early IO mappings for DMI because it's initialized early */
  12. #define dmi_ioremap early_ioremap
  13. #define dmi_iounmap early_iounmap
  14. #endif /* _ASM_X86_DMI_H */