l_sig_b_info.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. * Copyright (c) 2019 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. //
  19. // DO NOT EDIT! This file is automatically generated
  20. // These definitions are tied to a particular hardware layout
  21. #ifndef _L_SIG_B_INFO_H_
  22. #define _L_SIG_B_INFO_H_
  23. #if !defined(__ASSEMBLER__)
  24. #endif
  25. // ################ START SUMMARY #################
  26. //
  27. // Dword Fields
  28. // 0 rate[3:0], length[15:4], reserved[31:16]
  29. //
  30. // ################ END SUMMARY #################
  31. #define NUM_OF_DWORDS_L_SIG_B_INFO 1
  32. struct l_sig_b_info {
  33. uint32_t rate : 4, //[3:0]
  34. length : 12, //[15:4]
  35. reserved : 16; //[31:16]
  36. };
  37. /*
  38. rate
  39. <enum 1 dsss_1_mpbs_long> DSSS 1 Mbps long
  40. <enum 2 dsss_2_mbps_long> DSSS 2 Mbps long
  41. <enum 3 cck_5_5_mbps_long> CCK 5.5 Mbps long
  42. <enum 4 cck_11_mbps_long> CCK 11 Mbps long
  43. <enum 5 dsss_2_mbps_short> DSSS 2 Mbps short
  44. <enum 6 cck_5_5_mbps_short> CCK 5.5 Mbps short
  45. <enum 7 cck_11_mbps_short> CCK 11 Mbps short
  46. <legal 1-7>
  47. length
  48. The length indicates the number of octets in this MPDU.
  49. <legal all>
  50. reserved
  51. Reserved: Should be set to 0 by the transmitting MAC and
  52. ignored by the PHY <legal 0>
  53. */
  54. /* Description L_SIG_B_INFO_0_RATE
  55. <enum 1 dsss_1_mpbs_long> DSSS 1 Mbps long
  56. <enum 2 dsss_2_mbps_long> DSSS 2 Mbps long
  57. <enum 3 cck_5_5_mbps_long> CCK 5.5 Mbps long
  58. <enum 4 cck_11_mbps_long> CCK 11 Mbps long
  59. <enum 5 dsss_2_mbps_short> DSSS 2 Mbps short
  60. <enum 6 cck_5_5_mbps_short> CCK 5.5 Mbps short
  61. <enum 7 cck_11_mbps_short> CCK 11 Mbps short
  62. <legal 1-7>
  63. */
  64. #define L_SIG_B_INFO_0_RATE_OFFSET 0x00000000
  65. #define L_SIG_B_INFO_0_RATE_LSB 0
  66. #define L_SIG_B_INFO_0_RATE_MASK 0x0000000f
  67. /* Description L_SIG_B_INFO_0_LENGTH
  68. The length indicates the number of octets in this MPDU.
  69. <legal all>
  70. */
  71. #define L_SIG_B_INFO_0_LENGTH_OFFSET 0x00000000
  72. #define L_SIG_B_INFO_0_LENGTH_LSB 4
  73. #define L_SIG_B_INFO_0_LENGTH_MASK 0x0000fff0
  74. /* Description L_SIG_B_INFO_0_RESERVED
  75. Reserved: Should be set to 0 by the transmitting MAC and
  76. ignored by the PHY <legal 0>
  77. */
  78. #define L_SIG_B_INFO_0_RESERVED_OFFSET 0x00000000
  79. #define L_SIG_B_INFO_0_RESERVED_LSB 16
  80. #define L_SIG_B_INFO_0_RESERVED_MASK 0xffff0000
  81. #endif // _L_SIG_B_INFO_H_