tlv_hdr.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright (c) 2020 The Linux Foundation. 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. // $ATH_LICENSE_HW_HDR_C$
  17. //
  18. // DO NOT EDIT! This file is automatically generated
  19. // These definitions are tied to a particular hardware layout
  20. #ifndef _TLV_HDR_H_
  21. #define _TLV_HDR_H_
  22. #if !defined(__ASSEMBLER__)
  23. #endif
  24. struct tlv_usr_16_hdr {
  25. volatile uint16_t tlv_cflg_reserved : 1,
  26. tlv_tag : 5,
  27. tlv_len : 4,
  28. tlv_usrid : 6;
  29. };
  30. struct tlv_16_hdr {
  31. volatile uint16_t tlv_cflg_reserved : 1,
  32. tlv_tag : 5,
  33. tlv_len : 4,
  34. tlv_reserved : 6;
  35. };
  36. struct tlv_usr_32_hdr {
  37. volatile uint32_t tlv_cflg_reserved : 1,
  38. tlv_tag : 9,
  39. tlv_len : 16,
  40. tlv_usrid : 6;
  41. };
  42. struct tlv_32_hdr {
  43. volatile uint32_t tlv_cflg_reserved : 1,
  44. tlv_tag : 9,
  45. tlv_len : 16,
  46. tlv_reserved : 6;
  47. };
  48. struct tlv_usr_42_hdr {
  49. volatile uint64_t tlv_compression : 1,
  50. tlv_tag : 9,
  51. tlv_len : 16,
  52. tlv_usrid : 6,
  53. tlv_reserved : 10,
  54. pad_42to64_bit : 22;
  55. };
  56. struct tlv_42_hdr {
  57. volatile uint64_t tlv_compression : 1,
  58. tlv_tag : 9,
  59. tlv_len : 16,
  60. tlv_reserved : 16,
  61. pad_42to64_bit : 22;
  62. };
  63. struct tlv_usr_c_42_hdr {
  64. volatile uint64_t tlv_compression : 1,
  65. tlv_ctag : 3,
  66. tlv_usrid : 6,
  67. tlv_cdata : 32,
  68. pad_42to64_bit : 22;
  69. };
  70. #endif