xref: /openbmc/u-boot/arch/nios2/include/asm/byteorder.h (revision 872cfa20cd694fdbfa76abddd3cd00b05ad5355b)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
4  * Scott McNutt <smcnutt@psyent.com>
5  */
6 
7 #ifndef __ASM_NIOS2_BYTEORDER_H_
8 #define __ASM_NIOS2_BYTEORDER_H_
9 
10 #include <asm/types.h>
11 
12 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
13 #  define __BYTEORDER_HAS_U64__
14 #  define __SWAB_64_THRU_32__
15 #endif
16 
17 #include <linux/byteorder/little_endian.h>
18 
19 #endif /* __ASM_NIOS2_BYTEORDER_H_ */
20