mactx_vht_sig_b_su20.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 _MACTX_VHT_SIG_B_SU20_H_
  16. #define _MACTX_VHT_SIG_B_SU20_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #include "vht_sig_b_su20_info.h"
  20. #define NUM_OF_DWORDS_MACTX_VHT_SIG_B_SU20 2
  21. #define NUM_OF_QWORDS_MACTX_VHT_SIG_B_SU20 1
  22. struct mactx_vht_sig_b_su20 {
  23. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  24. struct vht_sig_b_su20_info mactx_vht_sig_b_su20_info_details;
  25. uint32_t tlv64_padding : 32; // [31:0]
  26. #else
  27. struct vht_sig_b_su20_info mactx_vht_sig_b_su20_info_details;
  28. uint32_t tlv64_padding : 32; // [31:0]
  29. #endif
  30. };
  31. /* Description MACTX_VHT_SIG_B_SU20_INFO_DETAILS
  32. See detailed description of the STRUCT
  33. */
  34. /* Description LENGTH
  35. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4)
  36. <legal all>
  37. */
  38. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_LENGTH_OFFSET 0x0000000000000000
  39. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_LENGTH_LSB 0
  40. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_LENGTH_MSB 16
  41. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_LENGTH_MASK 0x000000000001ffff
  42. /* Description VHTB_RESERVED
  43. Reserved: Set to all ones for non-NDP frames and ignored
  44. on receive
  45. <legal 2,7>
  46. */
  47. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_VHTB_RESERVED_OFFSET 0x0000000000000000
  48. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_VHTB_RESERVED_LSB 17
  49. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_VHTB_RESERVED_MSB 19
  50. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_VHTB_RESERVED_MASK 0x00000000000e0000
  51. /* Description TAIL
  52. Used to terminate the trellis of the convolutional decoder.
  53. Set to 0. <legal 0>
  54. */
  55. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_TAIL_OFFSET 0x0000000000000000
  56. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_TAIL_LSB 20
  57. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_TAIL_MSB 25
  58. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_TAIL_MASK 0x0000000003f00000
  59. /* Description RESERVED
  60. Not part of VHT-SIG-B.
  61. Reserved: Set to 0 and ignored on receive <legal 0>
  62. */
  63. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_RESERVED_OFFSET 0x0000000000000000
  64. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_RESERVED_LSB 26
  65. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_RESERVED_MSB 30
  66. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_RESERVED_MASK 0x000000007c000000
  67. /* Description RX_NDP
  68. Not part of VHT-SIG-B.
  69. Used to identify received NDP frame
  70. <legal 0,1>
  71. */
  72. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_RX_NDP_OFFSET 0x0000000000000000
  73. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_RX_NDP_LSB 31
  74. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_RX_NDP_MSB 31
  75. #define MACTX_VHT_SIG_B_SU20_MACTX_VHT_SIG_B_SU20_INFO_DETAILS_RX_NDP_MASK 0x0000000080000000
  76. /* Description TLV64_PADDING
  77. Automatic DWORD padding inserted while converting TLV32
  78. to TLV64 for 64 bit ARCH
  79. <legal 0>
  80. */
  81. #define MACTX_VHT_SIG_B_SU20_TLV64_PADDING_OFFSET 0x0000000000000000
  82. #define MACTX_VHT_SIG_B_SU20_TLV64_PADDING_LSB 32
  83. #define MACTX_VHT_SIG_B_SU20_TLV64_PADDING_MSB 63
  84. #define MACTX_VHT_SIG_B_SU20_TLV64_PADDING_MASK 0xffffffff00000000
  85. #endif // MACTX_VHT_SIG_B_SU20