1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * QLogic Fibre Channel HBA Driver
4 * Copyright (c) 2003-2014 QLogic Corporation
7 #ifndef __QLA_DMP27_H__
8 #define __QLA_DMP27_H__
10 #define IOBASE_ADDR offsetof(struct device_reg_24xx, iobase_addr)
12 struct __packed qla27xx_fwdt_template
{
16 uint32_t count
; /* borrow field for running/residual count */
19 uint32_t template_version
;
20 __le32 capture_timestamp
;
21 uint32_t template_checksum
;
24 __le32 driver_info
[3];
26 uint32_t saved_state
[16];
28 uint32_t reserved_3
[8];
29 __le32 firmware_version
[5];
32 #define TEMPLATE_TYPE_FWDUMP 99
34 #define ENTRY_TYPE_NOP 0
35 #define ENTRY_TYPE_TMP_END 255
36 #define ENTRY_TYPE_RD_IOB_T1 256
37 #define ENTRY_TYPE_WR_IOB_T1 257
38 #define ENTRY_TYPE_RD_IOB_T2 258
39 #define ENTRY_TYPE_WR_IOB_T2 259
40 #define ENTRY_TYPE_RD_PCI 260
41 #define ENTRY_TYPE_WR_PCI 261
42 #define ENTRY_TYPE_RD_RAM 262
43 #define ENTRY_TYPE_GET_QUEUE 263
44 #define ENTRY_TYPE_GET_FCE 264
45 #define ENTRY_TYPE_PSE_RISC 265
46 #define ENTRY_TYPE_RST_RISC 266
47 #define ENTRY_TYPE_DIS_INTR 267
48 #define ENTRY_TYPE_GET_HBUF 268
49 #define ENTRY_TYPE_SCRATCH 269
50 #define ENTRY_TYPE_RDREMREG 270
51 #define ENTRY_TYPE_WRREMREG 271
52 #define ENTRY_TYPE_RDREMRAM 272
53 #define ENTRY_TYPE_PCICFG 273
54 #define ENTRY_TYPE_GET_SHADOW 274
55 #define ENTRY_TYPE_WRITE_BUF 275
56 #define ENTRY_TYPE_CONDITIONAL 276
57 #define ENTRY_TYPE_RDPEPREG 277
58 #define ENTRY_TYPE_WRPEPREG 278
60 #define CAPTURE_FLAG_PHYS_ONLY BIT_0
61 #define CAPTURE_FLAG_PHYS_VIRT BIT_1
63 #define DRIVER_FLAG_SKIP_ENTRY BIT_7
65 struct __packed qla27xx_fwdt_entry
{
71 uint8_t capture_flags
;
72 uint8_t reserved_2
[2];
101 uint8_t banksel_offset
;
111 uint8_t banksel_offset
;
140 uint32_t fce_trace_size
;
141 uint64_t write_pointer
;
142 uint64_t base_pointer
;
143 uint32_t fce_enable_mb0
;
144 uint32_t fce_enable_mb2
;
145 uint32_t fce_enable_mb3
;
146 uint32_t fce_enable_mb4
;
147 uint32_t fce_enable_mb5
;
148 uint32_t fce_enable_mb6
;
171 uint32_t scratch_size
;
225 #define T262_RAM_AREA_CRITICAL_RAM 1
226 #define T262_RAM_AREA_EXTERNAL_RAM 2
227 #define T262_RAM_AREA_SHARED_RAM 3
228 #define T262_RAM_AREA_DDR_RAM 4
229 #define T262_RAM_AREA_MISC 5
231 #define T263_QUEUE_TYPE_REQ 1
232 #define T263_QUEUE_TYPE_RSP 2
233 #define T263_QUEUE_TYPE_ATIO 3
235 #define T268_BUF_TYPE_EXTD_TRACE 1
236 #define T268_BUF_TYPE_EXCH_BUFOFF 2
237 #define T268_BUF_TYPE_EXTD_LOGIN 3
238 #define T268_BUF_TYPE_REQ_MIRROR 4
239 #define T268_BUF_TYPE_RSP_MIRROR 5
241 #define T274_QUEUE_TYPE_REQ_SHAD 1
242 #define T274_QUEUE_TYPE_RSP_SHAD 2
243 #define T274_QUEUE_TYPE_ATIO_SHAD 3