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