Simon Glass | 744d985 | 2011-10-10 08:22:14 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The Chromium OS Authors. |
| 3 | * |
Wolfgang Denk | 3765b3e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 744d985 | 2011-10-10 08:22:14 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_SANDBOX_BYTEORDER_H |
| 8 | #define __ASM_SANDBOX_BYTEORDER_H |
| 9 | |
| 10 | |
| 11 | #include <asm/types.h> |
| 12 | |
| 13 | #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) |
| 14 | # define __BYTEORDER_HAS_U64__ |
| 15 | # define __SWAB_64_THRU_32__ |
| 16 | #endif |
| 17 | |
| 18 | #ifdef CONFIG_SANDBOX_BIG_ENDIAN |
| 19 | #include <linux/byteorder/big_endian.h> |
| 20 | #else |
| 21 | #include <linux/byteorder/little_endian.h> |
| 22 | #endif |
| 23 | |
| 24 | #endif |