xref: /linux/drivers/scsi/mpi3mr/mpi/mpi30_tool.h (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *  Copyright 2016-2024 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 
12 struct mpi3_diag_buffer_post_request {
13 	__le16                     host_tag;
14 	u8                         ioc_use_only02;
15 	u8                         function;
16 	__le16                     ioc_use_only04;
17 	u8                         ioc_use_only06;
18 	u8                         msg_flags;
19 	__le16                     change_count;
20 	__le16                     reserved0a;
21 	u8                         type;
22 	u8                         reserved0d;
23 	__le16                     reserved0e;
24 	__le64                     address;
25 	__le32                     length;
26 	__le32                     reserved1c;
27 };
28 
29 struct mpi3_diag_buffer_manage_request {
30 	__le16                     host_tag;
31 	u8                         ioc_use_only02;
32 	u8                         function;
33 	__le16                     ioc_use_only04;
34 	u8                         ioc_use_only06;
35 	u8                         msg_flags;
36 	__le16                     change_count;
37 	__le16                     reserved0a;
38 	u8                         type;
39 	u8                         action;
40 	__le16                     reserved0e;
41 };
42 
43 
44 #endif
45