common/cnxk: support TIM device
[dpdk.git] / drivers / common / cnxk / roc_tim_priv.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2021 Marvell.
3  */
4
5 #ifndef _ROC_TIM_PRIV_H_
6 #define _ROC_TIM_PRIV_H_
7
8 struct tim {
9 };
10
11 enum tim_err_status {
12         TIM_ERR_PARAM = -5120,
13 };
14
15 static inline struct tim *
16 roc_tim_to_tim_priv(struct roc_tim *roc_tim)
17 {
18         return (struct tim *)&roc_tim->reserved[0];
19 }
20
21 #endif /* _ROC_TIM_PRIV_H_ */