vht_sig_b_su20_info.h 4.3 KB

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