rx_ppdu_start.h 3.8 KB

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