blob: eebe06a9c91dca77a60fd3e39f033776bed4ac50 [file] [log] [blame]
Shinya Kuribayashi19c29292010-01-20 21:07:00 +09001/*
Shinya Kuribayashi19c29292010-01-20 21:07:00 +09002 * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org)
Daniel Schwierzeck898582b2016-01-12 21:48:27 +01003 *
4 * SPDX-License-Identifier: GPL-2.0
Shinya Kuribayashi19c29292010-01-20 21:07:00 +09005 */
6#ifndef _ASM_MIPS_UNALIGNED_H
7#define _ASM_MIPS_UNALIGNED_H
8
Masahiro Yamadaafc366f2014-11-26 16:00:58 +09009#include <linux/compiler.h>
Shinya Kuribayashi19c29292010-01-20 21:07:00 +090010#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 */