vht_sig_b_mu80_info.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. /*
  2. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. 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 _VHT_SIG_B_MU80_INFO_H_
  17. #define _VHT_SIG_B_MU80_INFO_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. #define NUM_OF_DWORDS_VHT_SIG_B_MU80_INFO 4
  21. struct vht_sig_b_mu80_info {
  22. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  23. uint32_t length : 19, // [18:0]
  24. mcs : 4, // [22:19]
  25. tail : 6, // [28:23]
  26. reserved_0 : 3; // [31:29]
  27. uint32_t length_copy_a : 19, // [18:0]
  28. mcs_copy_a : 4, // [22:19]
  29. tail_copy_a : 6, // [28:23]
  30. reserved_1 : 3; // [31:29]
  31. uint32_t length_copy_b : 19, // [18:0]
  32. mcs_copy_b : 4, // [22:19]
  33. tail_copy_b : 6, // [28:23]
  34. mu_user_number : 3; // [31:29]
  35. uint32_t length_copy_c : 19, // [18:0]
  36. mcs_copy_c : 4, // [22:19]
  37. tail_copy_c : 6, // [28:23]
  38. reserved_3 : 3; // [31:29]
  39. #else
  40. uint32_t reserved_0 : 3, // [31:29]
  41. tail : 6, // [28:23]
  42. mcs : 4, // [22:19]
  43. length : 19; // [18:0]
  44. uint32_t reserved_1 : 3, // [31:29]
  45. tail_copy_a : 6, // [28:23]
  46. mcs_copy_a : 4, // [22:19]
  47. length_copy_a : 19; // [18:0]
  48. uint32_t mu_user_number : 3, // [31:29]
  49. tail_copy_b : 6, // [28:23]
  50. mcs_copy_b : 4, // [22:19]
  51. length_copy_b : 19; // [18:0]
  52. uint32_t reserved_3 : 3, // [31:29]
  53. tail_copy_c : 6, // [28:23]
  54. mcs_copy_c : 4, // [22:19]
  55. length_copy_c : 19; // [18:0]
  56. #endif
  57. };
  58. /* Description LENGTH
  59. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4)
  60. <legal all>
  61. */
  62. #define VHT_SIG_B_MU80_INFO_LENGTH_OFFSET 0x00000000
  63. #define VHT_SIG_B_MU80_INFO_LENGTH_LSB 0
  64. #define VHT_SIG_B_MU80_INFO_LENGTH_MSB 18
  65. #define VHT_SIG_B_MU80_INFO_LENGTH_MASK 0x0007ffff
  66. /* Description MCS
  67. Modulation as described in vht_sig_a mcs field <legal 0-11>
  68. */
  69. #define VHT_SIG_B_MU80_INFO_MCS_OFFSET 0x00000000
  70. #define VHT_SIG_B_MU80_INFO_MCS_LSB 19
  71. #define VHT_SIG_B_MU80_INFO_MCS_MSB 22
  72. #define VHT_SIG_B_MU80_INFO_MCS_MASK 0x00780000
  73. /* Description TAIL
  74. Used to terminate the trellis of the convolutional decoder.
  75. Set to 0. <legal 0>
  76. */
  77. #define VHT_SIG_B_MU80_INFO_TAIL_OFFSET 0x00000000
  78. #define VHT_SIG_B_MU80_INFO_TAIL_LSB 23
  79. #define VHT_SIG_B_MU80_INFO_TAIL_MSB 28
  80. #define VHT_SIG_B_MU80_INFO_TAIL_MASK 0x1f800000
  81. /* Description RESERVED_0
  82. Not part of VHT-SIG-B.
  83. Reserved: Set to 0 and ignored on receive <legal 0>
  84. */
  85. #define VHT_SIG_B_MU80_INFO_RESERVED_0_OFFSET 0x00000000
  86. #define VHT_SIG_B_MU80_INFO_RESERVED_0_LSB 29
  87. #define VHT_SIG_B_MU80_INFO_RESERVED_0_MSB 31
  88. #define VHT_SIG_B_MU80_INFO_RESERVED_0_MASK 0xe0000000
  89. /* Description LENGTH_COPY_A
  90. Same as "length". This field is not valid for RX packets
  91. <legal all>
  92. */
  93. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_OFFSET 0x00000004
  94. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_LSB 0
  95. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MSB 18
  96. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MASK 0x0007ffff
  97. /* Description MCS_COPY_A
  98. Same as "mcs". This field is not valid for RX packets <legal
  99. 0-11>
  100. */
  101. #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_OFFSET 0x00000004
  102. #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_LSB 19
  103. #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MSB 22
  104. #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MASK 0x00780000
  105. /* Description TAIL_COPY_A
  106. Same as "tail". This field is not valid for RX packets <legal
  107. 0>
  108. */
  109. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_OFFSET 0x00000004
  110. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_LSB 23
  111. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MSB 28
  112. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MASK 0x1f800000
  113. /* Description RESERVED_1
  114. Not part of VHT-SIG-B.
  115. Reserved: Set to 0 and ignored on receive <legal 0>
  116. */
  117. #define VHT_SIG_B_MU80_INFO_RESERVED_1_OFFSET 0x00000004
  118. #define VHT_SIG_B_MU80_INFO_RESERVED_1_LSB 29
  119. #define VHT_SIG_B_MU80_INFO_RESERVED_1_MSB 31
  120. #define VHT_SIG_B_MU80_INFO_RESERVED_1_MASK 0xe0000000
  121. /* Description LENGTH_COPY_B
  122. Same as "length". This field is not valid for RX packets. <legal
  123. all>
  124. */
  125. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_OFFSET 0x00000008
  126. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_LSB 0
  127. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MSB 18
  128. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MASK 0x0007ffff
  129. /* Description MCS_COPY_B
  130. Same as "mcs". This field is not valid for RX packets.
  131. <legal 0-11>
  132. */
  133. #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_OFFSET 0x00000008
  134. #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_LSB 19
  135. #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MSB 22
  136. #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MASK 0x00780000
  137. /* Description TAIL_COPY_B
  138. Same as "tail". This field is not valid for RX packets.
  139. <legal 0>
  140. */
  141. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_OFFSET 0x00000008
  142. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_LSB 23
  143. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MSB 28
  144. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MASK 0x1f800000
  145. /* Description MU_USER_NUMBER
  146. Not part of VHT-SIG-B.
  147. Mapping from user number (BFer hardware specific) to mu_user_number.
  148. The reader is directed to the previous chapter (User Number)
  149. for a definition of the terms user and mu_user. <legal
  150. 0-3>
  151. */
  152. #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_OFFSET 0x00000008
  153. #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_LSB 29
  154. #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MSB 31
  155. #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MASK 0xe0000000
  156. /* Description LENGTH_COPY_C
  157. Same as "length". This field is not valid for RX packets. <legal
  158. all>
  159. */
  160. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_OFFSET 0x0000000c
  161. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_LSB 0
  162. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MSB 18
  163. #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MASK 0x0007ffff
  164. /* Description MCS_COPY_C
  165. Same as "mcs". This field is not valid for RX packets.
  166. <legal 0-11>
  167. */
  168. #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_OFFSET 0x0000000c
  169. #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_LSB 19
  170. #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MSB 22
  171. #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MASK 0x00780000
  172. /* Description TAIL_COPY_C
  173. Same as "tail". This field is not valid for RX packets.
  174. <legal 0>
  175. */
  176. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_OFFSET 0x0000000c
  177. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_LSB 23
  178. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MSB 28
  179. #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MASK 0x1f800000
  180. /* Description RESERVED_3
  181. <legal 0>
  182. */
  183. #define VHT_SIG_B_MU80_INFO_RESERVED_3_OFFSET 0x0000000c
  184. #define VHT_SIG_B_MU80_INFO_RESERVED_3_LSB 29
  185. #define VHT_SIG_B_MU80_INFO_RESERVED_3_MSB 31
  186. #define VHT_SIG_B_MU80_INFO_RESERVED_3_MASK 0xe0000000
  187. #endif // VHT_SIG_B_MU80_INFO