phyrx_he_sig_b1_mu.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 _PHYRX_HE_SIG_B1_MU_H_
  16. #define _PHYRX_HE_SIG_B1_MU_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #include "he_sig_b1_mu_info.h"
  20. #define NUM_OF_DWORDS_PHYRX_HE_SIG_B1_MU 2
  21. #define NUM_OF_QWORDS_PHYRX_HE_SIG_B1_MU 1
  22. struct phyrx_he_sig_b1_mu {
  23. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  24. struct he_sig_b1_mu_info phyrx_he_sig_b1_mu_info_details;
  25. uint32_t tlv64_padding : 32; // [31:0]
  26. #else
  27. struct he_sig_b1_mu_info phyrx_he_sig_b1_mu_info_details;
  28. uint32_t tlv64_padding : 32; // [31:0]
  29. #endif
  30. };
  31. /* Description PHYRX_HE_SIG_B1_MU_INFO_DETAILS
  32. See detailed description of the STRUCT
  33. */
  34. /* Description RU_ALLOCATION
  35. RU allocation for the user(s) following this common portion
  36. of the SIG
  37. For details, refer to RU_TYPE description
  38. <legal all>
  39. */
  40. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RU_ALLOCATION_OFFSET 0x0000000000000000
  41. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RU_ALLOCATION_LSB 0
  42. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RU_ALLOCATION_MSB 7
  43. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RU_ALLOCATION_MASK 0x00000000000000ff
  44. /* Description RESERVED_0
  45. <legal 0>
  46. */
  47. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RESERVED_0_OFFSET 0x0000000000000000
  48. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RESERVED_0_LSB 8
  49. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RESERVED_0_MSB 30
  50. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RESERVED_0_MASK 0x000000007fffff00
  51. /* Description RX_INTEGRITY_CHECK_PASSED
  52. TX side: Set to 0
  53. RX side: Set to 1 if PHY determines the CRC check of the
  54. codeblock containing the HE-SIG-B common info has passed,
  55. else set to 0
  56. <legal all>
  57. */
  58. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x0000000000000000
  59. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_LSB 31
  60. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_MSB 31
  61. #define PHYRX_HE_SIG_B1_MU_PHYRX_HE_SIG_B1_MU_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_MASK 0x0000000080000000
  62. /* Description TLV64_PADDING
  63. Automatic DWORD padding inserted while converting TLV32
  64. to TLV64 for 64 bit ARCH
  65. <legal 0>
  66. */
  67. #define PHYRX_HE_SIG_B1_MU_TLV64_PADDING_OFFSET 0x0000000000000000
  68. #define PHYRX_HE_SIG_B1_MU_TLV64_PADDING_LSB 32
  69. #define PHYRX_HE_SIG_B1_MU_TLV64_PADDING_MSB 63
  70. #define PHYRX_HE_SIG_B1_MU_TLV64_PADDING_MASK 0xffffffff00000000
  71. #endif // PHYRX_HE_SIG_B1_MU