1 #ifndef _ASM_SH_UNALIGNED_H 2 #define _ASM_SH_UNALIGNED_H 3 4 #ifdef CONFIG_CPU_SH4A 5 /* SH-4A can handle unaligned loads in a relatively neutered fashion. */ 6 #include <asm/unaligned-sh4a.h> 7 #else 8 /* Otherwise, SH can't handle unaligned accesses. */ 9 #ifdef __LITTLE_ENDIAN__ 10 # include <linux/unaligned/le_struct.h> 11 # include <linux/unaligned/be_byteshift.h> 12 # include <linux/unaligned/generic.h> 13 # define get_unaligned __get_unaligned_le 14 # define put_unaligned __put_unaligned_le 15 #else 16 # include <linux/unaligned/be_struct.h> 17 # include <linux/unaligned/le_byteshift.h> 18 # include <linux/unaligned/generic.h> 19 # define get_unaligned __get_unaligned_be 20 # define put_unaligned __put_unaligned_be 21 #endif 22 #endif 23 24 #endif /* _ASM_SH_UNALIGNED_H */ 25