Commit | Line | Data |
---|---|---|
6510d419 HH |
1 | #ifndef _ASM_M68KNOMMU_UNALIGNED_H |
2 | #define _ASM_M68KNOMMU_UNALIGNED_H | |
1da177e4 | 3 | |
1da177e4 LT |
4 | |
5 | #ifdef CONFIG_COLDFIRE | |
6510d419 HH |
6 | #include <linux/unaligned/be_struct.h> |
7 | #include <linux/unaligned/le_byteshift.h> | |
8 | #include <linux/unaligned/generic.h> | |
1da177e4 | 9 | |
6510d419 HH |
10 | #define get_unaligned __get_unaligned_be |
11 | #define put_unaligned __put_unaligned_be | |
1da177e4 LT |
12 | |
13 | #else | |
14 | /* | |
15 | * The m68k can do unaligned accesses itself. | |
1da177e4 | 16 | */ |
6510d419 HH |
17 | #include <linux/unaligned/access_ok.h> |
18 | #include <linux/unaligned/generic.h> | |
1da177e4 | 19 | |
6510d419 HH |
20 | #define get_unaligned __get_unaligned_be |
21 | #define put_unaligned __put_unaligned_be | |
1da177e4 LT |
22 | |
23 | #endif | |
24 | ||
6510d419 | 25 | #endif /* _ASM_M68KNOMMU_UNALIGNED_H */ |