phyrx_vht_sig_a.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. /*
  2. * Copyright (c) 2020 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. //
  19. // DO NOT EDIT! This file is automatically generated
  20. // These definitions are tied to a particular hardware layout
  21. #ifndef _PHYRX_VHT_SIG_A_H_
  22. #define _PHYRX_VHT_SIG_A_H_
  23. #if !defined(__ASSEMBLER__)
  24. #endif
  25. #include "vht_sig_a_info.h"
  26. // ################ START SUMMARY #################
  27. //
  28. // Dword Fields
  29. // 0-1 struct vht_sig_a_info phyrx_vht_sig_a_info_details;
  30. //
  31. // ################ END SUMMARY #################
  32. #define NUM_OF_DWORDS_PHYRX_VHT_SIG_A 2
  33. struct phyrx_vht_sig_a {
  34. struct vht_sig_a_info phyrx_vht_sig_a_info_details;
  35. };
  36. /*
  37. struct vht_sig_a_info phyrx_vht_sig_a_info_details
  38. See detailed description of the STRUCT
  39. */
  40. /* EXTERNAL REFERENCE : struct vht_sig_a_info phyrx_vht_sig_a_info_details */
  41. /* Description PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_BANDWIDTH
  42. Packet bandwidth
  43. <enum 0 20_MHZ_11AC>
  44. <enum 1 40_MHZ_11AC>
  45. <enum 2 80_MHZ_11AC>
  46. <enum 3 160_MHZ_11AC>
  47. <legal 0-3>
  48. */
  49. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_BANDWIDTH_OFFSET 0x00000000
  50. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_BANDWIDTH_LSB 0
  51. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_BANDWIDTH_MASK 0x00000003
  52. /* Description PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_0
  53. Reserved. Set to 1 by MAC, PHY should ignore
  54. <legal 1>
  55. */
  56. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_0_OFFSET 0x00000000
  57. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_0_LSB 2
  58. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_0_MASK 0x00000004
  59. /* Description PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_STBC
  60. Space time block coding:
  61. <enum 0 stbc_disabled> Indicates STBC is disabled
  62. <enum 1 stbc_enabled> Indicates STBC is enabled on
  63. all streams
  64. <legal 0-1>
  65. */
  66. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_STBC_OFFSET 0x00000000
  67. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_STBC_LSB 3
  68. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_STBC_MASK 0x00000008
  69. /* Description PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_GROUP_ID
  70. In a SU VHT PPDU, if the PPDU carries MPDU(s) addressed
  71. to an AP or to a mesh STA, the Group ID field is set to 0,
  72. otherwise it is set to 63. In an NDP PPDU the Group ID is
  73. set according to IEEE 802.11ac_D1.0 Section 9.30.6
  74. (Transmission of a VHT NDP). For a MU-MIMO PPDU the Group ID
  75. is set as in 802.11ac_D1.0 Section 22.3.11.3 (Group ID).
  76. <legal all>
  77. */
  78. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_GROUP_ID_OFFSET 0x00000000
  79. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_GROUP_ID_LSB 4
  80. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_GROUP_ID_MASK 0x000003f0
  81. /* Description PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_N_STS
  82. For MU:
  83. 3 bits/user with maximum of 4 users (user u uses
  84. vht_sig_a[0][10+3u] - vht_sig_a[0][12+3u]), u = 0, 1, 2,
  85. 3)
  86. Set to 0 for 0 space time streams
  87. Set to 1 for 1 space time stream
  88. Set to 2 for 2 space time streams
  89. Set to 3 for 3 space time streams
  90. Set to 4 for 4 space time streams (not supported in Wifi
  91. 3.0)
  92. Values 5-7 are reserved
  93. In this field, references to user u should be
  94. interpreted as MU user u. As described in the previous
  95. chapter in this document (see chapter on User number), the
  96. MU user value for a given client is defined for each MU
  97. group that the client participates in. The MU user number is
  98. not related to the internal user number that is used within
  99. the BFer.
  100. For SU:
  101. vht_sig_a[0][12:10]
  102. Set to 0 for 1 space time stream
  103. Set to 1 for 2 space time streams
  104. Set to 2 for 3 space time streams
  105. Set to 3 for 4 space time streams
  106. Set to 4 for 5 space time streams
  107. Set to 5 for 6 space time streams
  108. Set to 6 for 7 space time streams
  109. Set to 7 for 8 space time streams
  110. vht_sig_a[0][21:13]
  111. Partial AID:
  112. Set to the value of the TXVECTOR parameter PARTIAL_AID.
  113. Partial AID provides an abbreviated indication of the
  114. intended recipient(s) of the frame (see IEEE802.11ac_D1.0
  115. Section 9.17a (Partial AID in VHT PPDUs)).
  116. <legal all>
  117. */
  118. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_N_STS_OFFSET 0x00000000
  119. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_N_STS_LSB 10
  120. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_N_STS_MASK 0x003ffc00
  121. /* Description PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_TXOP_PS_NOT_ALLOWED
  122. E_num 0 txop_ps_allowed Not supported: If set to by
  123. VHT AP if it allows non-AP VHT STAs in TXOP power save mode
  124. to enter Doze state during a TXOP
  125. <enum 1 no_txop_ps_allowed> Otherwise
  126. <legal 1>
  127. */
  128. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_TXOP_PS_NOT_ALLOWED_OFFSET 0x00000000
  129. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_TXOP_PS_NOT_ALLOWED_LSB 22
  130. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_TXOP_PS_NOT_ALLOWED_MASK 0x00400000
  131. /* Description PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_0B
  132. Reserved: Should be set to 1 by the MAC and ignored by
  133. the PHY <legal 1>
  134. */
  135. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_0B_OFFSET 0x00000000
  136. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_0B_LSB 23
  137. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_0B_MASK 0x00800000
  138. /* Description PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_RESERVED_0
  139. This field is not part of HT-SIG:
  140. Reserved: Should be set to 0 by the MAC and ignored by
  141. the PHY <legal 0>
  142. */
  143. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_RESERVED_0_OFFSET 0x00000000
  144. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_RESERVED_0_LSB 24
  145. #define PHYRX_VHT_SIG_A_0_PHYRX_VHT_SIG_A_INFO_DETAILS_RESERVED_0_MASK 0xff000000
  146. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_GI_SETTING
  147. <enum 0 normal_gi> Indicates short guard interval
  148. is not used in the data field
  149. <enum 1 short_gi> Indicates short guard interval is
  150. used in the data field
  151. <enum 3 short_gi_ambiguity> Indicates short guard
  152. interval is used in the data field and NSYM mod 10 = 9
  153. NSYM is defined in IEEE802.11ac_D1.0 Section 22.4.3
  154. (TXTIME and PSDU_LENGTH calculation).
  155. <legal 0,1,3>
  156. */
  157. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_GI_SETTING_OFFSET 0x00000004
  158. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_GI_SETTING_LSB 0
  159. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_GI_SETTING_MASK 0x00000003
  160. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_SU_MU_CODING
  161. For an SU PPDU, B2 is set to 0 for BCC, 1 for LDPC For
  162. an MU PPDU, if the MU[0] NSTS field is nonzero(#6773), then
  163. B2 indicates the coding used for user 0; set to 0 for BCC
  164. and 1 for LDPC. If the MU[0] NSTS field is 0, then this
  165. field is reserved and set to 1
  166. */
  167. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_SU_MU_CODING_OFFSET 0x00000004
  168. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_SU_MU_CODING_LSB 2
  169. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_SU_MU_CODING_MASK 0x00000004
  170. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_LDPC_EXTRA_SYMBOL
  171. Set to 1 if the LDPC PPDU encoding process (if an SU
  172. PPDU), or at least one LDPC user's PPDU encoding process (if
  173. an MU PPDU), results in an extra OFDM symbol (or symbols) as
  174. described in 22.3.10.5.4 (LDPC coding) and 22.3.10.5.5
  175. (Encoding process for MU PPDUs). Set to 0 otherwise.
  176. */
  177. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_LDPC_EXTRA_SYMBOL_OFFSET 0x00000004
  178. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_LDPC_EXTRA_SYMBOL_LSB 3
  179. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_LDPC_EXTRA_SYMBOL_MASK 0x00000008
  180. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_MCS
  181. For SU:
  182. Set to 0 for BPSK 1/2
  183. Set to 1 for QPSK 1/2
  184. Set to 2 for QPSK 3/4
  185. Set to 3 for 16-QAM 1/2
  186. Set to 4 for 16-QAM 3/4
  187. Set to 5 for 64-QAM 2/3
  188. Set to 6 for 64-QAM 3/4
  189. Set to 7 for 64-QAM 5/6
  190. Set to 8 for 256-QAM 3/4
  191. Set to 9 for 256-QAM 5/6
  192. For MU:
  193. If NSTS for user 1 is non-zero, then vht_sig_a[1][4]
  194. indicates coding for user 1: set to 0 for BCC, 1 for LDPC.
  195. If NSTS for user 1 is set to 0, then vht_sig_a[1][4] is
  196. reserved and set to 1.
  197. If NSTS for user 2 is non-zero, then vht_sig_a[1][5]
  198. indicates coding for user 2: set to 0 for BCC, 1 for LDPC.
  199. If NSTS for user 2 is set to 0, then vht_sig_a[1][5] is
  200. reserved and set to 1.
  201. If NSTS for user 3 is non-zero, then vht_sig_a[1][6]
  202. indicates coding for user 3: set to 0 for BCC, 1 for LDPC.
  203. If NSTS for user 3 is set to 0, then vht_sig_a[1][6] is
  204. reserved and set to 1.
  205. vht_sig_a[1][7] is reserved and set to 1
  206. <legal 0-15>
  207. */
  208. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_MCS_OFFSET 0x00000004
  209. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_MCS_LSB 4
  210. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_MCS_MASK 0x000000f0
  211. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_BEAMFORMED
  212. For SU:
  213. Set to 1 if a Beamforming steering matrix is applied to
  214. the waveform in an SU transmission as described in
  215. IEEE802.11ac_D1.0 Section 19.3.11.11.2 (Spatial mapping),
  216. set to 0 otherwise.
  217. For MU:
  218. Reserved and set to 1
  219. <legal 0-1>
  220. */
  221. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_BEAMFORMED_OFFSET 0x00000004
  222. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_BEAMFORMED_LSB 8
  223. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_BEAMFORMED_MASK 0x00000100
  224. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_1
  225. Reserved and set to 1. <legal 1>
  226. */
  227. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_1_OFFSET 0x00000004
  228. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_1_LSB 9
  229. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_VHTA_RESERVED_1_MASK 0x00000200
  230. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_CRC
  231. CRC calculated as in IEEE802.11ac_D1.0 Section
  232. 19.3.9.4.4 (CRC calculation for HTSIG) with C7 in
  233. vht_sig_a[1][10], etc. <legal all>
  234. */
  235. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_CRC_OFFSET 0x00000004
  236. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_CRC_LSB 10
  237. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_CRC_MASK 0x0003fc00
  238. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_TAIL
  239. Used to terminate the trellis of the convolutional
  240. decoder. Set to 0. <legal 0>
  241. */
  242. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_TAIL_OFFSET 0x00000004
  243. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_TAIL_LSB 18
  244. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_TAIL_MASK 0x00fc0000
  245. /* Description PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_RESERVED_1
  246. This field is not part of HT-SIG:
  247. Reserved: Should be set to 0 by the MAC and ignored by
  248. the PHY <legal 0>
  249. */
  250. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_RESERVED_1_OFFSET 0x00000004
  251. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_RESERVED_1_LSB 24
  252. #define PHYRX_VHT_SIG_A_1_PHYRX_VHT_SIG_A_INFO_DETAILS_RESERVED_1_MASK 0xff000000
  253. #endif // _PHYRX_VHT_SIG_A_H_