Simon Kagstrom | 20938e5 | 2009-07-07 15:58:51 +0200 | [diff] [blame] | 1 | #ifndef _ASM_ARM_UNALIGNED_H |
2 | #define _ASM_ARM_UNALIGNED_H | ||||
3 | |||||
4 | #include <linux/unaligned/access_ok.h> | ||||
5 | #include <linux/unaligned/generic.h> | ||||
6 | |||||
7 | /* | ||||
8 | * Select endianness | ||||
9 | */ | ||||
10 | #ifndef __ARMEB__ | ||||
11 | #define get_unaligned __get_unaligned_le | ||||
12 | #define put_unaligned __put_unaligned_le | ||||
13 | #else | ||||
14 | #define get_unaligned __get_unaligned_be | ||||
15 | #define put_unaligned __put_unaligned_be | ||||
16 | #endif | ||||
17 | |||||
18 | #endif /* _ASM_ARM_UNALIGNED_H */ |