he_sig_b2_ofdma_info.h 5.6 KB

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