Konrad Rzeszutek Wilk | bbbe573 | 2010-02-09 14:30:55 -0500 | [diff] [blame] | 1 | #ifndef _ASM_X86_SWIOTLB_XEN_H |
| 2 | #define _ASM_X86_SWIOTLB_XEN_H |
| 3 | |
| 4 | #ifdef CONFIG_SWIOTLB_XEN |
| 5 | extern int xen_swiotlb; |
| 6 | extern int __init pci_xen_swiotlb_detect(void); |
| 7 | extern void __init pci_xen_swiotlb_init(void); |
Konrad Rzeszutek Wilk | b827760 | 2012-08-23 14:36:15 -0400 | [diff] [blame] | 8 | extern int pci_xen_swiotlb_init_late(void); |
Konrad Rzeszutek Wilk | bbbe573 | 2010-02-09 14:30:55 -0500 | [diff] [blame] | 9 | #else |
| 10 | #define xen_swiotlb (0) |
| 11 | static inline int __init pci_xen_swiotlb_detect(void) { return 0; } |
| 12 | static inline void __init pci_xen_swiotlb_init(void) { } |
Konrad Rzeszutek Wilk | b827760 | 2012-08-23 14:36:15 -0400 | [diff] [blame] | 13 | static inline int pci_xen_swiotlb_init_late(void) { return -ENXIO; } |
Konrad Rzeszutek Wilk | bbbe573 | 2010-02-09 14:30:55 -0500 | [diff] [blame] | 14 | #endif |
| 15 | |
| 16 | #endif /* _ASM_X86_SWIOTLB_XEN_H */ |