vht_sig_b_mu20_info.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 _VHT_SIG_B_MU20_INFO_H_
  16. #define _VHT_SIG_B_MU20_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_VHT_SIG_B_MU20_INFO 1
  20. struct vht_sig_b_mu20_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t length : 16, // [15:0]
  23. mcs : 4, // [19:16]
  24. tail : 6, // [25:20]
  25. mu_user_number : 3, // [28:26]
  26. reserved_0 : 3; // [31:29]
  27. #else
  28. uint32_t reserved_0 : 3, // [31:29]
  29. mu_user_number : 3, // [28:26]
  30. tail : 6, // [25:20]
  31. mcs : 4, // [19:16]
  32. length : 16; // [15:0]
  33. #endif
  34. };
  35. /* Description LENGTH
  36. VHT-SIG-B Length (in units of 4 octets) = ceiling (LENGTH/4)
  37. <legal all>
  38. */
  39. #define VHT_SIG_B_MU20_INFO_LENGTH_OFFSET 0x00000000
  40. #define VHT_SIG_B_MU20_INFO_LENGTH_LSB 0
  41. #define VHT_SIG_B_MU20_INFO_LENGTH_MSB 15
  42. #define VHT_SIG_B_MU20_INFO_LENGTH_MASK 0x0000ffff
  43. /* Description MCS
  44. Modulation as described in vht_sig_a mcs field
  45. <legal 0-11>
  46. */
  47. #define VHT_SIG_B_MU20_INFO_MCS_OFFSET 0x00000000
  48. #define VHT_SIG_B_MU20_INFO_MCS_LSB 16
  49. #define VHT_SIG_B_MU20_INFO_MCS_MSB 19
  50. #define VHT_SIG_B_MU20_INFO_MCS_MASK 0x000f0000
  51. /* Description TAIL
  52. Used to terminate the trellis of the convolutional decoder.
  53. <legal all>
  54. */
  55. #define VHT_SIG_B_MU20_INFO_TAIL_OFFSET 0x00000000
  56. #define VHT_SIG_B_MU20_INFO_TAIL_LSB 20
  57. #define VHT_SIG_B_MU20_INFO_TAIL_MSB 25
  58. #define VHT_SIG_B_MU20_INFO_TAIL_MASK 0x03f00000
  59. /* Description MU_USER_NUMBER
  60. Not part of VHT-SIG-B.
  61. Mapping from user number (BFer hardware specific) to mu_user_number.
  62. The reader is directed to the previous chapter (User Number)
  63. for a definition of the terms user and mu_user.
  64. <legal 0-3>
  65. */
  66. #define VHT_SIG_B_MU20_INFO_MU_USER_NUMBER_OFFSET 0x00000000
  67. #define VHT_SIG_B_MU20_INFO_MU_USER_NUMBER_LSB 26
  68. #define VHT_SIG_B_MU20_INFO_MU_USER_NUMBER_MSB 28
  69. #define VHT_SIG_B_MU20_INFO_MU_USER_NUMBER_MASK 0x1c000000
  70. /* Description RESERVED_0
  71. <legal 0>
  72. */
  73. #define VHT_SIG_B_MU20_INFO_RESERVED_0_OFFSET 0x00000000
  74. #define VHT_SIG_B_MU20_INFO_RESERVED_0_LSB 29
  75. #define VHT_SIG_B_MU20_INFO_RESERVED_0_MSB 31
  76. #define VHT_SIG_B_MU20_INFO_RESERVED_0_MASK 0xe0000000
  77. #endif // VHT_SIG_B_MU20_INFO