summaryrefslogtreecommitdiff
path: root/sound/soc/sof/starfive/starfive-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/sof/starfive/starfive-common.h')
-rw-r--r--sound/soc/sof/starfive/starfive-common.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sound/soc/sof/starfive/starfive-common.h b/sound/soc/sof/starfive/starfive-common.h
new file mode 100644
index 000000000000..300164dee6e9
--- /dev/null
+++ b/sound/soc/sof/starfive/starfive-common.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
+
+#ifndef __STARFIVE_COMMON_H__
+#define __STARFIVE_COMMON_H__
+
+#define EXCEPT_MAX_HDR_SIZE 0x400
+#define IMX8_STACK_DUMP_SIZE 32
+
+void jh7110_get_registers(struct snd_sof_dev *sdev,
+ struct sof_ipc_dsp_oops_xtensa *xoops,
+ struct sof_ipc_panic_info *panic_info,
+ u32 *stack, size_t stack_words);
+
+void jh7110_dump(struct snd_sof_dev *sdev, u32 flags);
+
+#endif