forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/net/ethernet/huawei/hinic/hinic_hw_qp_ctxt.h
....@@ -1,16 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Huawei HiNIC PCI Express Linux driver
34 * Copyright(c) 2017 Huawei Technologies Co., Ltd
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms and conditions of the GNU General Public License,
7
- * version 2, as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
- * for more details.
13
- *
145 */
156
167 #ifndef HINIC_HW_QP_CTXT_H
....@@ -201,6 +192,11 @@
201192 u32 wq_block_lo_pfn;
202193 };
203194
195
+struct hinic_clean_queue_ctxt {
196
+ struct hinic_qp_ctxt_header cmdq_hdr;
197
+ u32 ctxt_size;
198
+};
199
+
204200 struct hinic_sq_ctxt_block {
205201 struct hinic_qp_ctxt_header hdr;
206202 struct hinic_sq_ctxt sq_ctxt[HINIC_Q_CTXT_MAX];