vht_sig_b_mu40_info.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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_MU40_INFO_H_
  16. #define _VHT_SIG_B_MU40_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_VHT_SIG_B_MU40_INFO 2
  20. struct vht_sig_b_mu40_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t length : 17, // [16:0]
  23. mcs : 4, // [20:17]
  24. tail : 6, // [26:21]
  25. reserved_0 : 2, // [28:27]
  26. mu_user_number : 3; // [31:29]
  27. uint32_t length_copy : 17, // [16:0]
  28. mcs_copy : 4, // [20:17]
  29. tail_copy : 6, // [26:21]
  30. reserved_1 : 5; // [31:27]
  31. #else
  32. uint32_t mu_user_number : 3, // [31:29]
  33. reserved_0 : 2, // [28:27]
  34. tail : 6, // [26:21]
  35. mcs : 4, // [20:17]
  36. length : 17; // [16:0]
  37. uint32_t reserved_1 : 5, // [31:27]
  38. tail_copy : 6, // [26:21]
  39. mcs_copy : 4, // [20:17]
  40. length_copy : 17; // [16:0]
  41. #endif
  42. };
  43. /* Description LENGTH
  44. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4) <legal
  45. all>
  46. */
  47. #define VHT_SIG_B_MU40_INFO_LENGTH_OFFSET 0x00000000
  48. #define VHT_SIG_B_MU40_INFO_LENGTH_LSB 0
  49. #define VHT_SIG_B_MU40_INFO_LENGTH_MSB 16
  50. #define VHT_SIG_B_MU40_INFO_LENGTH_MASK 0x0001ffff
  51. /* Description MCS
  52. Modulation as described in vht_sig_a mcs field
  53. <legal 0-11>
  54. */
  55. #define VHT_SIG_B_MU40_INFO_MCS_OFFSET 0x00000000
  56. #define VHT_SIG_B_MU40_INFO_MCS_LSB 17
  57. #define VHT_SIG_B_MU40_INFO_MCS_MSB 20
  58. #define VHT_SIG_B_MU40_INFO_MCS_MASK 0x001e0000
  59. /* Description TAIL
  60. Used to terminate the trellis of the convolutional decoder.
  61. Set to 0.
  62. <legal 0>
  63. */
  64. #define VHT_SIG_B_MU40_INFO_TAIL_OFFSET 0x00000000
  65. #define VHT_SIG_B_MU40_INFO_TAIL_LSB 21
  66. #define VHT_SIG_B_MU40_INFO_TAIL_MSB 26
  67. #define VHT_SIG_B_MU40_INFO_TAIL_MASK 0x07e00000
  68. /* Description RESERVED_0
  69. Not part of VHT-SIG-B.
  70. Reserved: Set to 0 and ignored on receive <legal 0>
  71. */
  72. #define VHT_SIG_B_MU40_INFO_RESERVED_0_OFFSET 0x00000000
  73. #define VHT_SIG_B_MU40_INFO_RESERVED_0_LSB 27
  74. #define VHT_SIG_B_MU40_INFO_RESERVED_0_MSB 28
  75. #define VHT_SIG_B_MU40_INFO_RESERVED_0_MASK 0x18000000
  76. /* Description MU_USER_NUMBER
  77. Not part of VHT-SIG-B.
  78. Mapping from user number (BFer hardware specific) to mu_user_number.
  79. The reader is directed to the previous chapter (User Number)
  80. for a definition of the terms user and mu_user. <legal
  81. 0-3>
  82. */
  83. #define VHT_SIG_B_MU40_INFO_MU_USER_NUMBER_OFFSET 0x00000000
  84. #define VHT_SIG_B_MU40_INFO_MU_USER_NUMBER_LSB 29
  85. #define VHT_SIG_B_MU40_INFO_MU_USER_NUMBER_MSB 31
  86. #define VHT_SIG_B_MU40_INFO_MU_USER_NUMBER_MASK 0xe0000000
  87. /* Description LENGTH_COPY
  88. Same as "length". This field is not valid for RX packets. <legal
  89. all>
  90. */
  91. #define VHT_SIG_B_MU40_INFO_LENGTH_COPY_OFFSET 0x00000004
  92. #define VHT_SIG_B_MU40_INFO_LENGTH_COPY_LSB 0
  93. #define VHT_SIG_B_MU40_INFO_LENGTH_COPY_MSB 16
  94. #define VHT_SIG_B_MU40_INFO_LENGTH_COPY_MASK 0x0001ffff
  95. /* Description MCS_COPY
  96. Same as "mcs". This field is not valid for RX packets. <legal
  97. 0-11>
  98. */
  99. #define VHT_SIG_B_MU40_INFO_MCS_COPY_OFFSET 0x00000004
  100. #define VHT_SIG_B_MU40_INFO_MCS_COPY_LSB 17
  101. #define VHT_SIG_B_MU40_INFO_MCS_COPY_MSB 20
  102. #define VHT_SIG_B_MU40_INFO_MCS_COPY_MASK 0x001e0000
  103. /* Description TAIL_COPY
  104. Same as "tail". This field is not valid for RX packets.
  105. <legal 0>
  106. */
  107. #define VHT_SIG_B_MU40_INFO_TAIL_COPY_OFFSET 0x00000004
  108. #define VHT_SIG_B_MU40_INFO_TAIL_COPY_LSB 21
  109. #define VHT_SIG_B_MU40_INFO_TAIL_COPY_MSB 26
  110. #define VHT_SIG_B_MU40_INFO_TAIL_COPY_MASK 0x07e00000
  111. /* Description RESERVED_1
  112. <legal 0>
  113. */
  114. #define VHT_SIG_B_MU40_INFO_RESERVED_1_OFFSET 0x00000004
  115. #define VHT_SIG_B_MU40_INFO_RESERVED_1_LSB 27
  116. #define VHT_SIG_B_MU40_INFO_RESERVED_1_MSB 31
  117. #define VHT_SIG_B_MU40_INFO_RESERVED_1_MASK 0xf8000000
  118. #endif // VHT_SIG_B_MU40_INFO