Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 1 | #ifndef _ASM_M68KNOMMU_UNALIGNED_H |
| 2 | #define _ASM_M68KNOMMU_UNALIGNED_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | |
| 5 | #ifdef CONFIG_COLDFIRE |
Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 6 | #include <linux/unaligned/be_struct.h> |
| 7 | #include <linux/unaligned/le_byteshift.h> |
| 8 | #include <linux/unaligned/generic.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 10 | #define get_unaligned __get_unaligned_be |
| 11 | #define put_unaligned __put_unaligned_be |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
| 13 | #else |
| 14 | /* |
| 15 | * The m68k can do unaligned accesses itself. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | */ |
Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 17 | #include <linux/unaligned/access_ok.h> |
| 18 | #include <linux/unaligned/generic.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 20 | #define get_unaligned __get_unaligned_be |
| 21 | #define put_unaligned __put_unaligned_be |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
| 23 | #endif |
| 24 | |
Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 25 | #endif /* _ASM_M68KNOMMU_UNALIGNED_H */ |