he_sig_b2_ofdma_info.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. /*
  2. * Copyright (c) 2019, 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_OFDMA_INFO_H_
  17. #define _HE_SIG_B2_OFDMA_INFO_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. // ################ START SUMMARY #################
  21. //
  22. // Dword Fields
  23. // 0 sta_id[10:0], nsts[13:11], txbf[14], sta_mcs[18:15], sta_dcm[19], sta_coding[20], reserved_0[31:21]
  24. //
  25. // ################ END SUMMARY #################
  26. #define NUM_OF_DWORDS_HE_SIG_B2_OFDMA_INFO 1
  27. struct he_sig_b2_ofdma_info {
  28. uint32_t sta_id : 11, //[10:0]
  29. nsts : 3, //[13:11]
  30. txbf : 1, //[14]
  31. sta_mcs : 4, //[18:15]
  32. sta_dcm : 1, //[19]
  33. sta_coding : 1, //[20]
  34. reserved_0 : 11; //[31:21]
  35. };
  36. /*
  37. sta_id
  38. Identifies the STA that is addressed. Details of STA ID
  39. are TBD
  40. nsts
  41. MAC RX side usage only:
  42. Number of spatial streams for this user
  43. <enum 0 1_spatial_stream>Single spatial stream
  44. <enum 1 2_spatial_streams>2 spatial streams
  45. <enum 2 3_spatial_streams>3 spatial streams
  46. <enum 3 4_spatial_streams>4 spatial streams
  47. <enum 4 5_spatial_streams>5 spatial streams
  48. <enum 5 6_spatial_streams>6 spatial streams
  49. <enum 6 7_spatial_streams>7 spatial streams
  50. <enum 7 8_spatial_streams>8 spatial streams
  51. txbf
  52. Indicates whether beamforming is applied
  53. 0: No beamforming
  54. 1: beamforming
  55. <legal all>
  56. sta_mcs
  57. Indicates the data MCS
  58. sta_dcm
  59. 0: No DCM
  60. 1:DCM
  61. <legal all>
  62. sta_coding
  63. Distinguishes between BCC/LDPC
  64. 0: BCC
  65. 1: LDPC
  66. <legal all>
  67. reserved_0
  68. <legal 0>
  69. */
  70. /* Description HE_SIG_B2_OFDMA_INFO_0_STA_ID
  71. Identifies the STA that is addressed. Details of STA ID
  72. are TBD
  73. */
  74. #define HE_SIG_B2_OFDMA_INFO_0_STA_ID_OFFSET 0x00000000
  75. #define HE_SIG_B2_OFDMA_INFO_0_STA_ID_LSB 0
  76. #define HE_SIG_B2_OFDMA_INFO_0_STA_ID_MASK 0x000007ff
  77. /* Description HE_SIG_B2_OFDMA_INFO_0_NSTS
  78. MAC RX side usage only:
  79. Number of spatial streams for this user
  80. <enum 0 1_spatial_stream>Single spatial stream
  81. <enum 1 2_spatial_streams>2 spatial streams
  82. <enum 2 3_spatial_streams>3 spatial streams
  83. <enum 3 4_spatial_streams>4 spatial streams
  84. <enum 4 5_spatial_streams>5 spatial streams
  85. <enum 5 6_spatial_streams>6 spatial streams
  86. <enum 6 7_spatial_streams>7 spatial streams
  87. <enum 7 8_spatial_streams>8 spatial streams
  88. */
  89. #define HE_SIG_B2_OFDMA_INFO_0_NSTS_OFFSET 0x00000000
  90. #define HE_SIG_B2_OFDMA_INFO_0_NSTS_LSB 11
  91. #define HE_SIG_B2_OFDMA_INFO_0_NSTS_MASK 0x00003800
  92. /* Description HE_SIG_B2_OFDMA_INFO_0_TXBF
  93. Indicates whether beamforming is applied
  94. 0: No beamforming
  95. 1: beamforming
  96. <legal all>
  97. */
  98. #define HE_SIG_B2_OFDMA_INFO_0_TXBF_OFFSET 0x00000000
  99. #define HE_SIG_B2_OFDMA_INFO_0_TXBF_LSB 14
  100. #define HE_SIG_B2_OFDMA_INFO_0_TXBF_MASK 0x00004000
  101. /* Description HE_SIG_B2_OFDMA_INFO_0_STA_MCS
  102. Indicates the data MCS
  103. */
  104. #define HE_SIG_B2_OFDMA_INFO_0_STA_MCS_OFFSET 0x00000000
  105. #define HE_SIG_B2_OFDMA_INFO_0_STA_MCS_LSB 15
  106. #define HE_SIG_B2_OFDMA_INFO_0_STA_MCS_MASK 0x00078000
  107. /* Description HE_SIG_B2_OFDMA_INFO_0_STA_DCM
  108. 0: No DCM
  109. 1:DCM
  110. <legal all>
  111. */
  112. #define HE_SIG_B2_OFDMA_INFO_0_STA_DCM_OFFSET 0x00000000
  113. #define HE_SIG_B2_OFDMA_INFO_0_STA_DCM_LSB 19
  114. #define HE_SIG_B2_OFDMA_INFO_0_STA_DCM_MASK 0x00080000
  115. /* Description HE_SIG_B2_OFDMA_INFO_0_STA_CODING
  116. Distinguishes between BCC/LDPC
  117. 0: BCC
  118. 1: LDPC
  119. <legal all>
  120. */
  121. #define HE_SIG_B2_OFDMA_INFO_0_STA_CODING_OFFSET 0x00000000
  122. #define HE_SIG_B2_OFDMA_INFO_0_STA_CODING_LSB 20
  123. #define HE_SIG_B2_OFDMA_INFO_0_STA_CODING_MASK 0x00100000
  124. /* Description HE_SIG_B2_OFDMA_INFO_0_RESERVED_0
  125. <legal 0>
  126. */
  127. #define HE_SIG_B2_OFDMA_INFO_0_RESERVED_0_OFFSET 0x00000000
  128. #define HE_SIG_B2_OFDMA_INFO_0_RESERVED_0_LSB 21
  129. #define HE_SIG_B2_OFDMA_INFO_0_RESERVED_0_MASK 0xffe00000
  130. #endif // _HE_SIG_B2_OFDMA_INFO_H_