phyrx_l_sig_b.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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_L_SIG_B_H_
  16. #define _PHYRX_L_SIG_B_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #include "l_sig_b_info.h"
  20. #define NUM_OF_DWORDS_PHYRX_L_SIG_B 2
  21. #define NUM_OF_QWORDS_PHYRX_L_SIG_B 1
  22. struct phyrx_l_sig_b {
  23. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  24. struct l_sig_b_info phyrx_l_sig_b_info_details;
  25. uint32_t tlv64_padding : 32; // [31:0]
  26. #else
  27. struct l_sig_b_info phyrx_l_sig_b_info_details;
  28. uint32_t tlv64_padding : 32; // [31:0]
  29. #endif
  30. };
  31. /* Description PHYRX_L_SIG_B_INFO_DETAILS
  32. See detailed description of the STRUCT
  33. */
  34. /* Description RATE
  35. <enum 1 dsss_1_mpbs_long> DSSS 1 Mbps long
  36. <enum 2 dsss_2_mbps_long> DSSS 2 Mbps long
  37. <enum 3 cck_5_5_mbps_long> CCK 5.5 Mbps long
  38. <enum 4 cck_11_mbps_long> CCK 11 Mbps long
  39. <enum 5 dsss_2_mbps_short> DSSS 2 Mbps short
  40. <enum 6 cck_5_5_mbps_short> CCK 5.5 Mbps short
  41. <enum 7 cck_11_mbps_short> CCK 11 Mbps short
  42. <legal 1-7>
  43. */
  44. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RATE_OFFSET 0x0000000000000000
  45. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RATE_LSB 0
  46. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RATE_MSB 3
  47. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RATE_MASK 0x000000000000000f
  48. /* Description LENGTH
  49. The length indicates the number of octets in this MPDU.
  50. <legal all>
  51. */
  52. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_LENGTH_OFFSET 0x0000000000000000
  53. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_LENGTH_LSB 4
  54. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_LENGTH_MSB 15
  55. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_LENGTH_MASK 0x000000000000fff0
  56. /* Description RESERVED
  57. Reserved: Should be set to 0 by the transmitting MAC and
  58. ignored by the PHY <legal 0>
  59. */
  60. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RESERVED_OFFSET 0x0000000000000000
  61. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RESERVED_LSB 16
  62. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RESERVED_MSB 30
  63. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RESERVED_MASK 0x000000007fff0000
  64. /* Description RX_INTEGRITY_CHECK_PASSED
  65. TX side: Set to 0
  66. RX side: Set to 1 if PHY determines the .11b PHY header
  67. CRC check has passed, else set to 0
  68. <legal all>
  69. */
  70. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x0000000000000000
  71. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_LSB 31
  72. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_MSB 31
  73. #define PHYRX_L_SIG_B_PHYRX_L_SIG_B_INFO_DETAILS_RX_INTEGRITY_CHECK_PASSED_MASK 0x0000000080000000
  74. /* Description TLV64_PADDING
  75. Automatic DWORD padding inserted while converting TLV32
  76. to TLV64 for 64 bit ARCH
  77. <legal 0>
  78. */
  79. #define PHYRX_L_SIG_B_TLV64_PADDING_OFFSET 0x0000000000000000
  80. #define PHYRX_L_SIG_B_TLV64_PADDING_LSB 32
  81. #define PHYRX_L_SIG_B_TLV64_PADDING_MSB 63
  82. #define PHYRX_L_SIG_B_TLV64_PADDING_MASK 0xffffffff00000000
  83. #endif // PHYRX_L_SIG_B