common/cnxk: use wider mask to extract RPM ID
[dpdk.git] / drivers / common / cnxk / roc_ree_priv.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2021 Marvell.
3  */
4
5 #ifndef _ROC_REE_PRIV_H_
6 #define _ROC_REE_PRIV_H_
7
8 struct ree {
9         struct dev dev;
10 } __plt_cache_aligned;
11
12 static inline struct ree *
13 roc_ree_to_ree_priv(struct roc_ree_vf *roc_ree)
14 {
15         return (struct ree *)&roc_ree->reserved[0];
16 }
17
18 #endif /* _ROC_REE_PRIV_H_ */