uniform_reo_cmd_header.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* Copyright (c) 2022, 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_CMD_HEADER_H_
  16. #define _UNIFORM_REO_CMD_HEADER_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_UNIFORM_REO_CMD_HEADER 1
  20. struct uniform_reo_cmd_header {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t reo_cmd_number : 16, // [15:0]
  23. reo_status_required : 1, // [16:16]
  24. reserved_0a : 15; // [31:17]
  25. #else
  26. uint32_t reserved_0a : 15, // [31:17]
  27. reo_status_required : 1, // [16:16]
  28. reo_cmd_number : 16; // [15:0]
  29. #endif
  30. };
  31. /* Description REO_CMD_NUMBER
  32. Consumer: REO/SW/DEBUG
  33. Producer: SW
  34. This number can be used by SW to track, identify and link
  35. the created commands with the command statusses
  36. <legal all>
  37. */
  38. #define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_OFFSET 0x00000000
  39. #define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_LSB 0
  40. #define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_MSB 15
  41. #define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_MASK 0x0000ffff
  42. /* Description REO_STATUS_REQUIRED
  43. Consumer: REO
  44. Producer: SW
  45. <enum 0 NoStatus> REO does not need to generate a status
  46. TLV for the execution of this command
  47. <enum 1 StatusRequired> REO shall generate a status TLV
  48. for the execution of this command
  49. <legal all>
  50. */
  51. #define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_OFFSET 0x00000000
  52. #define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_LSB 16
  53. #define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_MSB 16
  54. #define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_MASK 0x00010000
  55. /* Description RESERVED_0A
  56. <legal 0>
  57. */
  58. #define UNIFORM_REO_CMD_HEADER_RESERVED_0A_OFFSET 0x00000000
  59. #define UNIFORM_REO_CMD_HEADER_RESERVED_0A_LSB 17
  60. #define UNIFORM_REO_CMD_HEADER_RESERVED_0A_MSB 31
  61. #define UNIFORM_REO_CMD_HEADER_RESERVED_0A_MASK 0xfffe0000
  62. #endif // UNIFORM_REO_CMD_HEADER