xref: /openbmc/u-boot/arch/mips/include/asm/unaligned.h (revision d9b23e26)
1 /*
2  * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org)
3  *
4  * SPDX-License-Identifier:	GPL-2.0
5  */
6 #ifndef _ASM_MIPS_UNALIGNED_H
7 #define _ASM_MIPS_UNALIGNED_H
8 
9 #include <linux/compiler.h>
10 #if defined(__MIPSEB__)
11 #define get_unaligned	__get_unaligned_be
12 #define put_unaligned	__put_unaligned_be
13 #elif defined(__MIPSEL__)
14 #define get_unaligned	__get_unaligned_le
15 #define put_unaligned	__put_unaligned_le
16 #else
17 #error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???"
18 #endif
19 
20 #include <linux/unaligned/le_byteshift.h>
21 #include <linux/unaligned/be_byteshift.h>
22 #include <linux/unaligned/generic.h>
23 
24 #endif /* _ASM_MIPS_UNALIGNED_H */
25