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