Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Shinya Kuribayashi | 19c2929 | 2010-01-20 21:07:00 +0900 | [diff] [blame] | 2 | /* |
Shinya Kuribayashi | 19c2929 | 2010-01-20 21:07:00 +0900 | [diff] [blame] | 3 | * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org) |
| 4 | */ |
| 5 | #ifndef _ASM_MIPS_UNALIGNED_H |
| 6 | #define _ASM_MIPS_UNALIGNED_H |
| 7 | |
Masahiro Yamada | afc366f | 2014-11-26 16:00:58 +0900 | [diff] [blame] | 8 | #include <linux/compiler.h> |
Shinya Kuribayashi | 19c2929 | 2010-01-20 21:07:00 +0900 | [diff] [blame] | 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 */ |