he_sig_b2_mu_info.h 5.7 KB

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