1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_ARM_SWIOTLB_XEN_H
3 #define _ASM_ARM_SWIOTLB_XEN_H
5 #include <xen/features.h>
8 static inline int xen_swiotlb_detect(void)
12 if (xen_feature(XENFEAT_direct_mapped))
15 if (!xen_feature(XENFEAT_not_direct_mapped) && xen_initial_domain())
20 #endif /* _ASM_ARM_SWIOTLB_XEN_H */