mactx_vht_sig_b_su20.h 4.6 KB

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