OMAP: Add new function to check wether there is irq pending
[linux-ginger.git] / arch / sh / include / asm / unaligned.h
blob8c0ad5e4487aff72faceeff9d36fe915d96f01dc
1 #ifndef _ASM_SH_UNALIGNED_H
2 #define _ASM_SH_UNALIGNED_H
4 #ifdef CONFIG_CPU_SH4A
5 /* SH-4A can handle unaligned loads in a relatively neutered fashion. */
6 #include <asm/unaligned-sh4a.h>
7 #else
8 /* Otherwise, SH can't handle unaligned accesses. */
9 #ifdef __LITTLE_ENDIAN__
10 # include <linux/unaligned/le_struct.h>
11 # include <linux/unaligned/be_byteshift.h>
12 # include <linux/unaligned/generic.h>
13 # define get_unaligned __get_unaligned_le
14 # define put_unaligned __put_unaligned_le
15 #else
16 # include <linux/unaligned/be_struct.h>
17 # include <linux/unaligned/le_byteshift.h>
18 # include <linux/unaligned/generic.h>
19 # define get_unaligned __get_unaligned_be
20 # define put_unaligned __put_unaligned_be
21 #endif
22 #endif
24 #endif /* _ASM_SH_UNALIGNED_H */