rx_trig_info.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. 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. #ifndef _RX_TRIG_INFO_H_
  17. #define _RX_TRIG_INFO_H_
  18. #define NUM_OF_DWORDS_RX_TRIG_INFO 2
  19. struct rx_trig_info {
  20. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  21. uint32_t rx_trigger_frame_type : 2,
  22. trigger_resp_type : 3,
  23. reserved_0 : 27;
  24. uint32_t ppdu_duration : 16,
  25. unique_destination_id : 16;
  26. #else
  27. uint32_t reserved_0 : 27,
  28. trigger_resp_type : 3,
  29. rx_trigger_frame_type : 2;
  30. uint32_t unique_destination_id : 16,
  31. ppdu_duration : 16;
  32. #endif
  33. };
  34. #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_OFFSET 0x00000000
  35. #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_LSB 0
  36. #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_MSB 1
  37. #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_MASK 0x00000003
  38. #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_OFFSET 0x00000000
  39. #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_LSB 2
  40. #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_MSB 4
  41. #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_MASK 0x0000001c
  42. #define RX_TRIG_INFO_RESERVED_0_OFFSET 0x00000000
  43. #define RX_TRIG_INFO_RESERVED_0_LSB 5
  44. #define RX_TRIG_INFO_RESERVED_0_MSB 31
  45. #define RX_TRIG_INFO_RESERVED_0_MASK 0xffffffe0
  46. #define RX_TRIG_INFO_PPDU_DURATION_OFFSET 0x00000004
  47. #define RX_TRIG_INFO_PPDU_DURATION_LSB 0
  48. #define RX_TRIG_INFO_PPDU_DURATION_MSB 15
  49. #define RX_TRIG_INFO_PPDU_DURATION_MASK 0x0000ffff
  50. #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_OFFSET 0x00000004
  51. #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_LSB 16
  52. #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_MSB 31
  53. #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_MASK 0xffff0000
  54. #endif