rxpcu_early_rx_indication.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 _RXPCU_EARLY_RX_INDICATION_H_
  17. #define _RXPCU_EARLY_RX_INDICATION_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. #define NUM_OF_DWORDS_RXPCU_EARLY_RX_INDICATION 2
  21. #define NUM_OF_QWORDS_RXPCU_EARLY_RX_INDICATION 1
  22. struct rxpcu_early_rx_indication {
  23. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  24. uint32_t pkt_type : 4, // [3:0]
  25. dot11ax_su_extended : 1, // [4:4]
  26. rate_mcs : 4, // [8:5]
  27. dot11ax_received_ext_ru_size : 4, // [12:9]
  28. reserved_0a : 19; // [31:13]
  29. uint32_t tlv64_padding : 32; // [31:0]
  30. #else
  31. uint32_t reserved_0a : 19, // [31:13]
  32. dot11ax_received_ext_ru_size : 4, // [12:9]
  33. rate_mcs : 4, // [8:5]
  34. dot11ax_su_extended : 1, // [4:4]
  35. pkt_type : 4; // [3:0]
  36. uint32_t tlv64_padding : 32; // [31:0]
  37. #endif
  38. };
  39. /* Description PKT_TYPE
  40. Packet type:
  41. <enum 0 dot11a>802.11a PPDU type
  42. <enum 1 dot11b>802.11b PPDU type
  43. <enum 2 dot11n_mm>802.11n Mixed Mode PPDU type
  44. <enum 3 dot11ac>802.11ac PPDU type
  45. <enum 4 dot11ax>802.11ax PPDU type
  46. <enum 5 dot11ba>802.11ba (WUR) PPDU type
  47. <enum 6 dot11be>802.11be PPDU type
  48. <enum 7 dot11az>802.11az (ranging) PPDU type
  49. <enum 8 dot11n_gf>802.11n Green Field PPDU type (unsupported
  50. & aborted)
  51. */
  52. #define RXPCU_EARLY_RX_INDICATION_PKT_TYPE_OFFSET 0x0000000000000000
  53. #define RXPCU_EARLY_RX_INDICATION_PKT_TYPE_LSB 0
  54. #define RXPCU_EARLY_RX_INDICATION_PKT_TYPE_MSB 3
  55. #define RXPCU_EARLY_RX_INDICATION_PKT_TYPE_MASK 0x000000000000000f
  56. /* Description DOT11AX_SU_EXTENDED
  57. This field is only valid for pkt_type == 11ax OR pkt_type
  58. == 11be
  59. When set, the 11ax or 11be reception was an extended range
  60. SU
  61. */
  62. #define RXPCU_EARLY_RX_INDICATION_DOT11AX_SU_EXTENDED_OFFSET 0x0000000000000000
  63. #define RXPCU_EARLY_RX_INDICATION_DOT11AX_SU_EXTENDED_LSB 4
  64. #define RXPCU_EARLY_RX_INDICATION_DOT11AX_SU_EXTENDED_MSB 4
  65. #define RXPCU_EARLY_RX_INDICATION_DOT11AX_SU_EXTENDED_MASK 0x0000000000000010
  66. /* Description RATE_MCS
  67. For details, refer to MCS_TYPE description
  68. Note: This is "rate" in case of 11a/11b
  69. <legal all>
  70. */
  71. #define RXPCU_EARLY_RX_INDICATION_RATE_MCS_OFFSET 0x0000000000000000
  72. #define RXPCU_EARLY_RX_INDICATION_RATE_MCS_LSB 5
  73. #define RXPCU_EARLY_RX_INDICATION_RATE_MCS_MSB 8
  74. #define RXPCU_EARLY_RX_INDICATION_RATE_MCS_MASK 0x00000000000001e0
  75. /* Description DOT11AX_RECEIVED_EXT_RU_SIZE
  76. Field only valid in case of SU_or_uplink_MU_reception =
  77. Reception_is_SU
  78. This field is only valid for pkt_type == 11ax OR pkt_type
  79. == 11be AND dot11ax_su_extended is set
  80. The number of (basic) RUs in this extended range reception
  81. RXPCU gets this from the received HE_SIG_A
  82. <legal all>
  83. */
  84. #define RXPCU_EARLY_RX_INDICATION_DOT11AX_RECEIVED_EXT_RU_SIZE_OFFSET 0x0000000000000000
  85. #define RXPCU_EARLY_RX_INDICATION_DOT11AX_RECEIVED_EXT_RU_SIZE_LSB 9
  86. #define RXPCU_EARLY_RX_INDICATION_DOT11AX_RECEIVED_EXT_RU_SIZE_MSB 12
  87. #define RXPCU_EARLY_RX_INDICATION_DOT11AX_RECEIVED_EXT_RU_SIZE_MASK 0x0000000000001e00
  88. /* Description RESERVED_0A
  89. <legal 0>
  90. */
  91. #define RXPCU_EARLY_RX_INDICATION_RESERVED_0A_OFFSET 0x0000000000000000
  92. #define RXPCU_EARLY_RX_INDICATION_RESERVED_0A_LSB 13
  93. #define RXPCU_EARLY_RX_INDICATION_RESERVED_0A_MSB 31
  94. #define RXPCU_EARLY_RX_INDICATION_RESERVED_0A_MASK 0x00000000ffffe000
  95. /* Description TLV64_PADDING
  96. Automatic DWORD padding inserted while converting TLV32
  97. to TLV64 for 64 bit ARCH
  98. <legal 0>
  99. */
  100. #define RXPCU_EARLY_RX_INDICATION_TLV64_PADDING_OFFSET 0x0000000000000000
  101. #define RXPCU_EARLY_RX_INDICATION_TLV64_PADDING_LSB 32
  102. #define RXPCU_EARLY_RX_INDICATION_TLV64_PADDING_MSB 63
  103. #define RXPCU_EARLY_RX_INDICATION_TLV64_PADDING_MASK 0xffffffff00000000
  104. #endif // RXPCU_EARLY_RX_INDICATION