vht_sig_b_su40_info.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*
  2. * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
  3. * SPDX-License-Identifier: ISC
  4. */
  5. #ifndef _VHT_SIG_B_SU40_INFO_H_
  6. #define _VHT_SIG_B_SU40_INFO_H_
  7. #if !defined(__ASSEMBLER__)
  8. #endif
  9. #define NUM_OF_DWORDS_VHT_SIG_B_SU40_INFO 2
  10. struct vht_sig_b_su40_info {
  11. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  12. uint32_t length : 19,
  13. vhtb_reserved : 2,
  14. tail : 6,
  15. reserved : 4,
  16. rx_ndp : 1;
  17. uint32_t length_copy : 19,
  18. vhtb_reserved_copy : 2,
  19. tail_copy : 6,
  20. reserved_copy : 4,
  21. rx_ndp_copy : 1;
  22. #else
  23. uint32_t rx_ndp : 1,
  24. reserved : 4,
  25. tail : 6,
  26. vhtb_reserved : 2,
  27. length : 19;
  28. uint32_t rx_ndp_copy : 1,
  29. reserved_copy : 4,
  30. tail_copy : 6,
  31. vhtb_reserved_copy : 2,
  32. length_copy : 19;
  33. #endif
  34. };
  35. #define VHT_SIG_B_SU40_INFO_LENGTH_OFFSET 0x00000000
  36. #define VHT_SIG_B_SU40_INFO_LENGTH_LSB 0
  37. #define VHT_SIG_B_SU40_INFO_LENGTH_MSB 18
  38. #define VHT_SIG_B_SU40_INFO_LENGTH_MASK 0x0007ffff
  39. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_OFFSET 0x00000000
  40. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_LSB 19
  41. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MSB 20
  42. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MASK 0x00180000
  43. #define VHT_SIG_B_SU40_INFO_TAIL_OFFSET 0x00000000
  44. #define VHT_SIG_B_SU40_INFO_TAIL_LSB 21
  45. #define VHT_SIG_B_SU40_INFO_TAIL_MSB 26
  46. #define VHT_SIG_B_SU40_INFO_TAIL_MASK 0x07e00000
  47. #define VHT_SIG_B_SU40_INFO_RESERVED_OFFSET 0x00000000
  48. #define VHT_SIG_B_SU40_INFO_RESERVED_LSB 27
  49. #define VHT_SIG_B_SU40_INFO_RESERVED_MSB 30
  50. #define VHT_SIG_B_SU40_INFO_RESERVED_MASK 0x78000000
  51. #define VHT_SIG_B_SU40_INFO_RX_NDP_OFFSET 0x00000000
  52. #define VHT_SIG_B_SU40_INFO_RX_NDP_LSB 31
  53. #define VHT_SIG_B_SU40_INFO_RX_NDP_MSB 31
  54. #define VHT_SIG_B_SU40_INFO_RX_NDP_MASK 0x80000000
  55. #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_OFFSET 0x00000004
  56. #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_LSB 0
  57. #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MSB 18
  58. #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MASK 0x0007ffff
  59. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_OFFSET 0x00000004
  60. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_LSB 19
  61. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MSB 20
  62. #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MASK 0x00180000
  63. #define VHT_SIG_B_SU40_INFO_TAIL_COPY_OFFSET 0x00000004
  64. #define VHT_SIG_B_SU40_INFO_TAIL_COPY_LSB 21
  65. #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MSB 26
  66. #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MASK 0x07e00000
  67. #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_OFFSET 0x00000004
  68. #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_LSB 27
  69. #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MSB 30
  70. #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MASK 0x78000000
  71. #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_OFFSET 0x00000004
  72. #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_LSB 31
  73. #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MSB 31
  74. #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MASK 0x80000000
  75. #endif