uniform_reo_cmd_header.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. * Copyright (c) 2020, The Linux Foundation. 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. // ################ START SUMMARY #################
  21. //
  22. // Dword Fields
  23. // 0 reo_cmd_number[15:0], reo_status_required[16], reserved_0a[31:17]
  24. //
  25. // ################ END SUMMARY #################
  26. #define NUM_OF_DWORDS_UNIFORM_REO_CMD_HEADER 1
  27. struct uniform_reo_cmd_header {
  28. uint32_t reo_cmd_number : 16, //[15:0]
  29. reo_status_required : 1, //[16]
  30. reserved_0a : 15; //[31:17]
  31. };
  32. /*
  33. reo_cmd_number
  34. Consumer: REO/SW/DEBUG
  35. Producer: SW
  36. This number can be used by SW to track, identify and
  37. link the created commands with the command statusses
  38. <legal all>
  39. reo_status_required
  40. Consumer: REO
  41. Producer: SW
  42. <enum 0 NoStatus> REO does not need to generate a status
  43. TLV for the execution of this command
  44. <enum 1 StatusRequired> REO shall generate a status TLV
  45. for the execution of this command
  46. <legal all>
  47. reserved_0a
  48. <legal 0>
  49. */
  50. /* Description UNIFORM_REO_CMD_HEADER_0_REO_CMD_NUMBER
  51. Consumer: REO/SW/DEBUG
  52. Producer: SW
  53. This number can be used by SW to track, identify and
  54. link the created commands with the command statusses
  55. <legal all>
  56. */
  57. #define UNIFORM_REO_CMD_HEADER_0_REO_CMD_NUMBER_OFFSET 0x00000000
  58. #define UNIFORM_REO_CMD_HEADER_0_REO_CMD_NUMBER_LSB 0
  59. #define UNIFORM_REO_CMD_HEADER_0_REO_CMD_NUMBER_MASK 0x0000ffff
  60. /* Description UNIFORM_REO_CMD_HEADER_0_REO_STATUS_REQUIRED
  61. Consumer: REO
  62. Producer: SW
  63. <enum 0 NoStatus> REO does not need to generate a status
  64. TLV for the execution of this command
  65. <enum 1 StatusRequired> REO shall generate a status TLV
  66. for the execution of this command
  67. <legal all>
  68. */
  69. #define UNIFORM_REO_CMD_HEADER_0_REO_STATUS_REQUIRED_OFFSET 0x00000000
  70. #define UNIFORM_REO_CMD_HEADER_0_REO_STATUS_REQUIRED_LSB 16
  71. #define UNIFORM_REO_CMD_HEADER_0_REO_STATUS_REQUIRED_MASK 0x00010000
  72. /* Description UNIFORM_REO_CMD_HEADER_0_RESERVED_0A
  73. <legal 0>
  74. */
  75. #define UNIFORM_REO_CMD_HEADER_0_RESERVED_0A_OFFSET 0x00000000
  76. #define UNIFORM_REO_CMD_HEADER_0_RESERVED_0A_LSB 17
  77. #define UNIFORM_REO_CMD_HEADER_0_RESERVED_0A_MASK 0xfffe0000
  78. #endif // _UNIFORM_REO_CMD_HEADER_H_