phyrx_abort_request_info.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
  3. * SPDX-License-Identifier: ISC
  4. */
  5. #ifndef _PHYRX_ABORT_REQUEST_INFO_H_
  6. #define _PHYRX_ABORT_REQUEST_INFO_H_
  7. #if !defined(__ASSEMBLER__)
  8. #endif
  9. #define NUM_OF_DWORDS_PHYRX_ABORT_REQUEST_INFO 1
  10. struct phyrx_abort_request_info {
  11. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  12. uint32_t phyrx_abort_reason : 8,
  13. phy_enters_nap_state : 1,
  14. phy_enters_defer_state : 1,
  15. reserved_0 : 6,
  16. receive_duration : 16;
  17. #else
  18. uint32_t receive_duration : 16,
  19. reserved_0 : 6,
  20. phy_enters_defer_state : 1,
  21. phy_enters_nap_state : 1,
  22. phyrx_abort_reason : 8;
  23. #endif
  24. };
  25. #define PHYRX_ABORT_REQUEST_INFO_PHYRX_ABORT_REASON_OFFSET 0x00000000
  26. #define PHYRX_ABORT_REQUEST_INFO_PHYRX_ABORT_REASON_LSB 0
  27. #define PHYRX_ABORT_REQUEST_INFO_PHYRX_ABORT_REASON_MSB 7
  28. #define PHYRX_ABORT_REQUEST_INFO_PHYRX_ABORT_REASON_MASK 0x000000ff
  29. #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_NAP_STATE_OFFSET 0x00000000
  30. #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_NAP_STATE_LSB 8
  31. #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_NAP_STATE_MSB 8
  32. #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_NAP_STATE_MASK 0x00000100
  33. #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_DEFER_STATE_OFFSET 0x00000000
  34. #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_DEFER_STATE_LSB 9
  35. #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_DEFER_STATE_MSB 9
  36. #define PHYRX_ABORT_REQUEST_INFO_PHY_ENTERS_DEFER_STATE_MASK 0x00000200
  37. #define PHYRX_ABORT_REQUEST_INFO_RESERVED_0_OFFSET 0x00000000
  38. #define PHYRX_ABORT_REQUEST_INFO_RESERVED_0_LSB 10
  39. #define PHYRX_ABORT_REQUEST_INFO_RESERVED_0_MSB 15
  40. #define PHYRX_ABORT_REQUEST_INFO_RESERVED_0_MASK 0x0000fc00
  41. #define PHYRX_ABORT_REQUEST_INFO_RECEIVE_DURATION_OFFSET 0x00000000
  42. #define PHYRX_ABORT_REQUEST_INFO_RECEIVE_DURATION_LSB 16
  43. #define PHYRX_ABORT_REQUEST_INFO_RECEIVE_DURATION_MSB 31
  44. #define PHYRX_ABORT_REQUEST_INFO_RECEIVE_DURATION_MASK 0xffff0000
  45. #endif