mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 17:51:23 +00:00

The hns3 driver header file uses the structure of other files, but does not include corresponding file, which causes a check warning that the header file is not self-contained. Therefore, the required header file is included in the header file, and the structure declaration is added to the header file to avoid cyclic dependency of the header file. Signed-off-by: Jie Wang <wangjie125@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
20 lines
581 B
C
20 lines
581 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
// Copyright (c) 2016-2017 Hisilicon Limited.
|
|
|
|
#ifndef __HCLGE_MDIO_H
|
|
#define __HCLGE_MDIO_H
|
|
|
|
#include "hnae3.h"
|
|
|
|
struct hclge_dev;
|
|
|
|
int hclge_mac_mdio_config(struct hclge_dev *hdev);
|
|
int hclge_mac_connect_phy(struct hnae3_handle *handle);
|
|
void hclge_mac_disconnect_phy(struct hnae3_handle *handle);
|
|
void hclge_mac_start_phy(struct hclge_dev *hdev);
|
|
void hclge_mac_stop_phy(struct hclge_dev *hdev);
|
|
u16 hclge_read_phy_reg(struct hclge_dev *hdev, u16 reg_addr);
|
|
int hclge_write_phy_reg(struct hclge_dev *hdev, u16 reg_addr, u16 val);
|
|
|
|
#endif
|