.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Huawei HiNIC PCI Express Linux driver |
---|
3 | 4 | * 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 | | - * |
---|
14 | 5 | */ |
---|
15 | 6 | |
---|
16 | 7 | #ifndef HINIC_HW_API_CMD_H |
---|
.. | .. |
---|
112 | 103 | HINIC_API_CMD_STATUS_HEADER_##member##_MASK) |
---|
113 | 104 | |
---|
114 | 105 | #define HINIC_API_CMD_STATUS_CONS_IDX_SHIFT 0 |
---|
| 106 | +#define HINIC_API_CMD_STATUS_FSM_SHIFT 24 |
---|
115 | 107 | #define HINIC_API_CMD_STATUS_CHKSUM_ERR_SHIFT 28 |
---|
| 108 | +#define HINIC_API_CMD_STATUS_CPLD_ERR_SHIFT 30 |
---|
116 | 109 | |
---|
117 | 110 | #define HINIC_API_CMD_STATUS_CONS_IDX_MASK 0xFFFFFF |
---|
| 111 | +#define HINIC_API_CMD_STATUS_FSM_MASK 0xFU |
---|
118 | 112 | #define HINIC_API_CMD_STATUS_CHKSUM_ERR_MASK 0x3 |
---|
| 113 | +#define HINIC_API_CMD_STATUS_CPLD_ERR_MASK 0x1U |
---|
119 | 114 | |
---|
120 | 115 | #define HINIC_API_CMD_STATUS_GET(val, member) \ |
---|
121 | 116 | (((val) >> HINIC_API_CMD_STATUS_##member##_SHIFT) & \ |
---|