18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Xtensa doesn't handle unaligned accesses efficiently.
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
58c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
68c2ecf20Sopenharmony_ci * for more details.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * Copyright (C) 2001 - 2005 Tensilica Inc.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci#ifndef _ASM_XTENSA_UNALIGNED_H
118c2ecf20Sopenharmony_ci#define _ASM_XTENSA_UNALIGNED_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include <asm/byteorder.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#ifdef __LITTLE_ENDIAN
168c2ecf20Sopenharmony_ci# include <linux/unaligned/le_struct.h>
178c2ecf20Sopenharmony_ci# include <linux/unaligned/be_byteshift.h>
188c2ecf20Sopenharmony_ci# include <linux/unaligned/generic.h>
198c2ecf20Sopenharmony_ci# define get_unaligned	__get_unaligned_le
208c2ecf20Sopenharmony_ci# define put_unaligned	__put_unaligned_le
218c2ecf20Sopenharmony_ci#else
228c2ecf20Sopenharmony_ci# include <linux/unaligned/be_struct.h>
238c2ecf20Sopenharmony_ci# include <linux/unaligned/le_byteshift.h>
248c2ecf20Sopenharmony_ci# include <linux/unaligned/generic.h>
258c2ecf20Sopenharmony_ci# define get_unaligned	__get_unaligned_be
268c2ecf20Sopenharmony_ci# define put_unaligned	__put_unaligned_be
278c2ecf20Sopenharmony_ci#endif
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif	/* _ASM_XTENSA_UNALIGNED_H */
30