tx_flush_req.h 4.2 KB

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