| 1 |
/* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 |
/* |
| 3 |
* Copyright 2016-2026 Broadcom Inc. All rights reserved. |
| 4 |
*/ |
| 5 |
#ifndef MPI30_TOOL_H |
| 6 |
#define MPI30_TOOL_H 1 |
| 7 |
|
| 8 |
#define MPI3_DIAG_BUFFER_TYPE_TRACE (0x01) |
| 9 |
#define MPI3_DIAG_BUFFER_TYPE_FW (0x02) |
| 10 |
#define MPI3_DIAG_BUFFER_ACTION_RELEASE (0x01) |
| 11 |
#define MPI3_DIAG_BUFFER_ACTION_PAUSE (0x02) |
| 12 |
#define MPI3_DIAG_BUFFER_ACTION_RESUME (0x03) |
| 13 |
#define MPI3_DIAG_BUFFER_ACTION_CLEAR (0x04) |
| 14 |
|
| 15 |
|
| 16 |
#define MPI3_DIAG_BUFFER_POST_MSGFLAGS_SEGMENTED (0x01) |
| 17 |
struct mpi3_diag_buffer_post_request { |
| 18 |
__le16 host_tag; |
| 19 |
u8 ioc_use_only02; |
| 20 |
u8 function; |
| 21 |
__le16 ioc_use_only04; |
| 22 |
u8 ioc_use_only06; |
| 23 |
u8 msg_flags; |
| 24 |
__le16 change_count; |
| 25 |
__le16 reserved0a; |
| 26 |
u8 type; |
| 27 |
u8 reserved0d; |
| 28 |
__le16 reserved0e; |
| 29 |
__le64 address; |
| 30 |
__le32 length; |
| 31 |
__le32 reserved1c; |
| 32 |
}; |
| 33 |
|
| 34 |
struct mpi3_diag_buffer_manage_request { |
| 35 |
__le16 host_tag; |
| 36 |
u8 ioc_use_only02; |
| 37 |
u8 function; |
| 38 |
__le16 ioc_use_only04; |
| 39 |
u8 ioc_use_only06; |
| 40 |
u8 msg_flags; |
| 41 |
__le16 change_count; |
| 42 |
__le16 reserved0a; |
| 43 |
u8 type; |
| 44 |
u8 action; |
| 45 |
__le16 reserved0e; |
| 46 |
}; |
| 47 |
|
| 48 |
|
| 49 |
#endif |