vht_sig_b_mu80_info.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. #ifndef _VHT_SIG_B_MU80_INFO_H_
  16. #define _VHT_SIG_B_MU80_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_VHT_SIG_B_MU80_INFO 4
  20. struct vht_sig_b_mu80_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t length : 19, // [18:0]
  23. mcs : 4, // [22:19]
  24. tail : 6, // [28:23]
  25. reserved_0 : 3; // [31:29]
  26. uint32_t length_copy_a : 19, // [18:0]
  27. mcs_copy_a : 4, // [22:19]
  28. tail_copy_a : 6, // [28:23]
  29. reserved_1 : 3; // [31:29]
  30. uint32_t length_copy_b : 19, // [18:0]
  31. mcs_copy_b : 4, // [22:19]
  32. tail_copy_b : 6, // [28:23]
  33. mu_user_number : 3; // [31:29]
  34. uint32_t length_copy_c : 19, // [18:0]
  35. mcs_copy_c : 4, // [22:19]
  36. tail_copy_c : 6, // [28:23]
  37. reserved_3 : 3; // [31:29]
  38. #else
  39. uint32_t reserved_0 : 3, // [31:29]
  40. tail : 6, // [28:23]
  41. mcs : 4, // [22:19]
  42. length : 19; // [18:0]
  43. uint32_t reserved_1 : 3, // [31:29]
  44. tail_copy_a : 6, // [28:23]
  45. mcs_copy_a : 4, // [22:19]
  46. length_copy_a : 19; // [18:0]
  47. uint32_t mu_user_number : 3, // [31:29]
  48. tail_copy_b : 6, // [28:23]
  49. mcs_copy_b : 4, // [22:19]
  50. length_copy_b : 19; // [18:0]
  51. uint32_t reserved_3 : 3, // [31:29]
  52. tail_copy_c : 6, // [28:23]
  53. mcs_copy_c : 4, // [22:19]
  54. length_copy_c : 19; // [18:0]
  55. #endif
  56. };
  57. /* Description LENGTH
  58. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4)
  59. <legal all>
  60. */
  61. #define VHT_SIG_B_MU80_INFO_LENGTH_OFFSET 0x00000000
  62. #define VHT_SIG_B_MU80_INFO_LENGTH_LSB 0
  63. #define VHT_SIG_B_MU80_INFO_LENGTH_MSB 18
  64. #define VHT_SIG_B_MU80_INFO_LENGTH_MASK 0x0007ffff
  65. /* Description MCS
  66. Modulation as described in vht_sig_a mcs field <legal 0-11>
  67. */
  68. #define VHT_SIG_B_MU80_INFO_MCS_OFFSET 0x00000000
  69. #define VHT_SIG_B_MU80_INFO_MCS_LSB 19
  70. #define VHT_SIG_B_MU80_INFO_MCS_MSB 22
  71. #define VHT_SIG_B_MU80_INFO_MCS_MASK 0x00780000
  72. /* Description TAIL
  73. Used to terminate the trellis of the convolutional decoder.
  74. Set to 0. <legal 0>
  75. */
  76. #define VHT_SIG_B_MU80_INFO_TAIL_OFFSET 0x00000000
  77. #define VHT_SIG_B_MU80_INFO_TAIL_LSB 23
  78. #define VHT_SIG_B_MU80_INFO_TAIL_MSB 28
  79. #define VHT_SIG_B_MU80_INFO_TAIL_MASK 0x1f800000
  80. /* Description RESERVED_0
  81. Not part of VHT-SIG-B.
  82. Reserved: Set to 0 and ignored on receive <legal 0>
  83. */
  84. #define VHT_SIG_B_MU80_INFO_RESERVED_0_OFFSET 0x00000000
  85. #define VHT_SIG_B_MU80_INFO_RESERVED_0_LSB 29
  86. #define VHT_SIG_B_MU80_INFO_RESERVED_0_MSB 31
  87. #define VHT_SIG_B_MU80_INFO_RESERVED_0_MASK 0xe0000000
  88. /* Description LENGTH_COPY_A
  89. Same as "length". This field is not valid for RX packets
  90. <legal all>
  91. */
  92. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_OFFSET 0x00000004
  93. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_LSB 0
  94. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MSB 18
  95. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MASK 0x0007ffff
  96. /* Description MCS_COPY_A
  97. Same as "mcs". This field is not valid for RX packets <legal
  98. 0-11>
  99. */
  100. #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_OFFSET 0x00000004
  101. #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_LSB 19
  102. #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MSB 22
  103. #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MASK 0x00780000
  104. /* Description TAIL_COPY_A
  105. Same as "tail". This field is not valid for RX packets <legal
  106. 0>
  107. */
  108. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_OFFSET 0x00000004
  109. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_LSB 23
  110. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MSB 28
  111. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MASK 0x1f800000
  112. /* Description RESERVED_1
  113. Not part of VHT-SIG-B.
  114. Reserved: Set to 0 and ignored on receive <legal 0>
  115. */
  116. #define VHT_SIG_B_MU80_INFO_RESERVED_1_OFFSET 0x00000004
  117. #define VHT_SIG_B_MU80_INFO_RESERVED_1_LSB 29
  118. #define VHT_SIG_B_MU80_INFO_RESERVED_1_MSB 31
  119. #define VHT_SIG_B_MU80_INFO_RESERVED_1_MASK 0xe0000000
  120. /* Description LENGTH_COPY_B
  121. Same as "length". This field is not valid for RX packets. <legal
  122. all>
  123. */
  124. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_OFFSET 0x00000008
  125. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_LSB 0
  126. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MSB 18
  127. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MASK 0x0007ffff
  128. /* Description MCS_COPY_B
  129. Same as "mcs". This field is not valid for RX packets.
  130. <legal 0-11>
  131. */
  132. #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_OFFSET 0x00000008
  133. #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_LSB 19
  134. #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MSB 22
  135. #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MASK 0x00780000
  136. /* Description TAIL_COPY_B
  137. Same as "tail". This field is not valid for RX packets.
  138. <legal 0>
  139. */
  140. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_OFFSET 0x00000008
  141. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_LSB 23
  142. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MSB 28
  143. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MASK 0x1f800000
  144. /* Description MU_USER_NUMBER
  145. Not part of VHT-SIG-B.
  146. Mapping from user number (BFer hardware specific) to mu_user_number.
  147. The reader is directed to the previous chapter (User Number)
  148. for a definition of the terms user and mu_user. <legal
  149. 0-3>
  150. */
  151. #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_OFFSET 0x00000008
  152. #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_LSB 29
  153. #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MSB 31
  154. #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MASK 0xe0000000
  155. /* Description LENGTH_COPY_C
  156. Same as "length". This field is not valid for RX packets. <legal
  157. all>
  158. */
  159. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_OFFSET 0x0000000c
  160. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_LSB 0
  161. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MSB 18
  162. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MASK 0x0007ffff
  163. /* Description MCS_COPY_C
  164. Same as "mcs". This field is not valid for RX packets.
  165. <legal 0-11>
  166. */
  167. #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_OFFSET 0x0000000c
  168. #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_LSB 19
  169. #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MSB 22
  170. #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MASK 0x00780000
  171. /* Description TAIL_COPY_C
  172. Same as "tail". This field is not valid for RX packets.
  173. <legal 0>
  174. */
  175. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_OFFSET 0x0000000c
  176. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_LSB 23
  177. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MSB 28
  178. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MASK 0x1f800000
  179. /* Description RESERVED_3
  180. <legal 0>
  181. */
  182. #define VHT_SIG_B_MU80_INFO_RESERVED_3_OFFSET 0x0000000c
  183. #define VHT_SIG_B_MU80_INFO_RESERVED_3_LSB 29
  184. #define VHT_SIG_B_MU80_INFO_RESERVED_3_MSB 31
  185. #define VHT_SIG_B_MU80_INFO_RESERVED_3_MASK 0xe0000000
  186. #endif // VHT_SIG_B_MU80_INFO