net/octeontx2: add ethdev probe and remove
[dpdk.git] / drivers / net / octeontx2 / otx2_ethdev.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2019 Marvell International Ltd.
3  */
4
5 #ifndef __OTX2_ETHDEV_H__
6 #define __OTX2_ETHDEV_H__
7
8 #include <stdint.h>
9
10 #include <rte_common.h>
11
12 #include "otx2_common.h"
13 #include "otx2_dev.h"
14 #include "otx2_irq.h"
15 #include "otx2_mempool.h"
16
17 struct otx2_eth_dev {
18         OTX2_DEV; /* Base class */
19 } __rte_cache_aligned;
20
21 static inline struct otx2_eth_dev *
22 otx2_eth_pmd_priv(struct rte_eth_dev *eth_dev)
23 {
24         return eth_dev->data->dev_private;
25 }
26
27 #endif /* __OTX2_ETHDEV_H__ */