1 /* SPDX-License-Identifier: GPL-2.0+ */
2 // Copyright (c) 2016-2017 Hisilicon Limited.
3 
4 #ifndef __HCLGE_MDIO_H
5 #define __HCLGE_MDIO_H
6 
7 int hclge_mac_mdio_config(struct hclge_dev *hdev);
8 int hclge_mac_connect_phy(struct hnae3_handle *handle);
9 void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
10 void hclge_mac_start_phy(struct hclge_dev *hdev);
11 void hclge_mac_stop_phy(struct hclge_dev *hdev);
12 u16 hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr);
13 int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val);
14 
15 #endif
16