xref: /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_regs.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 // Copyright (c) 2023 Hisilicon Limited.
3 
4 #ifndef __HCLGE_REGS_H
5 #define __HCLGE_REGS_H
6 #include <linux/types.h>
7 #include "hclge_comm_cmd.h"
8 
9 struct hnae3_handle;
10 struct hclge_dev;
11 
12 int hclge_query_bd_num_cmd_send(struct hclge_dev *hdev,
13 				struct hclge_desc *desc);
14 int hclge_get_regs_len(struct hnae3_handle *handle);
15 void hclge_get_regs(struct hnae3_handle *handle, u32 *version,
16 		    void *data);
17 #endif
18