vht_sig_b_su20_info.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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_SU20_INFO_H_
  16. #define _VHT_SIG_B_SU20_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_VHT_SIG_B_SU20_INFO 1
  20. struct vht_sig_b_su20_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t length : 17, // [16:0]
  23. vhtb_reserved : 3, // [19:17]
  24. tail : 6, // [25:20]
  25. reserved : 5, // [30:26]
  26. rx_ndp : 1; // [31:31]
  27. #else
  28. uint32_t rx_ndp : 1, // [31:31]
  29. reserved : 5, // [30:26]
  30. tail : 6, // [25:20]
  31. vhtb_reserved : 3, // [19:17]
  32. length : 17; // [16:0]
  33. #endif
  34. };
  35. /* Description LENGTH
  36. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4)
  37. <legal all>
  38. */
  39. #define VHT_SIG_B_SU20_INFO_LENGTH_OFFSET 0x00000000
  40. #define VHT_SIG_B_SU20_INFO_LENGTH_LSB 0
  41. #define VHT_SIG_B_SU20_INFO_LENGTH_MSB 16
  42. #define VHT_SIG_B_SU20_INFO_LENGTH_MASK 0x0001ffff
  43. /* Description VHTB_RESERVED
  44. Reserved: Set to all ones for non-NDP frames and ignored
  45. on receive
  46. <legal 2,7>
  47. */
  48. #define VHT_SIG_B_SU20_INFO_VHTB_RESERVED_OFFSET 0x00000000
  49. #define VHT_SIG_B_SU20_INFO_VHTB_RESERVED_LSB 17
  50. #define VHT_SIG_B_SU20_INFO_VHTB_RESERVED_MSB 19
  51. #define VHT_SIG_B_SU20_INFO_VHTB_RESERVED_MASK 0x000e0000
  52. /* Description TAIL
  53. Used to terminate the trellis of the convolutional decoder.
  54. Set to 0. <legal 0>
  55. */
  56. #define VHT_SIG_B_SU20_INFO_TAIL_OFFSET 0x00000000
  57. #define VHT_SIG_B_SU20_INFO_TAIL_LSB 20
  58. #define VHT_SIG_B_SU20_INFO_TAIL_MSB 25
  59. #define VHT_SIG_B_SU20_INFO_TAIL_MASK 0x03f00000
  60. /* Description RESERVED
  61. Not part of VHT-SIG-B.
  62. Reserved: Set to 0 and ignored on receive <legal 0>
  63. */
  64. #define VHT_SIG_B_SU20_INFO_RESERVED_OFFSET 0x00000000
  65. #define VHT_SIG_B_SU20_INFO_RESERVED_LSB 26
  66. #define VHT_SIG_B_SU20_INFO_RESERVED_MSB 30
  67. #define VHT_SIG_B_SU20_INFO_RESERVED_MASK 0x7c000000
  68. /* Description RX_NDP
  69. Not part of VHT-SIG-B.
  70. Used to identify received NDP frame
  71. <legal 0,1>
  72. */
  73. #define VHT_SIG_B_SU20_INFO_RX_NDP_OFFSET 0x00000000
  74. #define VHT_SIG_B_SU20_INFO_RX_NDP_LSB 31
  75. #define VHT_SIG_B_SU20_INFO_RX_NDP_MSB 31
  76. #define VHT_SIG_B_SU20_INFO_RX_NDP_MASK 0x80000000
  77. #endif // VHT_SIG_B_SU20_INFO