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