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
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 */