he_sig_b2_mu_info.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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 _HE_SIG_B2_MU_INFO_H_
  21. #define _HE_SIG_B2_MU_INFO_H_
  22. #if !defined(__ASSEMBLER__)
  23. #endif
  24. // ################ START SUMMARY #################
  25. //
  26. // Dword Fields
  27. // 0 sta_id[10:0], sta_spatial_config[14:11], sta_mcs[18:15], reserved_set_to_1[19], sta_coding[20], reserved_0a[28:21], nsts[31:29]
  28. //
  29. // ################ END SUMMARY #################
  30. #define NUM_OF_DWORDS_HE_SIG_B2_MU_INFO 1
  31. struct he_sig_b2_mu_info {
  32. uint32_t sta_id : 11, //[10:0]
  33. sta_spatial_config : 4, //[14:11]
  34. sta_mcs : 4, //[18:15]
  35. reserved_set_to_1 : 1, //[19]
  36. sta_coding : 1, //[20]
  37. reserved_0a : 8, //[28:21]
  38. nsts : 3; //[31:29]
  39. };
  40. /*
  41. sta_id
  42. Identifies the STA that is addressed. Details of STA ID
  43. are TBD
  44. sta_spatial_config
  45. Number of assigned spatial streams and their
  46. corresponding index.
  47. Total number of spatial streams assigned for the MU-MIMO
  48. allocation is also signaled.
  49. sta_mcs
  50. Indicates the data MCS
  51. reserved_set_to_1
  52. <legal 1>
  53. sta_coding
  54. Distinguishes between BCC/LDPC
  55. 0: BCC
  56. 1: LDPC
  57. <legal all>
  58. reserved_0a
  59. <legal 0>
  60. nsts
  61. MAC RX side usage only:
  62. Needed by RXPCU. Provided by PHY so that RXPCU does not
  63. need to have the RU number decoding logic.
  64. Number of spatial streams for this user
  65. <enum 0 1_spatial_stream>Single spatial stream
  66. <enum 1 2_spatial_streams>2 spatial streams
  67. <enum 2 3_spatial_streams>3 spatial streams
  68. <enum 3 4_spatial_streams>4 spatial streams
  69. <enum 4 5_spatial_streams>5 spatial streams
  70. <enum 5 6_spatial_streams>6 spatial streams
  71. <enum 6 7_spatial_streams>7 spatial streams
  72. <enum 7 8_spatial_streams>8 spatial streams
  73. */
  74. /* Description HE_SIG_B2_MU_INFO_0_STA_ID
  75. Identifies the STA that is addressed. Details of STA ID
  76. are TBD
  77. */
  78. #define HE_SIG_B2_MU_INFO_0_STA_ID_OFFSET 0x00000000
  79. #define HE_SIG_B2_MU_INFO_0_STA_ID_LSB 0
  80. #define HE_SIG_B2_MU_INFO_0_STA_ID_MASK 0x000007ff
  81. /* Description HE_SIG_B2_MU_INFO_0_STA_SPATIAL_CONFIG
  82. Number of assigned spatial streams and their
  83. corresponding index.
  84. Total number of spatial streams assigned for the MU-MIMO
  85. allocation is also signaled.
  86. */
  87. #define HE_SIG_B2_MU_INFO_0_STA_SPATIAL_CONFIG_OFFSET 0x00000000
  88. #define HE_SIG_B2_MU_INFO_0_STA_SPATIAL_CONFIG_LSB 11
  89. #define HE_SIG_B2_MU_INFO_0_STA_SPATIAL_CONFIG_MASK 0x00007800
  90. /* Description HE_SIG_B2_MU_INFO_0_STA_MCS
  91. Indicates the data MCS
  92. */
  93. #define HE_SIG_B2_MU_INFO_0_STA_MCS_OFFSET 0x00000000
  94. #define HE_SIG_B2_MU_INFO_0_STA_MCS_LSB 15
  95. #define HE_SIG_B2_MU_INFO_0_STA_MCS_MASK 0x00078000
  96. /* Description HE_SIG_B2_MU_INFO_0_RESERVED_SET_TO_1
  97. <legal 1>
  98. */
  99. #define HE_SIG_B2_MU_INFO_0_RESERVED_SET_TO_1_OFFSET 0x00000000
  100. #define HE_SIG_B2_MU_INFO_0_RESERVED_SET_TO_1_LSB 19
  101. #define HE_SIG_B2_MU_INFO_0_RESERVED_SET_TO_1_MASK 0x00080000
  102. /* Description HE_SIG_B2_MU_INFO_0_STA_CODING
  103. Distinguishes between BCC/LDPC
  104. 0: BCC
  105. 1: LDPC
  106. <legal all>
  107. */
  108. #define HE_SIG_B2_MU_INFO_0_STA_CODING_OFFSET 0x00000000
  109. #define HE_SIG_B2_MU_INFO_0_STA_CODING_LSB 20
  110. #define HE_SIG_B2_MU_INFO_0_STA_CODING_MASK 0x00100000
  111. /* Description HE_SIG_B2_MU_INFO_0_RESERVED_0A
  112. <legal 0>
  113. */
  114. #define HE_SIG_B2_MU_INFO_0_RESERVED_0A_OFFSET 0x00000000
  115. #define HE_SIG_B2_MU_INFO_0_RESERVED_0A_LSB 21
  116. #define HE_SIG_B2_MU_INFO_0_RESERVED_0A_MASK 0x1fe00000
  117. /* Description HE_SIG_B2_MU_INFO_0_NSTS
  118. MAC RX side usage only:
  119. Needed by RXPCU. Provided by PHY so that RXPCU does not
  120. need to have the RU number decoding logic.
  121. Number of spatial streams for this user
  122. <enum 0 1_spatial_stream>Single spatial stream
  123. <enum 1 2_spatial_streams>2 spatial streams
  124. <enum 2 3_spatial_streams>3 spatial streams
  125. <enum 3 4_spatial_streams>4 spatial streams
  126. <enum 4 5_spatial_streams>5 spatial streams
  127. <enum 5 6_spatial_streams>6 spatial streams
  128. <enum 6 7_spatial_streams>7 spatial streams
  129. <enum 7 8_spatial_streams>8 spatial streams
  130. */
  131. #define HE_SIG_B2_MU_INFO_0_NSTS_OFFSET 0x00000000
  132. #define HE_SIG_B2_MU_INFO_0_NSTS_LSB 29
  133. #define HE_SIG_B2_MU_INFO_0_NSTS_MASK 0xe0000000
  134. #endif // _HE_SIG_B2_MU_INFO_H_