![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef _ASM_ARM_XEN_OPS_H 0003 #define _ASM_ARM_XEN_OPS_H 0004 0005 #include <xen/swiotlb-xen.h> 0006 #include <xen/xen-ops.h> 0007 0008 static inline void xen_setup_dma_ops(struct device *dev) 0009 { 0010 #ifdef CONFIG_XEN 0011 if (xen_is_grant_dma_device(dev)) 0012 xen_grant_setup_dma_ops(dev); 0013 else if (xen_swiotlb_detect()) 0014 dev->dma_ops = &xen_swiotlb_dma_ops; 0015 #endif 0016 } 0017 0018 #endif /* _ASM_ARM_XEN_OPS_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |