mpi30_tool.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #define MPI3_DIAG_BUFFER_TYPE_TRACE (0x01)
  8. #define MPI3_DIAG_BUFFER_TYPE_FW (0x02)
  9. #define MPI3_DIAG_BUFFER_ACTION_RELEASE (0x01)
  10. struct mpi3_diag_buffer_post_request {
  11. __le16 host_tag;
  12. u8 ioc_use_only02;
  13. u8 function;
  14. __le16 ioc_use_only04;
  15. u8 ioc_use_only06;
  16. u8 msg_flags;
  17. __le16 change_count;
  18. __le16 reserved0a;
  19. u8 type;
  20. u8 reserved0d;
  21. __le16 reserved0e;
  22. __le64 address;
  23. __le32 length;
  24. __le32 reserved1c;
  25. };
  26. struct mpi3_diag_buffer_manage_request {
  27. __le16 host_tag;
  28. u8 ioc_use_only02;
  29. u8 function;
  30. __le16 ioc_use_only04;
  31. u8 ioc_use_only06;
  32. u8 msg_flags;
  33. __le16 change_count;
  34. __le16 reserved0a;
  35. u8 type;
  36. u8 action;
  37. __le16 reserved0e;
  38. };
  39. #endif