eht_sig_usr_su_info.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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 _EHT_SIG_USR_SU_INFO_H_
  17. #define _EHT_SIG_USR_SU_INFO_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. #define NUM_OF_DWORDS_EHT_SIG_USR_SU_INFO 1
  21. struct eht_sig_usr_su_info {
  22. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  23. uint32_t sta_id : 11, // [10:0]
  24. sta_mcs : 4, // [14:11]
  25. validate_0a : 1, // [15:15]
  26. nss : 4, // [19:16]
  27. txbf : 1, // [20:20]
  28. sta_coding : 1, // [21:21]
  29. reserved_0b : 9, // [30:22]
  30. rx_integrity_check_passed : 1; // [31:31]
  31. #else
  32. uint32_t rx_integrity_check_passed : 1, // [31:31]
  33. reserved_0b : 9, // [30:22]
  34. sta_coding : 1, // [21:21]
  35. txbf : 1, // [20:20]
  36. nss : 4, // [19:16]
  37. validate_0a : 1, // [15:15]
  38. sta_mcs : 4, // [14:11]
  39. sta_id : 11; // [10:0]
  40. #endif
  41. };
  42. /* Description STA_ID
  43. Identifies the STA that is addressed. Details of STA ID
  44. are TBD
  45. */
  46. #define EHT_SIG_USR_SU_INFO_STA_ID_OFFSET 0x00000000
  47. #define EHT_SIG_USR_SU_INFO_STA_ID_LSB 0
  48. #define EHT_SIG_USR_SU_INFO_STA_ID_MSB 10
  49. #define EHT_SIG_USR_SU_INFO_STA_ID_MASK 0x000007ff
  50. /* Description STA_MCS
  51. Indicates the data MCS
  52. 0 - 13: MCS 0 - 13
  53. 14: MCS 0 with DCM and 2x duplicate
  54. 15: MCS 0 with DCM
  55. <legal all>
  56. */
  57. #define EHT_SIG_USR_SU_INFO_STA_MCS_OFFSET 0x00000000
  58. #define EHT_SIG_USR_SU_INFO_STA_MCS_LSB 11
  59. #define EHT_SIG_USR_SU_INFO_STA_MCS_MSB 14
  60. #define EHT_SIG_USR_SU_INFO_STA_MCS_MASK 0x00007800
  61. /* Description VALIDATE_0A
  62. Note: spec indicates this shall be set to 1
  63. <legal 1>
  64. */
  65. #define EHT_SIG_USR_SU_INFO_VALIDATE_0A_OFFSET 0x00000000
  66. #define EHT_SIG_USR_SU_INFO_VALIDATE_0A_LSB 15
  67. #define EHT_SIG_USR_SU_INFO_VALIDATE_0A_MSB 15
  68. #define EHT_SIG_USR_SU_INFO_VALIDATE_0A_MASK 0x00008000
  69. /* Description NSS
  70. Number of spatial streams for this user
  71. The actual number of streams is 1 larger than indicated
  72. in this field.
  73. <legal all>
  74. */
  75. #define EHT_SIG_USR_SU_INFO_NSS_OFFSET 0x00000000
  76. #define EHT_SIG_USR_SU_INFO_NSS_LSB 16
  77. #define EHT_SIG_USR_SU_INFO_NSS_MSB 19
  78. #define EHT_SIG_USR_SU_INFO_NSS_MASK 0x000f0000
  79. /* Description TXBF
  80. Indicates whether beamforming is applied
  81. 0: No beamforming
  82. 1: beamforming
  83. <legal all>
  84. */
  85. #define EHT_SIG_USR_SU_INFO_TXBF_OFFSET 0x00000000
  86. #define EHT_SIG_USR_SU_INFO_TXBF_LSB 20
  87. #define EHT_SIG_USR_SU_INFO_TXBF_MSB 20
  88. #define EHT_SIG_USR_SU_INFO_TXBF_MASK 0x00100000
  89. /* Description STA_CODING
  90. Distinguishes between BCC/LDPC
  91. 0: BCC
  92. 1: LDPC
  93. <legal all>
  94. */
  95. #define EHT_SIG_USR_SU_INFO_STA_CODING_OFFSET 0x00000000
  96. #define EHT_SIG_USR_SU_INFO_STA_CODING_LSB 21
  97. #define EHT_SIG_USR_SU_INFO_STA_CODING_MSB 21
  98. #define EHT_SIG_USR_SU_INFO_STA_CODING_MASK 0x00200000
  99. /* Description RESERVED_0B
  100. <legal 0>
  101. */
  102. #define EHT_SIG_USR_SU_INFO_RESERVED_0B_OFFSET 0x00000000
  103. #define EHT_SIG_USR_SU_INFO_RESERVED_0B_LSB 22
  104. #define EHT_SIG_USR_SU_INFO_RESERVED_0B_MSB 30
  105. #define EHT_SIG_USR_SU_INFO_RESERVED_0B_MASK 0x7fc00000
  106. /* Description RX_INTEGRITY_CHECK_PASSED
  107. TX side: Set to 0
  108. RX side: Set to 1 if PHY determines the CRC check of the
  109. codeblock containing this EHT-SIG user info has passed,
  110. else set to 0
  111. <legal all>
  112. */
  113. #define EHT_SIG_USR_SU_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x00000000
  114. #define EHT_SIG_USR_SU_INFO_RX_INTEGRITY_CHECK_PASSED_LSB 31
  115. #define EHT_SIG_USR_SU_INFO_RX_INTEGRITY_CHECK_PASSED_MSB 31
  116. #define EHT_SIG_USR_SU_INFO_RX_INTEGRITY_CHECK_PASSED_MASK 0x80000000
  117. #endif // EHT_SIG_USR_SU_INFO