xref: /rk3399_rockchip-uboot/arch/nios2/include/asm/byteorder.h (revision 326ea986ac150acdc7656d57fca647db80b50158)
1819833afSPeter Tyser /*
2819833afSPeter Tyser * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
3819833afSPeter Tyser * Scott McNutt <smcnutt@psyent.com>
4819833afSPeter Tyser *
5*1a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
6819833afSPeter Tyser */
7819833afSPeter Tyser 
8819833afSPeter Tyser #ifndef __ASM_NIOS2_BYTEORDER_H_
9819833afSPeter Tyser #define __ASM_NIOS2_BYTEORDER_H_
10819833afSPeter Tyser 
11819833afSPeter Tyser #include <asm/types.h>
120dc1c7f6SThomas Chou 
130dc1c7f6SThomas Chou #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
140dc1c7f6SThomas Chou #  define __BYTEORDER_HAS_U64__
150dc1c7f6SThomas Chou #  define __SWAB_64_THRU_32__
160dc1c7f6SThomas Chou #endif
170dc1c7f6SThomas Chou 
18819833afSPeter Tyser #include <linux/byteorder/little_endian.h>
19819833afSPeter Tyser 
20819833afSPeter Tyser #endif /* __ASM_NIOS2_BYTEORDER_H_ */
21