uniform_reo_status_header.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
  3. * SPDX-License-Identifier: ISC
  4. */
  5. #ifndef _UNIFORM_REO_STATUS_HEADER_H_
  6. #define _UNIFORM_REO_STATUS_HEADER_H_
  7. #if !defined(__ASSEMBLER__)
  8. #endif
  9. #define NUM_OF_DWORDS_UNIFORM_REO_STATUS_HEADER 2
  10. struct uniform_reo_status_header {
  11. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  12. uint32_t reo_status_number : 16,
  13. cmd_execution_time : 10,
  14. reo_cmd_execution_status : 2,
  15. reserved_0a : 4;
  16. uint32_t timestamp : 32;
  17. #else
  18. uint32_t reserved_0a : 4,
  19. reo_cmd_execution_status : 2,
  20. cmd_execution_time : 10,
  21. reo_status_number : 16;
  22. uint32_t timestamp : 32;
  23. #endif
  24. };
  25. #define UNIFORM_REO_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x00000000
  26. #define UNIFORM_REO_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0
  27. #define UNIFORM_REO_STATUS_HEADER_REO_STATUS_NUMBER_MSB 15
  28. #define UNIFORM_REO_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x0000ffff
  29. #define UNIFORM_REO_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x00000000
  30. #define UNIFORM_REO_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16
  31. #define UNIFORM_REO_STATUS_HEADER_CMD_EXECUTION_TIME_MSB 25
  32. #define UNIFORM_REO_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x03ff0000
  33. #define UNIFORM_REO_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x00000000
  34. #define UNIFORM_REO_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26
  35. #define UNIFORM_REO_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MSB 27
  36. #define UNIFORM_REO_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x0c000000
  37. #define UNIFORM_REO_STATUS_HEADER_RESERVED_0A_OFFSET 0x00000000
  38. #define UNIFORM_REO_STATUS_HEADER_RESERVED_0A_LSB 28
  39. #define UNIFORM_REO_STATUS_HEADER_RESERVED_0A_MSB 31
  40. #define UNIFORM_REO_STATUS_HEADER_RESERVED_0A_MASK 0xf0000000
  41. #define UNIFORM_REO_STATUS_HEADER_TIMESTAMP_OFFSET 0x00000004
  42. #define UNIFORM_REO_STATUS_HEADER_TIMESTAMP_LSB 0
  43. #define UNIFORM_REO_STATUS_HEADER_TIMESTAMP_MSB 31
  44. #define UNIFORM_REO_STATUS_HEADER_TIMESTAMP_MASK 0xffffffff
  45. #endif