0001
0002
0003
0004 #ifndef __HCLGE_MDIO_H
0005 #define __HCLGE_MDIO_H
0006
0007 #include "hnae3.h"
0008
0009 struct hclge_dev;
0010
0011 int hclge_mac_mdio_config(struct hclge_dev *hdev);
0012 int hclge_mac_connect_phy(struct hnae3_handle *handle);
0013 void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
0014 void hclge_mac_start_phy(struct hclge_dev *hdev);
0015 void hclge_mac_stop_phy(struct hclge_dev *hdev);
0016 u16 hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr);
0017 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val);
0018
0019 #endif