tx_flush_req.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 _TX_FLUSH_REQ_H_
  16. #define _TX_FLUSH_REQ_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_TX_FLUSH_REQ 2
  20. #define NUM_OF_QWORDS_TX_FLUSH_REQ 1
  21. struct tx_flush_req {
  22. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  23. uint32_t flush_req_reason : 8,
  24. phytx_abort_reason : 8,
  25. flush_req_user_number_or_link_id : 6,
  26. mlo_abort_reason : 5,
  27. reserved_0a : 5;
  28. uint32_t tlv64_padding : 32;
  29. #else
  30. uint32_t reserved_0a : 5,
  31. mlo_abort_reason : 5,
  32. flush_req_user_number_or_link_id : 6,
  33. phytx_abort_reason : 8,
  34. flush_req_reason : 8;
  35. uint32_t tlv64_padding : 32;
  36. #endif
  37. };
  38. #define TX_FLUSH_REQ_FLUSH_REQ_REASON_OFFSET 0x0000000000000000
  39. #define TX_FLUSH_REQ_FLUSH_REQ_REASON_LSB 0
  40. #define TX_FLUSH_REQ_FLUSH_REQ_REASON_MSB 7
  41. #define TX_FLUSH_REQ_FLUSH_REQ_REASON_MASK 0x00000000000000ff
  42. #define TX_FLUSH_REQ_PHYTX_ABORT_REASON_OFFSET 0x0000000000000000
  43. #define TX_FLUSH_REQ_PHYTX_ABORT_REASON_LSB 8
  44. #define TX_FLUSH_REQ_PHYTX_ABORT_REASON_MSB 15
  45. #define TX_FLUSH_REQ_PHYTX_ABORT_REASON_MASK 0x000000000000ff00
  46. #define TX_FLUSH_REQ_FLUSH_REQ_USER_NUMBER_OR_LINK_ID_OFFSET 0x0000000000000000
  47. #define TX_FLUSH_REQ_FLUSH_REQ_USER_NUMBER_OR_LINK_ID_LSB 16
  48. #define TX_FLUSH_REQ_FLUSH_REQ_USER_NUMBER_OR_LINK_ID_MSB 21
  49. #define TX_FLUSH_REQ_FLUSH_REQ_USER_NUMBER_OR_LINK_ID_MASK 0x00000000003f0000
  50. #define TX_FLUSH_REQ_MLO_ABORT_REASON_OFFSET 0x0000000000000000
  51. #define TX_FLUSH_REQ_MLO_ABORT_REASON_LSB 22
  52. #define TX_FLUSH_REQ_MLO_ABORT_REASON_MSB 26
  53. #define TX_FLUSH_REQ_MLO_ABORT_REASON_MASK 0x0000000007c00000
  54. #define TX_FLUSH_REQ_RESERVED_0A_OFFSET 0x0000000000000000
  55. #define TX_FLUSH_REQ_RESERVED_0A_LSB 27
  56. #define TX_FLUSH_REQ_RESERVED_0A_MSB 31
  57. #define TX_FLUSH_REQ_RESERVED_0A_MASK 0x00000000f8000000
  58. #define TX_FLUSH_REQ_TLV64_PADDING_OFFSET 0x0000000000000000
  59. #define TX_FLUSH_REQ_TLV64_PADDING_LSB 32
  60. #define TX_FLUSH_REQ_TLV64_PADDING_MSB 63
  61. #define TX_FLUSH_REQ_TLV64_PADDING_MASK 0xffffffff00000000
  62. #endif