18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2008 Michal Simek <monstr@monstr.eu> 48c2ecf20Sopenharmony_ci * Copyright (C) 2006 Atmark Techno, Inc. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _ASM_MICROBLAZE_UNALIGNED_H 88c2ecf20Sopenharmony_ci#define _ASM_MICROBLAZE_UNALIGNED_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci# ifdef __KERNEL__ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci# ifdef __MICROBLAZEEL__ 138c2ecf20Sopenharmony_ci# include <linux/unaligned/le_struct.h> 148c2ecf20Sopenharmony_ci# include <linux/unaligned/be_byteshift.h> 158c2ecf20Sopenharmony_ci# define get_unaligned __get_unaligned_le 168c2ecf20Sopenharmony_ci# define put_unaligned __put_unaligned_le 178c2ecf20Sopenharmony_ci# else 188c2ecf20Sopenharmony_ci# include <linux/unaligned/be_struct.h> 198c2ecf20Sopenharmony_ci# include <linux/unaligned/le_byteshift.h> 208c2ecf20Sopenharmony_ci# define get_unaligned __get_unaligned_be 218c2ecf20Sopenharmony_ci# define put_unaligned __put_unaligned_be 228c2ecf20Sopenharmony_ci# endif 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci# include <linux/unaligned/generic.h> 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci# endif /* __KERNEL__ */ 278c2ecf20Sopenharmony_ci#endif /* _ASM_MICROBLAZE_UNALIGNED_H */ 28