forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.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_API_CMD_H
....@@ -112,10 +103,14 @@
112103 HINIC_API_CMD_STATUS_HEADER_##member##_MASK)
113104
114105 #define HINIC_API_CMD_STATUS_CONS_IDX_SHIFT 0
106
+#define HINIC_API_CMD_STATUS_FSM_SHIFT 24
115107 #define HINIC_API_CMD_STATUS_CHKSUM_ERR_SHIFT 28
108
+#define HINIC_API_CMD_STATUS_CPLD_ERR_SHIFT 30
116109
117110 #define HINIC_API_CMD_STATUS_CONS_IDX_MASK 0xFFFFFF
111
+#define HINIC_API_CMD_STATUS_FSM_MASK 0xFU
118112 #define HINIC_API_CMD_STATUS_CHKSUM_ERR_MASK 0x3
113
+#define HINIC_API_CMD_STATUS_CPLD_ERR_MASK 0x1U
119114
120115 #define HINIC_API_CMD_STATUS_GET(val, member) \
121116 (((val) >> HINIC_API_CMD_STATUS_##member##_SHIFT) & \