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