blob: b162ed880495d1636491d2f8ed390960ab2e90c9 [file] [log] [blame]
Michal Simek4b87d7a2009-03-27 14:25:30 +01001/*
2 * Copyright (C) 2008 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2006 Atmark Techno, Inc.
4 *
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 */
9
10#ifndef _ASM_MICROBLAZE_UNALIGNED_H
11#define _ASM_MICROBLAZE_UNALIGNED_H
12
13# ifdef __KERNEL__
14
Michal Simek02b08042010-09-28 16:04:14 +100015# ifdef __MICROBLAZEEL__
Michal Simek60114972011-02-18 14:29:20 +010016# include <linux/unaligned/le_struct.h>
17# include <linux/unaligned/be_byteshift.h>
Michal Simek02b08042010-09-28 16:04:14 +100018# define get_unaligned __get_unaligned_le
19# define put_unaligned __put_unaligned_le
20# else
Michal Simek60114972011-02-18 14:29:20 +010021# include <linux/unaligned/be_struct.h>
22# include <linux/unaligned/le_byteshift.h>
Michal Simek02b08042010-09-28 16:04:14 +100023# define get_unaligned __get_unaligned_be
24# define put_unaligned __put_unaligned_be
25# endif
Michal Simek4b87d7a2009-03-27 14:25:30 +010026
Michal Simek60114972011-02-18 14:29:20 +010027# include <linux/unaligned/generic.h>
28
Michal Simek4b87d7a2009-03-27 14:25:30 +010029# endif /* __KERNEL__ */
30#endif /* _ASM_MICROBLAZE_UNALIGNED_H */