vht_sig_b_mu160_info.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  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_MU160_INFO_H_
  16. #define _VHT_SIG_B_MU160_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_VHT_SIG_B_MU160_INFO 8
  20. struct vht_sig_b_mu160_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. reserved_2 : 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. uint32_t length_copy_d : 19, // [18:0]
  39. mcs_copy_d : 4, // [22:19]
  40. tail_copy_d : 6, // [28:23]
  41. reserved_4 : 3; // [31:29]
  42. uint32_t length_copy_e : 19, // [18:0]
  43. mcs_copy_e : 4, // [22:19]
  44. tail_copy_e : 6, // [28:23]
  45. reserved_5 : 3; // [31:29]
  46. uint32_t length_copy_f : 19, // [18:0]
  47. mcs_copy_f : 4, // [22:19]
  48. tail_copy_f : 6, // [28:23]
  49. mu_user_number : 3; // [31:29]
  50. uint32_t length_copy_g : 19, // [18:0]
  51. mcs_copy_g : 4, // [22:19]
  52. tail_copy_g : 6, // [28:23]
  53. reserved_7 : 3; // [31:29]
  54. #else
  55. uint32_t reserved_0 : 3, // [31:29]
  56. tail : 6, // [28:23]
  57. mcs : 4, // [22:19]
  58. length : 19; // [18:0]
  59. uint32_t reserved_1 : 3, // [31:29]
  60. tail_copy_a : 6, // [28:23]
  61. mcs_copy_a : 4, // [22:19]
  62. length_copy_a : 19; // [18:0]
  63. uint32_t reserved_2 : 3, // [31:29]
  64. tail_copy_b : 6, // [28:23]
  65. mcs_copy_b : 4, // [22:19]
  66. length_copy_b : 19; // [18:0]
  67. uint32_t reserved_3 : 3, // [31:29]
  68. tail_copy_c : 6, // [28:23]
  69. mcs_copy_c : 4, // [22:19]
  70. length_copy_c : 19; // [18:0]
  71. uint32_t reserved_4 : 3, // [31:29]
  72. tail_copy_d : 6, // [28:23]
  73. mcs_copy_d : 4, // [22:19]
  74. length_copy_d : 19; // [18:0]
  75. uint32_t reserved_5 : 3, // [31:29]
  76. tail_copy_e : 6, // [28:23]
  77. mcs_copy_e : 4, // [22:19]
  78. length_copy_e : 19; // [18:0]
  79. uint32_t mu_user_number : 3, // [31:29]
  80. tail_copy_f : 6, // [28:23]
  81. mcs_copy_f : 4, // [22:19]
  82. length_copy_f : 19; // [18:0]
  83. uint32_t reserved_7 : 3, // [31:29]
  84. tail_copy_g : 6, // [28:23]
  85. mcs_copy_g : 4, // [22:19]
  86. length_copy_g : 19; // [18:0]
  87. #endif
  88. };
  89. /* Description LENGTH
  90. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4)
  91. <legal all>
  92. */
  93. #define VHT_SIG_B_MU160_INFO_LENGTH_OFFSET 0x00000000
  94. #define VHT_SIG_B_MU160_INFO_LENGTH_LSB 0
  95. #define VHT_SIG_B_MU160_INFO_LENGTH_MSB 18
  96. #define VHT_SIG_B_MU160_INFO_LENGTH_MASK 0x0007ffff
  97. /* Description MCS
  98. Modulation as described in vht_sig_a mcs field <legal 0-11>
  99. */
  100. #define VHT_SIG_B_MU160_INFO_MCS_OFFSET 0x00000000
  101. #define VHT_SIG_B_MU160_INFO_MCS_LSB 19
  102. #define VHT_SIG_B_MU160_INFO_MCS_MSB 22
  103. #define VHT_SIG_B_MU160_INFO_MCS_MASK 0x00780000
  104. /* Description TAIL
  105. Used to terminate the trellis of the convolutional decoder.
  106. Set to 0. <legal 0>
  107. */
  108. #define VHT_SIG_B_MU160_INFO_TAIL_OFFSET 0x00000000
  109. #define VHT_SIG_B_MU160_INFO_TAIL_LSB 23
  110. #define VHT_SIG_B_MU160_INFO_TAIL_MSB 28
  111. #define VHT_SIG_B_MU160_INFO_TAIL_MASK 0x1f800000
  112. /* Description RESERVED_0
  113. Not part of VHT-SIG-B.
  114. Reserved: Set to 0 and ignored on receive <legal 0>
  115. */
  116. #define VHT_SIG_B_MU160_INFO_RESERVED_0_OFFSET 0x00000000
  117. #define VHT_SIG_B_MU160_INFO_RESERVED_0_LSB 29
  118. #define VHT_SIG_B_MU160_INFO_RESERVED_0_MSB 31
  119. #define VHT_SIG_B_MU160_INFO_RESERVED_0_MASK 0xe0000000
  120. /* Description LENGTH_COPY_A
  121. Same as "length". This field is not valid for RX packets
  122. <legal all>
  123. */
  124. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_A_OFFSET 0x00000004
  125. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_A_LSB 0
  126. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_A_MSB 18
  127. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_A_MASK 0x0007ffff
  128. /* Description MCS_COPY_A
  129. Same as "mcs". This field is not valid for RX packets <legal
  130. 0-11>
  131. */
  132. #define VHT_SIG_B_MU160_INFO_MCS_COPY_A_OFFSET 0x00000004
  133. #define VHT_SIG_B_MU160_INFO_MCS_COPY_A_LSB 19
  134. #define VHT_SIG_B_MU160_INFO_MCS_COPY_A_MSB 22
  135. #define VHT_SIG_B_MU160_INFO_MCS_COPY_A_MASK 0x00780000
  136. /* Description TAIL_COPY_A
  137. Same as "tail". This field is not valid for RX packets <legal
  138. 0>
  139. */
  140. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_A_OFFSET 0x00000004
  141. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_A_LSB 23
  142. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_A_MSB 28
  143. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_A_MASK 0x1f800000
  144. /* Description RESERVED_1
  145. Not part of VHT-SIG-B.
  146. Reserved: Set to 0 and ignored on receive <legal 0>
  147. */
  148. #define VHT_SIG_B_MU160_INFO_RESERVED_1_OFFSET 0x00000004
  149. #define VHT_SIG_B_MU160_INFO_RESERVED_1_LSB 29
  150. #define VHT_SIG_B_MU160_INFO_RESERVED_1_MSB 31
  151. #define VHT_SIG_B_MU160_INFO_RESERVED_1_MASK 0xe0000000
  152. /* Description LENGTH_COPY_B
  153. Same as "length". This field is not valid for RX packets. <legal
  154. all>
  155. */
  156. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_B_OFFSET 0x00000008
  157. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_B_LSB 0
  158. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_B_MSB 18
  159. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_B_MASK 0x0007ffff
  160. /* Description MCS_COPY_B
  161. Same as "mcs". This field is not valid for RX packets.
  162. <legal 0-11>
  163. */
  164. #define VHT_SIG_B_MU160_INFO_MCS_COPY_B_OFFSET 0x00000008
  165. #define VHT_SIG_B_MU160_INFO_MCS_COPY_B_LSB 19
  166. #define VHT_SIG_B_MU160_INFO_MCS_COPY_B_MSB 22
  167. #define VHT_SIG_B_MU160_INFO_MCS_COPY_B_MASK 0x00780000
  168. /* Description TAIL_COPY_B
  169. Same as "tail". This field is not valid for RX packets.
  170. <legal 0>
  171. */
  172. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_B_OFFSET 0x00000008
  173. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_B_LSB 23
  174. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_B_MSB 28
  175. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_B_MASK 0x1f800000
  176. /* Description RESERVED_2
  177. Not part of VHT-SIG-B.
  178. Reserved: Set to 0 and ignored on receive <legal 0>
  179. */
  180. #define VHT_SIG_B_MU160_INFO_RESERVED_2_OFFSET 0x00000008
  181. #define VHT_SIG_B_MU160_INFO_RESERVED_2_LSB 29
  182. #define VHT_SIG_B_MU160_INFO_RESERVED_2_MSB 31
  183. #define VHT_SIG_B_MU160_INFO_RESERVED_2_MASK 0xe0000000
  184. /* Description LENGTH_COPY_C
  185. Same as "length". This field is not valid for RX packets. <legal
  186. all>
  187. */
  188. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_C_OFFSET 0x0000000c
  189. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_C_LSB 0
  190. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_C_MSB 18
  191. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_C_MASK 0x0007ffff
  192. /* Description MCS_COPY_C
  193. Same as "mcs". This field is not valid for RX packets.
  194. <legal 0-11>
  195. */
  196. #define VHT_SIG_B_MU160_INFO_MCS_COPY_C_OFFSET 0x0000000c
  197. #define VHT_SIG_B_MU160_INFO_MCS_COPY_C_LSB 19
  198. #define VHT_SIG_B_MU160_INFO_MCS_COPY_C_MSB 22
  199. #define VHT_SIG_B_MU160_INFO_MCS_COPY_C_MASK 0x00780000
  200. /* Description TAIL_COPY_C
  201. Same as "tail". This field is not valid for RX packets.
  202. <legal 0>
  203. */
  204. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_C_OFFSET 0x0000000c
  205. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_C_LSB 23
  206. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_C_MSB 28
  207. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_C_MASK 0x1f800000
  208. /* Description RESERVED_3
  209. Not part of VHT-SIG-B.
  210. Reserved: Set to 0 and ignored on receive <legal 0>
  211. */
  212. #define VHT_SIG_B_MU160_INFO_RESERVED_3_OFFSET 0x0000000c
  213. #define VHT_SIG_B_MU160_INFO_RESERVED_3_LSB 29
  214. #define VHT_SIG_B_MU160_INFO_RESERVED_3_MSB 31
  215. #define VHT_SIG_B_MU160_INFO_RESERVED_3_MASK 0xe0000000
  216. /* Description LENGTH_COPY_D
  217. Same as "length". This field is not valid for RX packets. <legal
  218. all>
  219. */
  220. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_D_OFFSET 0x00000010
  221. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_D_LSB 0
  222. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_D_MSB 18
  223. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_D_MASK 0x0007ffff
  224. /* Description MCS_COPY_D
  225. Same as "mcs". This field is not valid for RX packets.
  226. <legal 0-11>
  227. */
  228. #define VHT_SIG_B_MU160_INFO_MCS_COPY_D_OFFSET 0x00000010
  229. #define VHT_SIG_B_MU160_INFO_MCS_COPY_D_LSB 19
  230. #define VHT_SIG_B_MU160_INFO_MCS_COPY_D_MSB 22
  231. #define VHT_SIG_B_MU160_INFO_MCS_COPY_D_MASK 0x00780000
  232. /* Description TAIL_COPY_D
  233. Same as "tail". This field is not valid for RX packets.
  234. <legal 0>
  235. */
  236. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_D_OFFSET 0x00000010
  237. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_D_LSB 23
  238. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_D_MSB 28
  239. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_D_MASK 0x1f800000
  240. /* Description RESERVED_4
  241. Not part of VHT-SIG-B.
  242. Reserved: Set to 0 and ignored on receive <legal 0>
  243. */
  244. #define VHT_SIG_B_MU160_INFO_RESERVED_4_OFFSET 0x00000010
  245. #define VHT_SIG_B_MU160_INFO_RESERVED_4_LSB 29
  246. #define VHT_SIG_B_MU160_INFO_RESERVED_4_MSB 31
  247. #define VHT_SIG_B_MU160_INFO_RESERVED_4_MASK 0xe0000000
  248. /* Description LENGTH_COPY_E
  249. Same as "length". This field is not valid for RX packets. <legal
  250. all>
  251. */
  252. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_E_OFFSET 0x00000014
  253. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_E_LSB 0
  254. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_E_MSB 18
  255. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_E_MASK 0x0007ffff
  256. /* Description MCS_COPY_E
  257. Same as "mcs". This field is not valid for RX packets.
  258. <legal 0-11>
  259. */
  260. #define VHT_SIG_B_MU160_INFO_MCS_COPY_E_OFFSET 0x00000014
  261. #define VHT_SIG_B_MU160_INFO_MCS_COPY_E_LSB 19
  262. #define VHT_SIG_B_MU160_INFO_MCS_COPY_E_MSB 22
  263. #define VHT_SIG_B_MU160_INFO_MCS_COPY_E_MASK 0x00780000
  264. /* Description TAIL_COPY_E
  265. Same as "tail". This field is not valid for RX packets.
  266. <legal 0>
  267. */
  268. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_E_OFFSET 0x00000014
  269. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_E_LSB 23
  270. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_E_MSB 28
  271. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_E_MASK 0x1f800000
  272. /* Description RESERVED_5
  273. Not part of VHT-SIG-B.
  274. Reserved: Set to 0 and ignored on receive <legal 0>
  275. */
  276. #define VHT_SIG_B_MU160_INFO_RESERVED_5_OFFSET 0x00000014
  277. #define VHT_SIG_B_MU160_INFO_RESERVED_5_LSB 29
  278. #define VHT_SIG_B_MU160_INFO_RESERVED_5_MSB 31
  279. #define VHT_SIG_B_MU160_INFO_RESERVED_5_MASK 0xe0000000
  280. /* Description LENGTH_COPY_F
  281. Same as "length". This field is not valid for RX packets. <legal
  282. all>
  283. */
  284. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_F_OFFSET 0x00000018
  285. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_F_LSB 0
  286. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_F_MSB 18
  287. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_F_MASK 0x0007ffff
  288. /* Description MCS_COPY_F
  289. Same as "mcs". This field is not valid for RX packets.
  290. <legal 0-11>
  291. */
  292. #define VHT_SIG_B_MU160_INFO_MCS_COPY_F_OFFSET 0x00000018
  293. #define VHT_SIG_B_MU160_INFO_MCS_COPY_F_LSB 19
  294. #define VHT_SIG_B_MU160_INFO_MCS_COPY_F_MSB 22
  295. #define VHT_SIG_B_MU160_INFO_MCS_COPY_F_MASK 0x00780000
  296. /* Description TAIL_COPY_F
  297. Same as "tail". This field is not valid for RX packets.
  298. <legal 0>
  299. */
  300. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_F_OFFSET 0x00000018
  301. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_F_LSB 23
  302. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_F_MSB 28
  303. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_F_MASK 0x1f800000
  304. /* Description MU_USER_NUMBER
  305. Not part of VHT-SIG-B.
  306. Mapping from user number (BFer hardware specific) to mu_user_number.
  307. The reader is directed to the previous chapter (User Number)
  308. for a definition of the terms user and mu_user. <legal
  309. 0-3>
  310. */
  311. #define VHT_SIG_B_MU160_INFO_MU_USER_NUMBER_OFFSET 0x00000018
  312. #define VHT_SIG_B_MU160_INFO_MU_USER_NUMBER_LSB 29
  313. #define VHT_SIG_B_MU160_INFO_MU_USER_NUMBER_MSB 31
  314. #define VHT_SIG_B_MU160_INFO_MU_USER_NUMBER_MASK 0xe0000000
  315. /* Description LENGTH_COPY_G
  316. Same as "length". This field is not valid for RX packets. <legal
  317. all>
  318. */
  319. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_G_OFFSET 0x0000001c
  320. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_G_LSB 0
  321. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_G_MSB 18
  322. #define VHT_SIG_B_MU160_INFO_LENGTH_COPY_G_MASK 0x0007ffff
  323. /* Description MCS_COPY_G
  324. Same as "mcs". This field is not valid for RX packets.
  325. <legal 0-11>
  326. */
  327. #define VHT_SIG_B_MU160_INFO_MCS_COPY_G_OFFSET 0x0000001c
  328. #define VHT_SIG_B_MU160_INFO_MCS_COPY_G_LSB 19
  329. #define VHT_SIG_B_MU160_INFO_MCS_COPY_G_MSB 22
  330. #define VHT_SIG_B_MU160_INFO_MCS_COPY_G_MASK 0x00780000
  331. /* Description TAIL_COPY_G
  332. Same as "tail". This field is not valid for RX packets.
  333. <legal 0>
  334. */
  335. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_G_OFFSET 0x0000001c
  336. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_G_LSB 23
  337. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_G_MSB 28
  338. #define VHT_SIG_B_MU160_INFO_TAIL_COPY_G_MASK 0x1f800000
  339. /* Description RESERVED_7
  340. <legal 0>
  341. */
  342. #define VHT_SIG_B_MU160_INFO_RESERVED_7_OFFSET 0x0000001c
  343. #define VHT_SIG_B_MU160_INFO_RESERVED_7_LSB 29
  344. #define VHT_SIG_B_MU160_INFO_RESERVED_7_MSB 31
  345. #define VHT_SIG_B_MU160_INFO_RESERVED_7_MASK 0xe0000000
  346. #endif // VHT_SIG_B_MU160_INFO