uniform_reo_status_header.h 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. #ifndef _UNIFORM_REO_STATUS_HEADER_H_
  16. #define _UNIFORM_REO_STATUS_HEADER_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_UNIFORM_REO_STATUS_HEADER 2
  20. struct uniform_reo_status_header {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t reo_status_number : 16,
  23. cmd_execution_time : 10,
  24. reo_cmd_execution_status : 2,
  25. reserved_0a : 4;
  26. uint32_t timestamp : 32;
  27. #else
  28. uint32_t reserved_0a : 4,
  29. reo_cmd_execution_status : 2,
  30. cmd_execution_time : 10,
  31. reo_status_number : 16;
  32. uint32_t timestamp : 32;
  33. #endif
  34. };
  35. #define UNIFORM_REO_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x00000000
  36. #define UNIFORM_REO_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0
  37. #define UNIFORM_REO_STATUS_HEADER_REO_STATUS_NUMBER_MSB 15
  38. #define UNIFORM_REO_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x0000ffff
  39. #define UNIFORM_REO_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x00000000
  40. #define UNIFORM_REO_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16
  41. #define UNIFORM_REO_STATUS_HEADER_CMD_EXECUTION_TIME_MSB 25
  42. #define UNIFORM_REO_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x03ff0000
  43. #define UNIFORM_REO_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x00000000
  44. #define UNIFORM_REO_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26
  45. #define UNIFORM_REO_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MSB 27
  46. #define UNIFORM_REO_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x0c000000
  47. #define UNIFORM_REO_STATUS_HEADER_RESERVED_0A_OFFSET 0x00000000
  48. #define UNIFORM_REO_STATUS_HEADER_RESERVED_0A_LSB 28
  49. #define UNIFORM_REO_STATUS_HEADER_RESERVED_0A_MSB 31
  50. #define UNIFORM_REO_STATUS_HEADER_RESERVED_0A_MASK 0xf0000000
  51. #define UNIFORM_REO_STATUS_HEADER_TIMESTAMP_OFFSET 0x00000004
  52. #define UNIFORM_REO_STATUS_HEADER_TIMESTAMP_LSB 0
  53. #define UNIFORM_REO_STATUS_HEADER_TIMESTAMP_MSB 31
  54. #define UNIFORM_REO_STATUS_HEADER_TIMESTAMP_MASK 0xffffffff
  55. #endif