vht_sig_b_su40_info.h 7.4 KB

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