mactx_he_sig_b1_mu.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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_HE_SIG_B1_MU_H_
  17. #define _MACTX_HE_SIG_B1_MU_H_
  18. #if !defined(__ASSEMBLER__)
  19. #endif
  20. #include "he_sig_b1_mu_info.h"
  21. #define NUM_OF_DWORDS_MACTX_HE_SIG_B1_MU 2
  22. #define NUM_OF_QWORDS_MACTX_HE_SIG_B1_MU 1
  23. struct mactx_he_sig_b1_mu {
  24. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  25. struct he_sig_b1_mu_info mactx_he_sig_b1_mu_info_details;
  26. uint32_t tlv64_padding : 32; // [31:0]
  27. #else
  28. struct he_sig_b1_mu_info mactx_he_sig_b1_mu_info_details;
  29. uint32_t tlv64_padding : 32; // [31:0]
  30. #endif
  31. };
  32. /* Description MACTX_HE_SIG_B1_MU_INFO_DETAILS
  33. See detailed description of the STRUCT
  34. */
  35. /* Description RU_ALLOCATION
  36. RU allocation for the user(s) following this common portion
  37. of the SIG
  38. For details, refer to RU_TYPE description
  39. <legal all>
  40. */
  41. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RU_ALLOCATION_OFFSET 0x0000000000000000
  42. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RU_ALLOCATION_LSB 0
  43. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RU_ALLOCATION_MSB 7
  44. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RU_ALLOCATION_MASK 0x00000000000000ff
  45. /* Description RESERVED_0
  46. <legal 0>
  47. */
  48. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RESERVED_0_OFFSET 0x0000000000000000
  49. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RESERVED_0_LSB 8
  50. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RESERVED_0_MSB 30
  51. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RESERVED_0_MASK 0x000000007fffff00
  52. /* Description RX_INTEGRITY_CHECK_PASSED
  53. TX side: Set to 0
  54. RX side: Set to 1 if PHY determines the CRC check of the
  55. codeblock containing the HE-SIG-B common info has passed,
  56. else set to 0
  57. <legal all>
  58. */
  59. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x0000000000000000
  60. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_LSB 31
  61. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_MSB 31
  62. #define MACTX_HE_SIG_B1_MU_MACTX_HE_SIG_B1_MU_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_MASK 0x0000000080000000
  63. /* Description TLV64_PADDING
  64. Automatic DWORD padding inserted while converting TLV32
  65. to TLV64 for 64 bit ARCH
  66. <legal 0>
  67. */
  68. #define MACTX_HE_SIG_B1_MU_TLV64_PADDING_OFFSET 0x0000000000000000
  69. #define MACTX_HE_SIG_B1_MU_TLV64_PADDING_LSB 32
  70. #define MACTX_HE_SIG_B1_MU_TLV64_PADDING_MSB 63
  71. #define MACTX_HE_SIG_B1_MU_TLV64_PADDING_MASK 0xffffffff00000000
  72. #endif // MACTX_HE_SIG_B1_MU