to make u-boot work for fat32 filesystem
[jz_uboot.git] / include / asm-mips / byteorder.h
blobb9604cf202aabe1268bd1119697404b9528f2d60
1 /* $Id: byteorder.h,v 1.8 1998/11/02 09:29:32 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Copyright (C) by Ralf Baechle
8 */
9 #ifndef _MIPS_BYTEORDER_H
10 #define _MIPS_BYTEORDER_H
12 #include <asm/types.h>
14 #ifdef __GNUC__
16 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
17 # define __BYTEORDER_HAS_U64__
18 # define __SWAB_64_THRU_32__
19 #endif
21 #endif /* __GNUC__ */
23 #if defined (__MIPSEB__)
24 # include <linux/byteorder/big_endian.h>
25 #elif defined (__MIPSEL__)
26 # include <linux/byteorder/little_endian.h>
27 #else
28 # error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???"
29 #endif
31 #endif /* _MIPS_BYTEORDER_H */