1 #ifndef _ASM_SH_UNALIGNED_H 2 #define _ASM_SH_UNALIGNED_H 3 4 /* Copy from linux-kernel. */ 5 6 /* Other than SH4A, SH can't handle unaligned accesses. */ 7 #include <linux/compiler.h> 8 #if defined(__BIG_ENDIAN__) 9 #define get_unaligned __get_unaligned_be 10 #define put_unaligned __put_unaligned_be 11 #elif defined(__LITTLE_ENDIAN__) 12 #define get_unaligned __get_unaligned_le 13 #define put_unaligned __put_unaligned_le 14 #endif 15 16 #include <linux/unaligned/le_byteshift.h> 17 #include <linux/unaligned/be_byteshift.h> 18 #include <linux/unaligned/generic.h> 19 20 #endif /* _ASM_SH_UNALIGNED_H */ 21