rx_ppdu_start.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 _RX_PPDU_START_H_
  22. #define _RX_PPDU_START_H_
  23. #if !defined(__ASSEMBLER__)
  24. #endif
  25. // ################ START SUMMARY #################
  26. //
  27. // Dword Fields
  28. // 0 phy_ppdu_id[15:0], reserved_15[31:16]
  29. // 1 sw_phy_meta_data[31:0]
  30. // 2 ppdu_start_timestamp[31:0]
  31. //
  32. // ################ END SUMMARY #################
  33. #define NUM_OF_DWORDS_RX_PPDU_START 3
  34. struct rx_ppdu_start {
  35. uint32_t phy_ppdu_id : 16, //[15:0]
  36. reserved_15 : 16; //[31:16]
  37. uint32_t sw_phy_meta_data : 32; //[31:0]
  38. uint32_t ppdu_start_timestamp : 32; //[31:0]
  39. };
  40. /*
  41. phy_ppdu_id
  42. A ppdu counter value that PHY increments for every PPDU
  43. received. The counter value wraps around
  44. <legal all>
  45. reserved_15
  46. Reserved
  47. <legal 0>
  48. sw_phy_meta_data
  49. SW programmed Meta data provided by the PHY.
  50. Can be used for SW to indicate the channel the device is
  51. on.
  52. ppdu_start_timestamp
  53. Timestamp that indicates when the PPDU that contained
  54. this MPDU started on the medium.
  55. The timestamp is captured by the PHY and given to the
  56. MAC in PHYRX_RSSI_LEGACY.ppdu_start_timestamp
  57. <legal all>
  58. */
  59. /* Description RX_PPDU_START_0_PHY_PPDU_ID
  60. A ppdu counter value that PHY increments for every PPDU
  61. received. The counter value wraps around
  62. <legal all>
  63. */
  64. #define RX_PPDU_START_0_PHY_PPDU_ID_OFFSET 0x00000000
  65. #define RX_PPDU_START_0_PHY_PPDU_ID_LSB 0
  66. #define RX_PPDU_START_0_PHY_PPDU_ID_MASK 0x0000ffff
  67. /* Description RX_PPDU_START_0_RESERVED_15
  68. Reserved
  69. <legal 0>
  70. */
  71. #define RX_PPDU_START_0_RESERVED_15_OFFSET 0x00000000
  72. #define RX_PPDU_START_0_RESERVED_15_LSB 16
  73. #define RX_PPDU_START_0_RESERVED_15_MASK 0xffff0000
  74. /* Description RX_PPDU_START_1_SW_PHY_META_DATA
  75. SW programmed Meta data provided by the PHY.
  76. Can be used for SW to indicate the channel the device is
  77. on.
  78. */
  79. #define RX_PPDU_START_1_SW_PHY_META_DATA_OFFSET 0x00000004
  80. #define RX_PPDU_START_1_SW_PHY_META_DATA_LSB 0
  81. #define RX_PPDU_START_1_SW_PHY_META_DATA_MASK 0xffffffff
  82. /* Description RX_PPDU_START_2_PPDU_START_TIMESTAMP
  83. Timestamp that indicates when the PPDU that contained
  84. this MPDU started on the medium.
  85. The timestamp is captured by the PHY and given to the
  86. MAC in PHYRX_RSSI_LEGACY.ppdu_start_timestamp
  87. <legal all>
  88. */
  89. #define RX_PPDU_START_2_PPDU_START_TIMESTAMP_OFFSET 0x00000008
  90. #define RX_PPDU_START_2_PPDU_START_TIMESTAMP_LSB 0
  91. #define RX_PPDU_START_2_PPDU_START_TIMESTAMP_MASK 0xffffffff
  92. #endif // _RX_PPDU_START_H_