.. | .. |
---|
| 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_EQS_H |
---|
.. | .. |
---|
152 | 143 | }; |
---|
153 | 144 | |
---|
154 | 145 | enum hinic_aeq_type { |
---|
| 146 | + HINIC_MBX_FROM_FUNC = 1, |
---|
155 | 147 | HINIC_MSG_FROM_MGMT_CPU = 2, |
---|
156 | | - |
---|
| 148 | + HINIC_MBX_SEND_RSLT = 5, |
---|
157 | 149 | HINIC_MAX_AEQ_EVENTS, |
---|
158 | 150 | }; |
---|
159 | 151 | |
---|
.. | .. |
---|
170 | 162 | |
---|
171 | 163 | struct hinic_aeq_elem { |
---|
172 | 164 | u8 data[HINIC_AEQE_DATA_SIZE]; |
---|
173 | | - u32 desc; |
---|
| 165 | + __be32 desc; |
---|
174 | 166 | }; |
---|
175 | 167 | |
---|
176 | 168 | struct hinic_eq_work { |
---|
.. | .. |
---|
180 | 172 | |
---|
181 | 173 | struct hinic_eq { |
---|
182 | 174 | struct hinic_hwif *hwif; |
---|
183 | | - |
---|
| 175 | + struct hinic_hwdev *hwdev; |
---|
184 | 176 | enum hinic_eq_type type; |
---|
185 | 177 | int q_id; |
---|
186 | 178 | u32 q_len; |
---|
.. | .. |
---|
194 | 186 | int num_elem_in_pg; |
---|
195 | 187 | |
---|
196 | 188 | struct msix_entry msix_entry; |
---|
| 189 | + char irq_name[64]; |
---|
197 | 190 | |
---|
198 | 191 | dma_addr_t *dma_addr; |
---|
199 | 192 | void **virt_addr; |
---|
.. | .. |
---|
228 | 221 | |
---|
229 | 222 | struct hinic_ceqs { |
---|
230 | 223 | struct hinic_hwif *hwif; |
---|
231 | | - |
---|
| 224 | + struct hinic_hwdev *hwdev; |
---|
232 | 225 | struct hinic_eq ceq[HINIC_MAX_CEQS]; |
---|
233 | 226 | int num_ceqs; |
---|
234 | 227 | |
---|
.. | .. |
---|
262 | 255 | |
---|
263 | 256 | void hinic_ceqs_free(struct hinic_ceqs *ceqs); |
---|
264 | 257 | |
---|
| 258 | +void hinic_dump_ceq_info(struct hinic_hwdev *hwdev); |
---|
| 259 | + |
---|
| 260 | +void hinic_dump_aeq_info(struct hinic_hwdev *hwdev); |
---|
| 261 | + |
---|
265 | 262 | #endif |
---|