vht_sig_b_su80_info.h 14 KB

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