| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: ISC */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. |
|---|
| 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 | 4 | */ |
|---|
| 16 | 5 | |
|---|
| 17 | 6 | #ifndef _COREDUMP_H_ |
|---|
| .. | .. |
|---|
| 99 | 88 | u8 unused[128]; |
|---|
| 100 | 89 | |
|---|
| 101 | 90 | /* struct ath10k_tlv_dump_data + more */ |
|---|
| 102 | | - u8 data[0]; |
|---|
| 91 | + u8 data[]; |
|---|
| 103 | 92 | } __packed; |
|---|
| 104 | 93 | |
|---|
| 105 | 94 | struct ath10k_dump_ram_data_hdr { |
|---|
| .. | .. |
|---|
| 111 | 100 | /* length of payload data, not including this header */ |
|---|
| 112 | 101 | __le32 length; |
|---|
| 113 | 102 | |
|---|
| 114 | | - u8 data[0]; |
|---|
| 103 | + u8 data[]; |
|---|
| 115 | 104 | }; |
|---|
| 116 | 105 | |
|---|
| 117 | 106 | /* magic number to fill the holes not copied due to sections in regions */ |
|---|
| .. | .. |
|---|
| 126 | 115 | ATH10K_MEM_REGION_TYPE_IRAM2 = 5, |
|---|
| 127 | 116 | ATH10K_MEM_REGION_TYPE_IOSRAM = 6, |
|---|
| 128 | 117 | ATH10K_MEM_REGION_TYPE_IOREG = 7, |
|---|
| 118 | + ATH10K_MEM_REGION_TYPE_MSA = 8, |
|---|
| 129 | 119 | }; |
|---|
| 130 | 120 | |
|---|
| 131 | 121 | /* Define a section of the region which should be copied. As not all parts |
|---|
| .. | .. |
|---|
| 165 | 155 | */ |
|---|
| 166 | 156 | struct ath10k_hw_mem_layout { |
|---|
| 167 | 157 | u32 hw_id; |
|---|
| 158 | + u32 hw_rev; |
|---|
| 159 | + enum ath10k_bus bus; |
|---|
| 168 | 160 | |
|---|
| 169 | 161 | struct { |
|---|
| 170 | 162 | const struct ath10k_mem_region *regions; |
|---|