1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2019 Cavium Inc.
11 #ifdef RTE_EXEC_ENV_FREEBSD
14 #include <linux/types.h>
17 #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
18 #ifndef __LITTLE_ENDIAN
19 #define __LITTLE_ENDIAN RTE_LITTLE_ENDIAN
22 #elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
24 #define __BIG_ENDIAN RTE_BIG_ENDIAN
26 #undef __LITTLE_ENDIAN
29 #ifdef RTE_EXEC_ENV_FREEBSD
30 #define __le16 uint16_t
31 #define __le32 uint32_t
32 #define __le64 uint64_t
35 #endif /* BNX2X_OSAL_H */