Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | 744d985 | 2011-10-10 08:22:14 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2011 The Chromium OS Authors. |
Simon Glass | 744d985 | 2011-10-10 08:22:14 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_SANDBOX_BYTEORDER_H |
| 7 | #define __ASM_SANDBOX_BYTEORDER_H |
| 8 | |
| 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 | #ifdef CONFIG_SANDBOX_BIG_ENDIAN |
| 18 | #include <linux/byteorder/big_endian.h> |
| 19 | #else |
| 20 | #include <linux/byteorder/little_endian.h> |
| 21 | #endif |
| 22 | |
| 23 | #endif |