blob: debb9cf7aba642565388440efb4f2a615e266e64 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Shinya Kuribayashi19c29292010-01-20 21:07:00 +09002/*
Shinya Kuribayashi19c29292010-01-20 21:07:00 +09003 * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org)
4 */
5#ifndef _ASM_MIPS_UNALIGNED_H
6#define _ASM_MIPS_UNALIGNED_H
7
Masahiro Yamadaafc366f2014-11-26 16:00:58 +09008#include <linux/compiler.h>
Shinya Kuribayashi19c29292010-01-20 21:07:00 +09009#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 */