vht_sig_b_su40_info.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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_SU40_INFO_H_
  16. #define _VHT_SIG_B_SU40_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_VHT_SIG_B_SU40_INFO 2
  20. struct vht_sig_b_su40_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t length : 19, // [18:0]
  23. vhtb_reserved : 2, // [20:19]
  24. tail : 6, // [26:21]
  25. reserved : 4, // [30:27]
  26. rx_ndp : 1; // [31:31]
  27. uint32_t length_copy : 19, // [18:0]
  28. vhtb_reserved_copy : 2, // [20:19]
  29. tail_copy : 6, // [26:21]
  30. reserved_copy : 4, // [30:27]
  31. rx_ndp_copy : 1; // [31:31]
  32. #else
  33. uint32_t rx_ndp : 1, // [31:31]
  34. reserved : 4, // [30:27]
  35. tail : 6, // [26:21]
  36. vhtb_reserved : 2, // [20:19]
  37. length : 19; // [18:0]
  38. uint32_t rx_ndp_copy : 1, // [31:31]
  39. reserved_copy : 4, // [30:27]
  40. tail_copy : 6, // [26:21]
  41. vhtb_reserved_copy : 2, // [20:19]
  42. length_copy : 19; // [18:0]
  43. #endif
  44. };
  45. /* Description LENGTH
  46. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4)
  47. <legal all>
  48. */
  49. #define VHT_SIG_B_SU40_INFO_LENGTH_OFFSET 0x00000000
  50. #define VHT_SIG_B_SU40_INFO_LENGTH_LSB 0
  51. #define VHT_SIG_B_SU40_INFO_LENGTH_MSB 18
  52. #define VHT_SIG_B_SU40_INFO_LENGTH_MASK 0x0007ffff
  53. /* Description VHTB_RESERVED
  54. Reserved: Set to all ones and ignored on receive <legal
  55. 3>
  56. */
  57. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_OFFSET 0x00000000
  58. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_LSB 19
  59. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MSB 20
  60. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MASK 0x00180000
  61. /* Description TAIL
  62. Used to terminate the trellis of the convolutional decoder.
  63. Set to 0. <legal 0>
  64. */
  65. #define VHT_SIG_B_SU40_INFO_TAIL_OFFSET 0x00000000
  66. #define VHT_SIG_B_SU40_INFO_TAIL_LSB 21
  67. #define VHT_SIG_B_SU40_INFO_TAIL_MSB 26
  68. #define VHT_SIG_B_SU40_INFO_TAIL_MASK 0x07e00000
  69. /* Description RESERVED
  70. Not part of VHT-SIG-B.
  71. Reserved: Set to 0 and ignored on receive <legal 0>
  72. */
  73. #define VHT_SIG_B_SU40_INFO_RESERVED_OFFSET 0x00000000
  74. #define VHT_SIG_B_SU40_INFO_RESERVED_LSB 27
  75. #define VHT_SIG_B_SU40_INFO_RESERVED_MSB 30
  76. #define VHT_SIG_B_SU40_INFO_RESERVED_MASK 0x78000000
  77. /* Description RX_NDP
  78. Not part of VHT-SIG-B.
  79. Used to identify received NDP frame
  80. <legal 0,1>
  81. */
  82. #define VHT_SIG_B_SU40_INFO_RX_NDP_OFFSET 0x00000000
  83. #define VHT_SIG_B_SU40_INFO_RX_NDP_LSB 31
  84. #define VHT_SIG_B_SU40_INFO_RX_NDP_MSB 31
  85. #define VHT_SIG_B_SU40_INFO_RX_NDP_MASK 0x80000000
  86. /* Description LENGTH_COPY
  87. Same as "length" <legal all>
  88. */
  89. #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_OFFSET 0x00000004
  90. #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_LSB 0
  91. #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MSB 18
  92. #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MASK 0x0007ffff
  93. /* Description VHTB_RESERVED_COPY
  94. Same as "vhtb_reserved" <legal 3>
  95. */
  96. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_OFFSET 0x00000004
  97. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_LSB 19
  98. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MSB 20
  99. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MASK 0x00180000
  100. /* Description TAIL_COPY
  101. Same as "tail" <legal 0>
  102. */
  103. #define VHT_SIG_B_SU40_INFO_TAIL_COPY_OFFSET 0x00000004
  104. #define VHT_SIG_B_SU40_INFO_TAIL_COPY_LSB 21
  105. #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MSB 26
  106. #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MASK 0x07e00000
  107. /* Description RESERVED_COPY
  108. Same as "reserved" <legal 0>
  109. */
  110. #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_OFFSET 0x00000004
  111. #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_LSB 27
  112. #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MSB 30
  113. #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MASK 0x78000000
  114. /* Description RX_NDP_COPY
  115. Not part of VHT-SIG-B.
  116. Used to identify received NDP frame
  117. <legal 0,1>
  118. */
  119. #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_OFFSET 0x00000004
  120. #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_LSB 31
  121. #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MSB 31
  122. #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MASK 0x80000000
  123. #endif // VHT_SIG_B_SU40_INFO