.. | .. |
---|
25 | 25 | #define MLXSW_PCI_CIR_CTRL_STATUS_SHIFT 24 |
---|
26 | 26 | #define MLXSW_PCI_CIR_TIMEOUT_MSECS 1000 |
---|
27 | 27 | |
---|
28 | | -#define MLXSW_PCI_SW_RESET 0xF0010 |
---|
29 | | -#define MLXSW_PCI_SW_RESET_RST_BIT BIT(0) |
---|
30 | | -#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 20000 |
---|
31 | | -#define MLXSW_PCI_SW_RESET_WAIT_MSECS 100 |
---|
| 28 | +#define MLXSW_PCI_SW_RESET_TIMEOUT_MSECS 900000 |
---|
| 29 | +#define MLXSW_PCI_SW_RESET_WAIT_MSECS 400 |
---|
32 | 30 | #define MLXSW_PCI_FW_READY 0xA1844 |
---|
33 | 31 | #define MLXSW_PCI_FW_READY_MASK 0xFFFF |
---|
34 | 32 | #define MLXSW_PCI_FW_READY_MAGIC 0x5E |
---|
.. | .. |
---|
43 | 41 | #define MLXSW_PCI_DOORBELL(offset, type_offset, num) \ |
---|
44 | 42 | ((offset) + (type_offset) + (num) * 4) |
---|
45 | 43 | |
---|
| 44 | +#define MLXSW_PCI_FREE_RUNNING_CLOCK_H(offset) (offset) |
---|
| 45 | +#define MLXSW_PCI_FREE_RUNNING_CLOCK_L(offset) ((offset) + 4) |
---|
| 46 | + |
---|
46 | 47 | #define MLXSW_PCI_CQS_MAX 96 |
---|
47 | 48 | #define MLXSW_PCI_EQS_COUNT 2 |
---|
48 | 49 | #define MLXSW_PCI_EQ_ASYNC_NUM 0 |
---|
49 | 50 | #define MLXSW_PCI_EQ_COMP_NUM 1 |
---|
| 51 | + |
---|
| 52 | +#define MLXSW_PCI_SDQS_MIN 2 /* EMAD and control traffic */ |
---|
| 53 | +#define MLXSW_PCI_SDQ_EMAD_INDEX 0 |
---|
| 54 | +#define MLXSW_PCI_SDQ_EMAD_TC 0 |
---|
| 55 | +#define MLXSW_PCI_SDQ_CTL_TC 3 |
---|
50 | 56 | |
---|
51 | 57 | #define MLXSW_PCI_AQ_PAGES 8 |
---|
52 | 58 | #define MLXSW_PCI_AQ_SIZE (MLXSW_PCI_PAGE_SIZE * MLXSW_PCI_AQ_PAGES) |
---|
.. | .. |
---|
170 | 176 | /* pci_cqe_trap_id |
---|
171 | 177 | * Trap ID that captured the packet. |
---|
172 | 178 | */ |
---|
173 | | -MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 9); |
---|
| 179 | +MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 10); |
---|
174 | 180 | |
---|
175 | 181 | /* pci_cqe_crc |
---|
176 | 182 | * Length include CRC. Indicates the length field includes |
---|
.. | .. |
---|
202 | 208 | MLXSW_ITEM32(pci, cqe12, dqn, 0x0C, 1, 6); |
---|
203 | 209 | mlxsw_pci_cqe_item_helpers(dqn, 0, 12, 12); |
---|
204 | 210 | |
---|
| 211 | +/* pci_cqe_user_def_val_orig_pkt_len |
---|
| 212 | + * When trap_id is an ACL: User defined value from policy engine action. |
---|
| 213 | + */ |
---|
| 214 | +MLXSW_ITEM32(pci, cqe2, user_def_val_orig_pkt_len, 0x14, 0, 20); |
---|
| 215 | + |
---|
| 216 | +/* pci_cqe_mirror_reason |
---|
| 217 | + * Mirror reason. |
---|
| 218 | + */ |
---|
| 219 | +MLXSW_ITEM32(pci, cqe2, mirror_reason, 0x18, 24, 8); |
---|
| 220 | + |
---|
205 | 221 | /* pci_cqe_owner |
---|
206 | 222 | * Ownership bit. |
---|
207 | 223 | */ |
---|
.. | .. |
---|
222 | 238 | MLXSW_ITEM32(pci, eqe, event_sub_type, 0x0C, 16, 8); |
---|
223 | 239 | |
---|
224 | 240 | /* pci_eqe_cqn |
---|
225 | | - * Completion Queue that triggeret this EQE. |
---|
| 241 | + * Completion Queue that triggered this EQE. |
---|
226 | 242 | */ |
---|
227 | 243 | MLXSW_ITEM32(pci, eqe, cqn, 0x0C, 8, 7); |
---|
228 | 244 | |
---|