forked from mirrors/linux
		
	 4a605e2d1a
			
		
	
	
		4a605e2d1a
		
	
	
	
	
		
			
			There is no need to provide anything but get_arch_dma_ops to <linux/dma-mapping.h>. More the remaining declarations to <asm/iommu.h> and drop all the includes. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			520 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			520 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| /*
 | |
|  * Copyright (C) 2004 IBM
 | |
|  */
 | |
| #ifndef _ASM_DMA_MAPPING_H
 | |
| #define _ASM_DMA_MAPPING_H
 | |
| 
 | |
| static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
 | |
| {
 | |
| 	/* We don't handle the NULL dev case for ISA for now. We could
 | |
| 	 * do it via an out of line call but it is not needed for now. The
 | |
| 	 * only ISA DMA device we support is the floppy and we have a hack
 | |
| 	 * in the floppy driver directly to get a device for us.
 | |
| 	 */
 | |
| 	return NULL;
 | |
| }
 | |
| 
 | |
| #endif	/* _ASM_DMA_MAPPING_H */
 |