uniform_reo_cmd_header.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * Copyright (c) 2021 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. // $ATH_LICENSE_HW_HDR_C$
  17. //
  18. // DO NOT EDIT! This file is automatically generated
  19. // These definitions are tied to a particular hardware layout
  20. #ifndef _UNIFORM_REO_CMD_HEADER_H_
  21. #define _UNIFORM_REO_CMD_HEADER_H_
  22. #if !defined(__ASSEMBLER__)
  23. #endif
  24. // ################ START SUMMARY #################
  25. //
  26. // Dword Fields
  27. // 0 reo_cmd_number[15:0], reo_status_required[16], reserved_0a[31:17]
  28. //
  29. // ################ END SUMMARY #################
  30. #define NUM_OF_DWORDS_UNIFORM_REO_CMD_HEADER 1
  31. struct uniform_reo_cmd_header {
  32. uint32_t reo_cmd_number : 16, //[15:0]
  33. reo_status_required : 1, //[16]
  34. reserved_0a : 15; //[31:17]
  35. };
  36. /*
  37. reo_cmd_number
  38. Consumer: REO/SW/DEBUG
  39. Producer: SW
  40. This number can be used by SW to track, identify and
  41. link the created commands with the command statusses
  42. <legal all>
  43. 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. reserved_0a
  52. <legal 0>
  53. */
  54. /* Description UNIFORM_REO_CMD_HEADER_0_REO_CMD_NUMBER
  55. Consumer: REO/SW/DEBUG
  56. Producer: SW
  57. This number can be used by SW to track, identify and
  58. link the created commands with the command statusses
  59. <legal all>
  60. */
  61. #define UNIFORM_REO_CMD_HEADER_0_REO_CMD_NUMBER_OFFSET 0x00000000
  62. #define UNIFORM_REO_CMD_HEADER_0_REO_CMD_NUMBER_LSB 0
  63. #define UNIFORM_REO_CMD_HEADER_0_REO_CMD_NUMBER_MASK 0x0000ffff
  64. /* Description UNIFORM_REO_CMD_HEADER_0_REO_STATUS_REQUIRED
  65. Consumer: REO
  66. Producer: SW
  67. <enum 0 NoStatus> REO does not need to generate a status
  68. TLV for the execution of this command
  69. <enum 1 StatusRequired> REO shall generate a status TLV
  70. for the execution of this command
  71. <legal all>
  72. */
  73. #define UNIFORM_REO_CMD_HEADER_0_REO_STATUS_REQUIRED_OFFSET 0x00000000
  74. #define UNIFORM_REO_CMD_HEADER_0_REO_STATUS_REQUIRED_LSB 16
  75. #define UNIFORM_REO_CMD_HEADER_0_REO_STATUS_REQUIRED_MASK 0x00010000
  76. /* Description UNIFORM_REO_CMD_HEADER_0_RESERVED_0A
  77. <legal 0>
  78. */
  79. #define UNIFORM_REO_CMD_HEADER_0_RESERVED_0A_OFFSET 0x00000000
  80. #define UNIFORM_REO_CMD_HEADER_0_RESERVED_0A_LSB 17
  81. #define UNIFORM_REO_CMD_HEADER_0_RESERVED_0A_MASK 0xfffe0000
  82. #endif // _UNIFORM_REO_CMD_HEADER_H_