rx_trig_info.h 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 _RX_TRIG_INFO_H_
  16. #define _RX_TRIG_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_RX_TRIG_INFO 2
  20. #define NUM_OF_QWORDS_RX_TRIG_INFO 1
  21. struct rx_trig_info {
  22. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  23. uint32_t rx_trigger_frame_type : 2,
  24. trigger_resp_type : 3,
  25. reserved_0 : 27;
  26. uint32_t ppdu_duration : 16,
  27. unique_destination_id : 16;
  28. #else
  29. uint32_t reserved_0 : 27,
  30. trigger_resp_type : 3,
  31. rx_trigger_frame_type : 2;
  32. uint32_t unique_destination_id : 16,
  33. ppdu_duration : 16;
  34. #endif
  35. };
  36. #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_OFFSET 0x0000000000000000
  37. #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_LSB 0
  38. #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_MSB 1
  39. #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_MASK 0x0000000000000003
  40. #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_OFFSET 0x0000000000000000
  41. #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_LSB 2
  42. #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_MSB 4
  43. #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_MASK 0x000000000000001c
  44. #define RX_TRIG_INFO_RESERVED_0_OFFSET 0x0000000000000000
  45. #define RX_TRIG_INFO_RESERVED_0_LSB 5
  46. #define RX_TRIG_INFO_RESERVED_0_MSB 31
  47. #define RX_TRIG_INFO_RESERVED_0_MASK 0x00000000ffffffe0
  48. #define RX_TRIG_INFO_PPDU_DURATION_OFFSET 0x0000000000000000
  49. #define RX_TRIG_INFO_PPDU_DURATION_LSB 32
  50. #define RX_TRIG_INFO_PPDU_DURATION_MSB 47
  51. #define RX_TRIG_INFO_PPDU_DURATION_MASK 0x0000ffff00000000
  52. #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_OFFSET 0x0000000000000000
  53. #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_LSB 48
  54. #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_MSB 63
  55. #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_MASK 0xffff000000000000
  56. #endif