blob: 5acf0819620e99de55c0e8aba6e4c55076f05ec4 [file] [log] [blame]
Nobuhiro Iwamatsuda5e0832010-02-08 11:50:16 +09001#ifndef _ASM_SH_UNALIGNED_H
2#define _ASM_SH_UNALIGNED_H
3
4/* Copy from linux-kernel. */
5
Tom Rinif0debb22021-02-10 12:51:25 -05006/* Other than SH4A, SH can't handle unaligned accesses. */
Masahiro Yamadaafc366f2014-11-26 16:00:58 +09007#include <linux/compiler.h>
Nobuhiro Iwamatsuda5e0832010-02-08 11:50:16 +09008#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>
Nobuhiro Iwamatsuda5e0832010-02-08 11:50:16 +090019
20#endif /* _ASM_SH_UNALIGNED_H */