1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2020 Intel Corporation
5 #ifndef _ICE_DCF_ETHDEV_H_
6 #define _ICE_DCF_ETHDEV_H_
8 #include "base/ice_common.h"
9 #include "base/ice_adminq_cmd.h"
11 #include "ice_ethdev.h"
14 #define ICE_DCF_MAX_RINGS 1
16 struct ice_dcf_queue {
20 struct ice_dcf_adapter {
21 struct ice_adapter parent; /* Must be first */
23 struct ice_dcf_hw real_hw;
24 struct ice_dcf_queue rxqs[ICE_DCF_MAX_RINGS];
25 struct ice_dcf_queue txqs[ICE_DCF_MAX_RINGS];
28 void ice_dcf_handle_pf_event_msg(struct ice_dcf_hw *dcf_hw,
29 uint8_t *msg, uint16_t msglen);
30 int ice_dcf_init_parent_adapter(struct rte_eth_dev *eth_dev);
31 void ice_dcf_uninit_parent_adapter(struct rte_eth_dev *eth_dev);
33 #endif /* _ICE_DCF_ETHDEV_H_ */