net/hns3: extract common function to obtain revision ID
[dpdk.git] / drivers / net / hns3 / hns3_common.h
index 0dbb1c0..2994e4a 100644 (file)
@@ -52,10 +52,13 @@ int hns3_set_mc_mac_addr_list(struct rte_eth_dev *dev,
                              uint32_t nb_mc_addr);
 void hns3_ether_format_addr(char *buf, uint16_t size,
                            const struct rte_ether_addr *ether_addr);
+int hns3_init_mac_addrs(struct rte_eth_dev *dev);
 
 int hns3_init_ring_with_vector(struct hns3_hw *hw);
 int hns3_map_rx_interrupt(struct rte_eth_dev *dev);
 void hns3_unmap_rx_interrupt(struct rte_eth_dev *dev);
 int hns3_restore_rx_interrupt(struct hns3_hw *hw);
 
+int hns3_get_pci_revision_id(struct hns3_hw *hw, uint8_t *revision_id);
+
 #endif /* _HNS3_COMMON_H_ */