iommu.h 505 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_IA64_IOMMU_H
  3. #define _ASM_IA64_IOMMU_H 1
  4. #include <linux/acpi.h>
  5. /* 10 seconds */
  6. #define DMAR_OPERATION_TIMEOUT (((cycles_t) local_cpu_data->itc_freq)*10)
  7. extern void no_iommu_init(void);
  8. #ifdef CONFIG_INTEL_IOMMU
  9. extern int force_iommu, no_iommu;
  10. extern int iommu_detected;
  11. static inline int __init
  12. arch_rmrr_sanity_check(struct acpi_dmar_reserved_memory *rmrr) { return 0; }
  13. #else
  14. #define no_iommu (1)
  15. #define iommu_detected (0)
  16. #endif
  17. #endif