| 
									
										
										
										
											2010-02-09 14:30:55 -05:00
										 |  |  | #ifndef _ASM_X86_SWIOTLB_XEN_H
 | 
					
						
							|  |  |  | #define _ASM_X86_SWIOTLB_XEN_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifdef CONFIG_SWIOTLB_XEN
 | 
					
						
							|  |  |  | extern int xen_swiotlb; | 
					
						
							|  |  |  | extern int __init pci_xen_swiotlb_detect(void); | 
					
						
							|  |  |  | extern void __init pci_xen_swiotlb_init(void); | 
					
						
							| 
									
										
										
										
											2012-08-23 14:36:15 -04:00
										 |  |  | extern int pci_xen_swiotlb_init_late(void); | 
					
						
							| 
									
										
										
										
											2010-02-09 14:30:55 -05:00
										 |  |  | #else
 | 
					
						
							|  |  |  | #define xen_swiotlb (0)
 | 
					
						
							|  |  |  | static inline int __init pci_xen_swiotlb_detect(void) { return 0; } | 
					
						
							|  |  |  | static inline void __init pci_xen_swiotlb_init(void) { } | 
					
						
							| 
									
										
										
										
											2012-08-23 14:36:15 -04:00
										 |  |  | static inline int pci_xen_swiotlb_init_late(void) { return -ENXIO; } | 
					
						
							| 
									
										
										
										
											2010-02-09 14:30:55 -05:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* _ASM_X86_SWIOTLB_XEN_H */
 |