summaryrefslogtreecommitdiffstats
path: root/arch/arc/include/asm/byteorder.h
diff options
context:
space:
mode:
authorVineet Gupta2013-01-18 10:42:17 +0100
committerVineet Gupta2013-02-11 15:30:34 +0100
commitca15c8ecd588dda4377d18d6d27bc1e87b4177cb (patch)
tree18dd349a93acd9d32bcf18f2c8c8eb93369fc44d /arch/arc/include/asm/byteorder.h
parentasm-generic headers: Allow yet more arch overrides in checksum.h (diff)
downloadkernel-qcow2-linux-ca15c8ecd588dda4377d18d6d27bc1e87b4177cb.tar.gz
kernel-qcow2-linux-ca15c8ecd588dda4377d18d6d27bc1e87b4177cb.tar.xz
kernel-qcow2-linux-ca15c8ecd588dda4377d18d6d27bc1e87b4177cb.zip
ARC: Checksum/byteorder/swab routines
TBD: do_csum still needs to be written in asm Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arc/include/asm/byteorder.h')
-rw-r--r--arch/arc/include/asm/byteorder.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arc/include/asm/byteorder.h b/arch/arc/include/asm/byteorder.h
new file mode 100644
index 000000000000..9da71d415c38
--- /dev/null
+++ b/arch/arc/include/asm/byteorder.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __ASM_ARC_BYTEORDER_H
+#define __ASM_ARC_BYTEORDER_H
+
+#ifdef CONFIG_CPU_BIG_ENDIAN
+#include <linux/byteorder/big_endian.h>
+#else
+#include <linux/byteorder/little_endian.h>
+#endif
+
+#endif /* ASM_ARC_BYTEORDER_H */