1 #ifndef __ASM_ARM_UNALIGNED_H
2 #define __ASM_ARM_UNALIGNED_H
3
4
5
6
7
8
9 #include <asm/byteorder.h>
10
11 #if defined(__LITTLE_ENDIAN)
12 # include <linux/unaligned/le_struct.h>
13 # include <linux/unaligned/be_byteshift.h>
14 # include <linux/unaligned/generic.h>
15 # define get_unaligned __get_unaligned_le
16 # define put_unaligned __put_unaligned_le
17 #elif defined(__BIG_ENDIAN)
18 # include <linux/unaligned/be_struct.h>
19 # include <linux/unaligned/le_byteshift.h>
20 # include <linux/unaligned/generic.h>
21 # define get_unaligned __get_unaligned_be
22 # define put_unaligned __put_unaligned_be
23 #else
24 # error need to define endianess
25 #endif
26
27 #endif