net/igc: support device initialization
[dpdk.git] / drivers / net / igc / igc_ethdev.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019-2020 Intel Corporation
3  */
4
5 #ifndef _IGC_ETHDEV_H_
6 #define _IGC_ETHDEV_H_
7
8 #include <rte_ethdev.h>
9
10 #include "base/igc_osdep.h"
11 #include "base/igc_hw.h"
12 #include "base/igc_i225.h"
13 #include "base/igc_api.h"
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 #define IGC_QUEUE_PAIRS_NUM             4
20
21 /*
22  * Structure to store private data for each driver instance (for each port).
23  */
24 struct igc_adapter {
25         struct igc_hw           hw;
26 };
27
28 #define IGC_DEV_PRIVATE(_dev)   ((_dev)->data->dev_private)
29
30 #define IGC_DEV_PRIVATE_HW(_dev) \
31         (&((struct igc_adapter *)(_dev)->data->dev_private)->hw)
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif /* _IGC_ETHDEV_H_ */