mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 02:59:34 +00:00 
			
		
		
		
	 84db8d7cdb
			
		
	
	
		84db8d7cdb
		
	
	
	
	
		
			
			Leaving include/asm/arch alone for now. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			633 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			633 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _ASM_AVR32_UNALIGNED_H
 | |
| #define _ASM_AVR32_UNALIGNED_H
 | |
| 
 | |
| /*
 | |
|  * AVR32 can handle some unaligned accesses, depending on the
 | |
|  * implementation.  The AVR32 AP implementation can handle unaligned
 | |
|  * words, but halfwords must be halfword-aligned, and doublewords must
 | |
|  * be word-aligned.
 | |
|  *
 | |
|  * However, swapped word loads must be word-aligned so we can't
 | |
|  * optimize word loads in general.
 | |
|  */
 | |
| 
 | |
| #include <linux/unaligned/be_struct.h>
 | |
| #include <linux/unaligned/le_byteshift.h>
 | |
| #include <linux/unaligned/generic.h>
 | |
| 
 | |
| #define get_unaligned	__get_unaligned_be
 | |
| #define put_unaligned	__put_unaligned_be
 | |
| 
 | |
| #endif /* _ASM_AVR32_UNALIGNED_H */
 |