MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / byteorder.h
blob960b6d3ecb149353a0daea12ce719b3274206fb3
1 #ifndef __ASM_NIOS_BYTEORDER_H
2 #define __ASM_NIOS_BYTEORDER_H
4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/byteorder.h
8 * Derived from various works, Alpha, ix86, M68K, Sparc, ...et al
10 * Copyright (C) 2004 Microtronix Datacom Ltd
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
23 * Jan/20/2004 dgt NiosII
25 ---------------------------------------------------------------------*/
28 #include <asm/types.h>
30 #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__)
31 # define __BYTEORDER_HAS_U64__
32 # define __SWAB_64_THRU_32__
33 #endif
35 #include <linux/byteorder/little_endian.h>
37 #endif