mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-30 03:40:41 +00:00 
			
		
		
		
	 173b3a7a05
			
		
	
	
		173b3a7a05
		
	
	
	
	
		
			
			By moving dma_mask into pdev_archdata, and adding archdata to struct of_device, it makes it possible to substitute of_device with struct platform_device, which is a stepping stone to removing the of_platform bus entirely. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
		
			
				
	
	
		
			27 lines
		
	
	
		
			530 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			530 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Arch specific extensions to struct device
 | |
|  *
 | |
|  * This file is subject to the terms and conditions of the GNU General Public
 | |
|  * License v2. See the file "COPYING" in the main directory of this archive
 | |
|  * for more details.
 | |
|  */
 | |
| 
 | |
| #ifndef _ASM_MICROBLAZE_DEVICE_H
 | |
| #define _ASM_MICROBLAZE_DEVICE_H
 | |
| 
 | |
| struct device_node;
 | |
| 
 | |
| struct dev_archdata {
 | |
| 	/* DMA operations on that device */
 | |
| 	struct dma_map_ops	*dma_ops;
 | |
| 	void                    *dma_data;
 | |
| };
 | |
| 
 | |
| struct pdev_archdata {
 | |
| 	u64 dma_mask;
 | |
| };
 | |
| 
 | |
| #endif /* _ASM_MICROBLAZE_DEVICE_H */
 | |
| 
 | |
| 
 |