service_info.h 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 _SERVICE_INFO_H_
  16. #define _SERVICE_INFO_H_
  17. #if !defined(__ASSEMBLER__)
  18. #endif
  19. #define NUM_OF_DWORDS_SERVICE_INFO 1
  20. struct service_info {
  21. #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
  22. uint32_t scrambler_seed : 7, // [6:0]
  23. reserved : 1, // [7:7]
  24. sig_b_crc_user : 8, // [15:8]
  25. reserved_1 : 16; // [31:16]
  26. #else
  27. uint32_t reserved_1 : 16, // [31:16]
  28. sig_b_crc_user : 8, // [15:8]
  29. reserved : 1, // [7:7]
  30. scrambler_seed : 7; // [6:0]
  31. #endif
  32. };
  33. /* Description SCRAMBLER_SEED
  34. This field provides the 7-bit seed for the data scrambler.
  35. <legal all>
  36. */
  37. #define SERVICE_INFO_SCRAMBLER_SEED_OFFSET 0x00000000
  38. #define SERVICE_INFO_SCRAMBLER_SEED_LSB 0
  39. #define SERVICE_INFO_SCRAMBLER_SEED_MSB 6
  40. #define SERVICE_INFO_SCRAMBLER_SEED_MASK 0x0000007f
  41. /* Description RESERVED
  42. Reserved. Set to 0 by sender and ignored by receiver. <legal
  43. 0>
  44. */
  45. #define SERVICE_INFO_RESERVED_OFFSET 0x00000000
  46. #define SERVICE_INFO_RESERVED_LSB 7
  47. #define SERVICE_INFO_RESERVED_MSB 7
  48. #define SERVICE_INFO_RESERVED_MASK 0x00000080
  49. /* Description SIG_B_CRC_USER
  50. In case of vht transmission: vht_sig_b_crc_user
  51. <legal all>
  52. */
  53. #define SERVICE_INFO_SIG_B_CRC_USER_OFFSET 0x00000000
  54. #define SERVICE_INFO_SIG_B_CRC_USER_LSB 8
  55. #define SERVICE_INFO_SIG_B_CRC_USER_MSB 15
  56. #define SERVICE_INFO_SIG_B_CRC_USER_MASK 0x0000ff00
  57. /* Description RESERVED_1
  58. <legal 0>
  59. */
  60. #define SERVICE_INFO_RESERVED_1_OFFSET 0x00000000
  61. #define SERVICE_INFO_RESERVED_1_LSB 16
  62. #define SERVICE_INFO_RESERVED_1_MSB 31
  63. #define SERVICE_INFO_RESERVED_1_MASK 0xffff0000
  64. #endif // SERVICE_INFO