service_info.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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,
  23. reserved : 1,
  24. sig_b_crc_user : 8,
  25. reserved_1 : 16;
  26. #else
  27. uint32_t reserved_1 : 16,
  28. sig_b_crc_user : 8,
  29. reserved : 1,
  30. scrambler_seed : 7;
  31. #endif
  32. };
  33. #define SERVICE_INFO_SCRAMBLER_SEED_OFFSET 0x00000000
  34. #define SERVICE_INFO_SCRAMBLER_SEED_LSB 0
  35. #define SERVICE_INFO_SCRAMBLER_SEED_MSB 6
  36. #define SERVICE_INFO_SCRAMBLER_SEED_MASK 0x0000007f
  37. #define SERVICE_INFO_RESERVED_OFFSET 0x00000000
  38. #define SERVICE_INFO_RESERVED_LSB 7
  39. #define SERVICE_INFO_RESERVED_MSB 7
  40. #define SERVICE_INFO_RESERVED_MASK 0x00000080
  41. #define SERVICE_INFO_SIG_B_CRC_USER_OFFSET 0x00000000
  42. #define SERVICE_INFO_SIG_B_CRC_USER_LSB 8
  43. #define SERVICE_INFO_SIG_B_CRC_USER_MSB 15
  44. #define SERVICE_INFO_SIG_B_CRC_USER_MASK 0x0000ff00
  45. #define SERVICE_INFO_RESERVED_1_OFFSET 0x00000000
  46. #define SERVICE_INFO_RESERVED_1_LSB 16
  47. #define SERVICE_INFO_RESERVED_1_MSB 31
  48. #define SERVICE_INFO_RESERVED_1_MASK 0xffff0000
  49. #endif