forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/wireless/ath/ath10k/coredump.h
....@@ -1,17 +1,6 @@
1
+/* SPDX-License-Identifier: ISC */
12 /*
23 * 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.
154 */
165
176 #ifndef _COREDUMP_H_
....@@ -99,7 +88,7 @@
9988 u8 unused[128];
10089
10190 /* struct ath10k_tlv_dump_data + more */
102
- u8 data[0];
91
+ u8 data[];
10392 } __packed;
10493
10594 struct ath10k_dump_ram_data_hdr {
....@@ -111,7 +100,7 @@
111100 /* length of payload data, not including this header */
112101 __le32 length;
113102
114
- u8 data[0];
103
+ u8 data[];
115104 };
116105
117106 /* magic number to fill the holes not copied due to sections in regions */
....@@ -126,6 +115,7 @@
126115 ATH10K_MEM_REGION_TYPE_IRAM2 = 5,
127116 ATH10K_MEM_REGION_TYPE_IOSRAM = 6,
128117 ATH10K_MEM_REGION_TYPE_IOREG = 7,
118
+ ATH10K_MEM_REGION_TYPE_MSA = 8,
129119 };
130120
131121 /* Define a section of the region which should be copied. As not all parts
....@@ -165,6 +155,8 @@
165155 */
166156 struct ath10k_hw_mem_layout {
167157 u32 hw_id;
158
+ u32 hw_rev;
159
+ enum ath10k_bus bus;
168160
169161 struct {
170162 const struct ath10k_mem_region *regions;