aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/byteorder.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/byteorder.h')
-rw-r--r--include/asm-mips/byteorder.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/asm-mips/byteorder.h b/include/asm-mips/byteorder.h
new file mode 100644
index 000000000000..d1fe9e5c62e4
--- /dev/null
+++ b/include/asm-mips/byteorder.h
@@ -0,0 +1,30 @@
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1996, 99, 2003 by Ralf Baechle
7 */
8#ifndef _ASM_BYTEORDER_H
9#define _ASM_BYTEORDER_H
10
11#include <asm/types.h>
12
13#ifdef __GNUC__
14
15#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
16# define __BYTEORDER_HAS_U64__
17# define __SWAB_64_THRU_32__
18#endif
19
20#endif /* __GNUC__ */
21
22#if defined (__MIPSEB__)
23# include <linux/byteorder/big_endian.h>
24#elif defined (__MIPSEL__)
25# include <linux/byteorder/little_endian.h>
26#else
27# error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???"
28#endif
29
30#endif /* _ASM_BYTEORDER_H */