1 /* $Id: //depot/sw/releases/Aquila_9.2.0_U5/boot/u-boot/include/asm-mips/byteorder.h#1 $
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
7 * Copyright (C) by Ralf Baechle
9 #ifndef _MIPS_BYTEORDER_H
10 #define _MIPS_BYTEORDER_H
12 #include <asm/types.h>
16 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
17 # define __BYTEORDER_HAS_U64__
18 # define __SWAB_64_THRU_32__
23 #if defined (__MIPSEB__)
24 # include <linux/byteorder/big_endian.h>
25 #elif defined (__MIPSEL__)
26 # include <linux/byteorder/little_endian.h>
28 # error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???"
31 #endif /* _MIPS_BYTEORDER_H */