net/bnx2x: fix meson build
[dpdk.git] / drivers / net / bnx2x / bnx2x_osal.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2019 Cavium Inc.
3  *
4  * All rights reserved.
5  * www.cavium.com
6  */
7
8 #ifndef BNX2X_OSAL_H
9 #define BNX2X_OSAL_H
10
11 #ifdef RTE_EXEC_ENV_FREEBSD
12 #include <sys/stat.h>
13 #else
14 #include <linux/types.h>
15 #endif
16
17 #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
18 #ifndef __LITTLE_ENDIAN
19 #define __LITTLE_ENDIAN RTE_LITTLE_ENDIAN
20 #endif
21 #undef __BIG_ENDIAN
22 #elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
23 #ifndef __BIG_ENDIAN
24 #define __BIG_ENDIAN    RTE_BIG_ENDIAN
25 #endif
26 #undef __LITTLE_ENDIAN
27 #endif
28
29 #ifdef RTE_EXEC_ENV_FREEBSD
30 #define __le16          uint16_t
31 #define __le32          uint32_t
32 #define __le64          uint64_t
33 #endif
34
35 #endif /* BNX2X_OSAL_H */