summaryrefslogtreecommitdiff
path: root/hsspi_coredump.h
diff options
context:
space:
mode:
authorVictor Liu <victorliu@google.com>2024-01-23 12:11:45 -0800
committerCherrypicker Worker QA <android-build-cherrypicker-worker@system.gserviceaccount.com>2024-01-26 16:32:18 +0000
commitd6ba9826149e0b866bb7cb3941f779792c5346e2 (patch)
tree3eb1567a49d00c80f7da835017274ca3b8ad1697 /hsspi_coredump.h
parentba464ee86a61e4db307dea64cecc118a1f6b5706 (diff)
downloadqm35-d6ba9826149e0b866bb7cb3941f779792c5346e2.tar.gz
merge partner-android/kernel/private/google-modules/uwb:android14-gs-pixel-6.1-zuma-pro @ 42cac21da18a20d29eca83be028a902c579df339
Bug: 316022384 Signed-off-by: Victor Liu <victorliu@google.com> (cherry picked from https://partner-android-review.googlesource.com/q/commit:c8831dc674f0fdacc042eba3323ac6b2c61a5233) Merged-In: Ie94435c181e387ef701485781f9ce841093496dc Change-Id: Ie94435c181e387ef701485781f9ce841093496dc
Diffstat (limited to 'hsspi_coredump.h')
-rw-r--r--hsspi_coredump.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/hsspi_coredump.h b/hsspi_coredump.h
new file mode 100644
index 0000000..c7403fc
--- /dev/null
+++ b/hsspi_coredump.h
@@ -0,0 +1,55 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+/*
+ * This file is part of the QM35 UCI stack for linux.
+ *
+ * Copyright (c) 2022 Qorvo US, Inc.
+ *
+ * This software is provided under the GNU General Public License, version 2
+ * (GPLv2), as well as under a Qorvo commercial license.
+ *
+ * You may choose to use this software under the terms of the GPLv2 License,
+ * version 2 ("GPLv2"), as published by the Free Software Foundation.
+ * You should have received a copy of the GPLv2 along with this program. If
+ * not, see <http://www.gnu.org/licenses/>.
+ *
+ * This program is distributed under the GPLv2 in the hope that it will be
+ * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GPLv2 for more
+ * details.
+ *
+ * If you cannot meet the requirements of the GPLv2, you may not use this
+ * software for any purpose without first obtaining a commercial license from
+ * Qorvo.
+ * Please contact Qorvo to inquire about licensing terms.
+ *
+ * QM35 COREDUMP layer HSSPI Protocol
+ */
+
+#ifndef __HSSPI_COREDUMP_H__
+#define __HSSPI_COREDUMP_H__
+
+#include <linux/mutex.h>
+#include <linux/sched.h>
+
+#include "hsspi.h"
+#include "debug.h"
+
+struct coredump_packet {
+ struct hsspi_block blk;
+};
+
+struct coredump_layer {
+ struct hsspi_layer hlayer;
+ void *coredump_data;
+ uint32_t coredump_data_wr_idx;
+ uint32_t coredump_size;
+ uint16_t coredump_crc;
+ uint8_t coredump_status;
+ struct timer_list timer;
+};
+
+int coredump_layer_init(struct coredump_layer *coredump, struct debug *debug);
+void coredump_layer_deinit(struct coredump_layer *coredump);
+
+#endif // __HSSPI_COREDUMP_H__