uniform_reo_cmd_header.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  11. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  13. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  14. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _UNIFORM_REO_CMD_HEADER_H_
  17. #define _UNIFORM_REO_CMD_HEADER_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. #define NUM_OF_DWORDS_UNIFORM_REO_CMD_HEADER 1
  21. struct uniform_reo_cmd_header {
  22. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  23. uint32_t reo_cmd_number : 16, // [15:0]
  24. reo_status_required : 1, // [16:16]
  25. reserved_0a : 15; // [31:17]
  26. #else
  27. uint32_t reserved_0a : 15, // [31:17]
  28. reo_status_required : 1, // [16:16]
  29. reo_cmd_number : 16; // [15:0]
  30. #endif
  31. };
  32. /* Description REO_CMD_NUMBER
  33. Consumer: REO/SW/DEBUG
  34. Producer: SW
  35. This number can be used by SW to track, identify and link
  36. the created commands with the command statusses
  37. <legal all>
  38. */
  39. #define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_OFFSET 0x00000000
  40. #define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_LSB 0
  41. #define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_MSB 15
  42. #define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_MASK 0x0000ffff
  43. /* Description REO_STATUS_REQUIRED
  44. Consumer: REO
  45. Producer: SW
  46. <enum 0 NoStatus> REO does not need to generate a status
  47. TLV for the execution of this command
  48. <enum 1 StatusRequired> REO shall generate a status TLV
  49. for the execution of this command
  50. <legal all>
  51. */
  52. #define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_OFFSET 0x00000000
  53. #define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_LSB 16
  54. #define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_MSB 16
  55. #define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_MASK 0x00010000
  56. /* Description RESERVED_0A
  57. <legal 0>
  58. */
  59. #define UNIFORM_REO_CMD_HEADER_RESERVED_0A_OFFSET 0x00000000
  60. #define UNIFORM_REO_CMD_HEADER_RESERVED_0A_LSB 17
  61. #define UNIFORM_REO_CMD_HEADER_RESERVED_0A_MSB 31
  62. #define UNIFORM_REO_CMD_HEADER_RESERVED_0A_MASK 0xfffe0000
  63. #endif // UNIFORM_REO_CMD_HEADER