tx_flush_req.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (c) 2023-2024 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 _TX_FLUSH_REQ_H_
  17. #define _TX_FLUSH_REQ_H_
  18. #define NUM_OF_DWORDS_TX_FLUSH_REQ 1
  19. struct tx_flush_req {
  20. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  21. uint32_t flush_req_reason : 8,
  22. phytx_abort_reason : 8,
  23. flush_req_user_number_or_link_id : 6,
  24. mlo_abort_reason : 5,
  25. reserved_0a : 5;
  26. #else
  27. uint32_t reserved_0a : 5,
  28. mlo_abort_reason : 5,
  29. flush_req_user_number_or_link_id : 6,
  30. phytx_abort_reason : 8,
  31. flush_req_reason : 8;
  32. #endif
  33. };
  34. #define TX_FLUSH_REQ_FLUSH_REQ_REASON_OFFSET 0x00000000
  35. #define TX_FLUSH_REQ_FLUSH_REQ_REASON_LSB 0
  36. #define TX_FLUSH_REQ_FLUSH_REQ_REASON_MSB 7
  37. #define TX_FLUSH_REQ_FLUSH_REQ_REASON_MASK 0x000000ff
  38. #define TX_FLUSH_REQ_PHYTX_ABORT_REASON_OFFSET 0x00000000
  39. #define TX_FLUSH_REQ_PHYTX_ABORT_REASON_LSB 8
  40. #define TX_FLUSH_REQ_PHYTX_ABORT_REASON_MSB 15
  41. #define TX_FLUSH_REQ_PHYTX_ABORT_REASON_MASK 0x0000ff00
  42. #define TX_FLUSH_REQ_FLUSH_REQ_USER_NUMBER_OR_LINK_ID_OFFSET 0x00000000
  43. #define TX_FLUSH_REQ_FLUSH_REQ_USER_NUMBER_OR_LINK_ID_LSB 16
  44. #define TX_FLUSH_REQ_FLUSH_REQ_USER_NUMBER_OR_LINK_ID_MSB 21
  45. #define TX_FLUSH_REQ_FLUSH_REQ_USER_NUMBER_OR_LINK_ID_MASK 0x003f0000
  46. #define TX_FLUSH_REQ_MLO_ABORT_REASON_OFFSET 0x00000000
  47. #define TX_FLUSH_REQ_MLO_ABORT_REASON_LSB 22
  48. #define TX_FLUSH_REQ_MLO_ABORT_REASON_MSB 26
  49. #define TX_FLUSH_REQ_MLO_ABORT_REASON_MASK 0x07c00000
  50. #define TX_FLUSH_REQ_RESERVED_0A_OFFSET 0x00000000
  51. #define TX_FLUSH_REQ_RESERVED_0A_LSB 27
  52. #define TX_FLUSH_REQ_RESERVED_0A_MSB 31
  53. #define TX_FLUSH_REQ_RESERVED_0A_MASK 0xf8000000
  54. #endif