2022-04-02 13:17:33 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
|
|
|
#ifndef __ACPI_VIOT_H__
|
|
|
|
#define __ACPI_VIOT_H__
|
|
|
|
|
|
|
|
#include <linux/acpi.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_ACPI_VIOT
|
2022-09-13 18:14:27 +00:00
|
|
|
void __init acpi_viot_early_init(void);
|
2022-04-02 13:17:33 +00:00
|
|
|
void __init acpi_viot_init(void);
|
|
|
|
int viot_iommu_configure(struct device *dev);
|
|
|
|
#else
|
2022-09-13 18:14:27 +00:00
|
|
|
static inline void acpi_viot_early_init(void) {}
|
2022-04-02 13:17:33 +00:00
|
|
|
static inline void acpi_viot_init(void) {}
|
|
|
|
static inline int viot_iommu_configure(struct device *dev)
|
|
|
|
{
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __ACPI_VIOT_H__ */
|