tlv_hdr.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Copyright (c) 2016 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. // $ATH_LICENSE_HW_HDR_C$
  19. //
  20. // DO NOT EDIT! This file is automatically generated
  21. // These definitions are tied to a particular hardware layout
  22. #ifndef _TLV_HDR_H_
  23. #define _TLV_HDR_H_
  24. #if !defined(__ASSEMBLER__)
  25. #endif
  26. struct tlv_usr_16_hdr {
  27. volatile uint16_t tlv_cflg_reserved : 1,
  28. tlv_tag : 5,
  29. tlv_len : 4,
  30. tlv_usrid : 6;
  31. };
  32. struct tlv_16_hdr {
  33. volatile uint16_t tlv_cflg_reserved : 1,
  34. tlv_tag : 5,
  35. tlv_len : 4,
  36. tlv_reserved : 6;
  37. };
  38. struct tlv_usr_32_hdr {
  39. volatile uint32_t tlv_cflg_reserved : 1,
  40. tlv_tag : 9,
  41. tlv_len : 16,
  42. tlv_usrid : 6;
  43. };
  44. struct tlv_32_hdr {
  45. volatile uint32_t tlv_cflg_reserved : 1,
  46. tlv_tag : 9,
  47. tlv_len : 16,
  48. tlv_reserved : 6;
  49. };
  50. struct tlv_usr_42_hdr {
  51. volatile uint64_t tlv_compression : 1,
  52. tlv_tag : 9,
  53. tlv_len : 16,
  54. tlv_usrid : 6,
  55. tlv_reserved : 10,
  56. pad_42to64_bit : 22;
  57. };
  58. struct tlv_42_hdr {
  59. volatile uint64_t tlv_compression : 1,
  60. tlv_tag : 9,
  61. tlv_len : 16,
  62. tlv_reserved : 16,
  63. pad_42to64_bit : 22;
  64. };
  65. struct tlv_usr_c_42_hdr {
  66. volatile uint64_t tlv_compression : 1,
  67. tlv_ctag : 3,
  68. tlv_usrid : 6,
  69. tlv_cdata : 32,
  70. pad_42to64_bit : 22;
  71. };
  72. #endif