acpi_viot.h 478 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef __ACPI_VIOT_H__
  3. #define __ACPI_VIOT_H__
  4. #include <linux/acpi.h>
  5. #ifdef CONFIG_ACPI_VIOT
  6. void __init acpi_viot_early_init(void);
  7. void __init acpi_viot_init(void);
  8. int viot_iommu_configure(struct device *dev);
  9. #else
  10. static inline void acpi_viot_early_init(void) {}
  11. static inline void acpi_viot_init(void) {}
  12. static inline int viot_iommu_configure(struct device *dev)
  13. {
  14. return -ENODEV;
  15. }
  16. #endif
  17. #endif /* __ACPI_VIOT_H__ */