mactx_service.h 4.0 KB

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