tlv_hdr.h 3.1 KB

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