net/i40e: remove summarized global register change info
[dpdk.git] / drivers / net / i40e / i40e_pf.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2017 Intel Corporation
3  */
4
5 #ifndef _I40E_PF_H_
6 #define _I40E_PF_H_
7
8 /* Default setting on number of VSIs that VF can contain */
9 #define I40E_DEFAULT_VF_VSI_NUM 1
10
11 #define I40E_VIRTCHNL_OFFLOAD_CAPS ( \
12         VIRTCHNL_VF_OFFLOAD_L2 | \
13         VIRTCHNL_VF_OFFLOAD_VLAN | \
14         VIRTCHNL_VF_OFFLOAD_RSS_PF | \
15         VIRTCHNL_VF_OFFLOAD_RX_POLLING)
16
17 struct virtchnl_vlan_offload_info {
18         uint16_t vsi_id;
19         uint8_t enable_vlan_strip;
20         uint8_t reserved;
21 };
22
23 /*
24  * Macro to calculate the memory size for configuring VSI queues
25  * via virtual channel.
26  */
27 #define I40E_VIRTCHNL_CONFIG_VSI_QUEUES_SIZE(x, n) \
28         (sizeof(*(x)) + sizeof((x)->qpair[0]) * (n))
29
30 int i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset);
31 void i40e_pf_host_handle_vf_msg(struct rte_eth_dev *dev,
32                                 uint16_t abs_vf_id, uint32_t opcode,
33                                 uint32_t retval,
34                                 uint8_t *msg, uint16_t msglen);
35 int i40e_pf_host_init(struct rte_eth_dev *dev);
36 int i40e_pf_host_uninit(struct rte_eth_dev *dev);
37 void i40e_notify_vf_link_status(struct rte_eth_dev *dev,
38                                 struct i40e_pf_vf *vf);
39
40 #endif /* _I40E_PF_H_ */