vht_sig_b_su80_info.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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_SU80_INFO_H_
  16. #define _VHT_SIG_B_SU80_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_VHT_SIG_B_SU80_INFO 4
  20. struct vht_sig_b_su80_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t length : 21, // [20:0]
  23. vhtb_reserved : 2, // [22:21]
  24. tail : 6, // [28:23]
  25. reserved_0 : 2, // [30:29]
  26. rx_ndp : 1; // [31:31]
  27. uint32_t length_copy_a : 21, // [20:0]
  28. vhtb_reserved_copy_a : 2, // [22:21]
  29. tail_copy_a : 6, // [28:23]
  30. reserved_1 : 2, // [30:29]
  31. rx_ndp_copy_a : 1; // [31:31]
  32. uint32_t length_copy_b : 21, // [20:0]
  33. vhtb_reserved_copy_b : 2, // [22:21]
  34. tail_copy_b : 6, // [28:23]
  35. reserved_2 : 2, // [30:29]
  36. rx_ndp_copy_b : 1; // [31:31]
  37. uint32_t length_copy_c : 21, // [20:0]
  38. vhtb_reserved_copy_c : 2, // [22:21]
  39. tail_copy_c : 6, // [28:23]
  40. reserved_3 : 2, // [30:29]
  41. rx_ndp_copy_c : 1; // [31:31]
  42. #else
  43. uint32_t rx_ndp : 1, // [31:31]
  44. reserved_0 : 2, // [30:29]
  45. tail : 6, // [28:23]
  46. vhtb_reserved : 2, // [22:21]
  47. length : 21; // [20:0]
  48. uint32_t rx_ndp_copy_a : 1, // [31:31]
  49. reserved_1 : 2, // [30:29]
  50. tail_copy_a : 6, // [28:23]
  51. vhtb_reserved_copy_a : 2, // [22:21]
  52. length_copy_a : 21; // [20:0]
  53. uint32_t rx_ndp_copy_b : 1, // [31:31]
  54. reserved_2 : 2, // [30:29]
  55. tail_copy_b : 6, // [28:23]
  56. vhtb_reserved_copy_b : 2, // [22:21]
  57. length_copy_b : 21; // [20:0]
  58. uint32_t rx_ndp_copy_c : 1, // [31:31]
  59. reserved_3 : 2, // [30:29]
  60. tail_copy_c : 6, // [28:23]
  61. vhtb_reserved_copy_c : 2, // [22:21]
  62. length_copy_c : 21; // [20:0]
  63. #endif
  64. };
  65. /* Description LENGTH
  66. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4)
  67. <legal all>
  68. */
  69. #define VHT_SIG_B_SU80_INFO_LENGTH_OFFSET 0x00000000
  70. #define VHT_SIG_B_SU80_INFO_LENGTH_LSB 0
  71. #define VHT_SIG_B_SU80_INFO_LENGTH_MSB 20
  72. #define VHT_SIG_B_SU80_INFO_LENGTH_MASK 0x001fffff
  73. /* Description VHTB_RESERVED
  74. Reserved: Set to all ones for non-NDP frames and ignored
  75. on receive <legal 1,3>
  76. */
  77. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_OFFSET 0x00000000
  78. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_LSB 21
  79. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MSB 22
  80. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MASK 0x00600000
  81. /* Description TAIL
  82. Used to terminate the trellis of the convolutional decoder.
  83. Set to 0. <legal 0>
  84. */
  85. #define VHT_SIG_B_SU80_INFO_TAIL_OFFSET 0x00000000
  86. #define VHT_SIG_B_SU80_INFO_TAIL_LSB 23
  87. #define VHT_SIG_B_SU80_INFO_TAIL_MSB 28
  88. #define VHT_SIG_B_SU80_INFO_TAIL_MASK 0x1f800000
  89. /* Description RESERVED_0
  90. Not part of VHT-SIG-B.
  91. Reserved: Set to 0 and ignored on receive <legal 0>
  92. */
  93. #define VHT_SIG_B_SU80_INFO_RESERVED_0_OFFSET 0x00000000
  94. #define VHT_SIG_B_SU80_INFO_RESERVED_0_LSB 29
  95. #define VHT_SIG_B_SU80_INFO_RESERVED_0_MSB 30
  96. #define VHT_SIG_B_SU80_INFO_RESERVED_0_MASK 0x60000000
  97. /* Description RX_NDP
  98. Not part of VHT-SIG-B.
  99. Used to identify received NDP frame
  100. <legal 0,1>
  101. */
  102. #define VHT_SIG_B_SU80_INFO_RX_NDP_OFFSET 0x00000000
  103. #define VHT_SIG_B_SU80_INFO_RX_NDP_LSB 31
  104. #define VHT_SIG_B_SU80_INFO_RX_NDP_MSB 31
  105. #define VHT_SIG_B_SU80_INFO_RX_NDP_MASK 0x80000000
  106. /* Description LENGTH_COPY_A
  107. Same as "length" <legal all>
  108. */
  109. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_OFFSET 0x00000004
  110. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_LSB 0
  111. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MSB 20
  112. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MASK 0x001fffff
  113. /* Description VHTB_RESERVED_COPY_A
  114. Same as "vhtb_reserved" <legal 1,3>
  115. */
  116. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_OFFSET 0x00000004
  117. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_LSB 21
  118. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MSB 22
  119. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MASK 0x00600000
  120. /* Description TAIL_COPY_A
  121. Same as "tail" <legal 0>
  122. */
  123. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_OFFSET 0x00000004
  124. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_LSB 23
  125. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MSB 28
  126. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MASK 0x1f800000
  127. /* Description RESERVED_1
  128. Reserved: Set to 0 and ignored on receive <legal 0>
  129. */
  130. #define VHT_SIG_B_SU80_INFO_RESERVED_1_OFFSET 0x00000004
  131. #define VHT_SIG_B_SU80_INFO_RESERVED_1_LSB 29
  132. #define VHT_SIG_B_SU80_INFO_RESERVED_1_MSB 30
  133. #define VHT_SIG_B_SU80_INFO_RESERVED_1_MASK 0x60000000
  134. /* Description RX_NDP_COPY_A
  135. Not part of VHT-SIG-B.
  136. Used to identify received NDP frame
  137. <legal 0,1>
  138. */
  139. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_OFFSET 0x00000004
  140. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_LSB 31
  141. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MSB 31
  142. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MASK 0x80000000
  143. /* Description LENGTH_COPY_B
  144. Same as "length" <legal all>
  145. */
  146. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_OFFSET 0x00000008
  147. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_LSB 0
  148. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MSB 20
  149. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MASK 0x001fffff
  150. /* Description VHTB_RESERVED_COPY_B
  151. Same as "vhtb_reserved" <legal 1,3>
  152. */
  153. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_OFFSET 0x00000008
  154. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_LSB 21
  155. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MSB 22
  156. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MASK 0x00600000
  157. /* Description TAIL_COPY_B
  158. Same as "tail" <legal 0>
  159. */
  160. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_OFFSET 0x00000008
  161. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_LSB 23
  162. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MSB 28
  163. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MASK 0x1f800000
  164. /* Description RESERVED_2
  165. Reserved: Set to 0 and ignored on receive <legal 0>
  166. */
  167. #define VHT_SIG_B_SU80_INFO_RESERVED_2_OFFSET 0x00000008
  168. #define VHT_SIG_B_SU80_INFO_RESERVED_2_LSB 29
  169. #define VHT_SIG_B_SU80_INFO_RESERVED_2_MSB 30
  170. #define VHT_SIG_B_SU80_INFO_RESERVED_2_MASK 0x60000000
  171. /* Description RX_NDP_COPY_B
  172. Not part of VHT-SIG-B.
  173. Used to identify received NDP frame
  174. <legal 0,1>
  175. */
  176. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_OFFSET 0x00000008
  177. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_LSB 31
  178. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MSB 31
  179. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MASK 0x80000000
  180. /* Description LENGTH_COPY_C
  181. Same as "length" <legal all>
  182. */
  183. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_OFFSET 0x0000000c
  184. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_LSB 0
  185. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MSB 20
  186. #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MASK 0x001fffff
  187. /* Description VHTB_RESERVED_COPY_C
  188. Same as "vhtb_reserved" <legal 1,3>
  189. */
  190. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_OFFSET 0x0000000c
  191. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_LSB 21
  192. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MSB 22
  193. #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MASK 0x00600000
  194. /* Description TAIL_COPY_C
  195. Same as "tail" <legal 0>
  196. */
  197. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_OFFSET 0x0000000c
  198. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_LSB 23
  199. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MSB 28
  200. #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MASK 0x1f800000
  201. /* Description RESERVED_3
  202. Reserved: Set to 0 and ignored on receive <legal 0>
  203. */
  204. #define VHT_SIG_B_SU80_INFO_RESERVED_3_OFFSET 0x0000000c
  205. #define VHT_SIG_B_SU80_INFO_RESERVED_3_LSB 29
  206. #define VHT_SIG_B_SU80_INFO_RESERVED_3_MSB 30
  207. #define VHT_SIG_B_SU80_INFO_RESERVED_3_MASK 0x60000000
  208. /* Description RX_NDP_COPY_C
  209. Not part of VHT-SIG-B.
  210. Used to identify received NDP frame
  211. <legal 0,1>
  212. */
  213. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_OFFSET 0x0000000c
  214. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_LSB 31
  215. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MSB 31
  216. #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MASK 0x80000000
  217. #endif // VHT_SIG_B_SU80_INFO