b4e008b1474604e4986408671fb8c54c9a8b33c7
[dpdk.git] / drivers / common / octeontx2 / otx2_common.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2019 Marvell International Ltd.
3  */
4
5 #ifndef _OTX2_COMMON_H_
6 #define _OTX2_COMMON_H_
7
8 #include <rte_common.h>
9
10 #include "hw/otx2_rvu.h"
11 #include "hw/otx2_nix.h"
12 #include "hw/otx2_npc.h"
13 #include "hw/otx2_npa.h"
14 #include "hw/otx2_sso.h"
15 #include "hw/otx2_ssow.h"
16 #include "hw/otx2_tim.h"
17
18 /* Alignment */
19 #define OTX2_ALIGN  128
20
21 /* Bits manipulation */
22 #ifndef BIT_ULL
23 #define BIT_ULL(nr) (1ULL << (nr))
24 #endif
25 #ifndef BIT
26 #define BIT(nr)     (1UL << (nr))
27 #endif
28
29 /* Compiler attributes */
30 #ifndef __hot
31 #define __hot   __attribute__((hot))
32 #endif
33
34 #endif /* _OTX2_COMMON_H_ */