1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
5 #ifndef __CNXK_TIM_EVDEV_H__
6 #define __CNXK_TIM_EVDEV_H__
13 #include <eventdev_pmd_pci.h>
14 #include <rte_event_timer_adapter.h>
15 #include <rte_memzone.h>
19 #define CNXK_TIM_EVDEV_NAME cnxk_tim_eventdev
20 #define CNXK_TIM_RING_DEF_CHUNK_SZ (4096)
22 struct cnxk_tim_evdev {
24 struct rte_eventdev *event_dev;
29 static inline struct cnxk_tim_evdev *
32 const struct rte_memzone *mz;
34 mz = rte_memzone_lookup(RTE_STR(CNXK_TIM_EVDEV_NAME));
41 void cnxk_tim_init(struct roc_sso *sso);
42 void cnxk_tim_fini(void);
44 #endif /* __CNXK_TIM_EVDEV_H__ */