mactx_service.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 _MACTX_SERVICE_H_
  16. #define _MACTX_SERVICE_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #include "service_info.h"
  20. #define NUM_OF_DWORDS_MACTX_SERVICE 2
  21. #define NUM_OF_QWORDS_MACTX_SERVICE 1
  22. struct mactx_service {
  23. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  24. struct service_info mactx_service_info_details;
  25. uint32_t tlv64_padding : 32; // [31:0]
  26. #else
  27. struct service_info mactx_service_info_details;
  28. uint32_t tlv64_padding : 32; // [31:0]
  29. #endif
  30. };
  31. /* Description MACTX_SERVICE_INFO_DETAILS
  32. See detailed description of the STRUCT.
  33. In case of EHT, instead of 'SERVICE_INFO' the STRUCT 'EHT_SERVICE_INFO'
  34. is used. See detailed description of the STRUCT.
  35. */
  36. /* Description SCRAMBLER_SEED
  37. This field provides the 7-bit seed for the data scrambler.
  38. <legal all>
  39. */
  40. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SCRAMBLER_SEED_OFFSET 0x0000000000000000
  41. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SCRAMBLER_SEED_LSB 0
  42. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SCRAMBLER_SEED_MSB 6
  43. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SCRAMBLER_SEED_MASK 0x000000000000007f
  44. /* Description RESERVED
  45. Reserved. Set to 0 by sender and ignored by receiver. <legal
  46. 0>
  47. */
  48. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_OFFSET 0x0000000000000000
  49. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_LSB 7
  50. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_MSB 7
  51. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_MASK 0x0000000000000080
  52. /* Description SIG_B_CRC_USER
  53. In case of vht transmission: vht_sig_b_crc_user
  54. <legal all>
  55. */
  56. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SIG_B_CRC_USER_OFFSET 0x0000000000000000
  57. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SIG_B_CRC_USER_LSB 8
  58. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SIG_B_CRC_USER_MSB 15
  59. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_SIG_B_CRC_USER_MASK 0x000000000000ff00
  60. /* Description RESERVED_1
  61. <legal 0>
  62. */
  63. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_1_OFFSET 0x0000000000000000
  64. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_1_LSB 16
  65. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_1_MSB 31
  66. #define MACTX_SERVICE_MACTX_SERVICE_INFO_DETAILS_RESERVED_1_MASK 0x00000000ffff0000
  67. /* Description TLV64_PADDING
  68. Automatic DWORD padding inserted while converting TLV32
  69. to TLV64 for 64 bit ARCH
  70. <legal 0>
  71. */
  72. #define MACTX_SERVICE_TLV64_PADDING_OFFSET 0x0000000000000000
  73. #define MACTX_SERVICE_TLV64_PADDING_LSB 32
  74. #define MACTX_SERVICE_TLV64_PADDING_MSB 63
  75. #define MACTX_SERVICE_TLV64_PADDING_MASK 0xffffffff00000000
  76. #endif // MACTX_SERVICE