Shinya Kuribayashi | 19c2929 | 2010-01-20 21:07:00 +0900 | [diff] [blame] | 1 | /* |
Shinya Kuribayashi | 19c2929 | 2010-01-20 21:07:00 +0900 | [diff] [blame] | 2 | * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org) |
Daniel Schwierzeck | 898582b | 2016-01-12 21:48:27 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0 |
Shinya Kuribayashi | 19c2929 | 2010-01-20 21:07:00 +0900 | [diff] [blame] | 5 | */ |
| 6 | #ifndef _ASM_MIPS_UNALIGNED_H |
| 7 | #define _ASM_MIPS_UNALIGNED_H |
| 8 | |
Masahiro Yamada | afc366f | 2014-11-26 16:00:58 +0900 | [diff] [blame] | 9 | #include <linux/compiler.h> |
Shinya Kuribayashi | 19c2929 | 2010-01-20 21:07:00 +0900 | [diff] [blame] | 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 */ |