1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2019 Marvell International Ltd.
5 #ifndef __OTX2_TIM_EVDEV_H__
6 #define __OTX2_TIM_EVDEV_H__
8 #include <rte_event_timer_adapter.h>
12 #define OTX2_TIM_EVDEV_NAME otx2_tim_eventdev
14 struct otx2_tim_evdev {
15 struct rte_pci_device *pci_dev;
16 struct rte_eventdev *event_dev;
17 struct otx2_mbox *mbox;
22 static inline struct otx2_tim_evdev *
25 const struct rte_memzone *mz;
27 mz = rte_memzone_lookup(RTE_STR(OTX2_TIM_EVDEV_NAME));
34 int otx2_tim_caps_get(const struct rte_eventdev *dev, uint64_t flags,
36 const struct rte_event_timer_adapter_ops **ops);
38 void otx2_tim_init(struct rte_pci_device *pci_dev, struct otx2_dev *cmn_dev);
39 void otx2_tim_fini(void);
41 #endif /* __OTX2_TIM_EVDEV_H__ */