sof-priv.h (25b17da691f3c1a7cc433f864fd4845998a5a37a) | sof-priv.h (1dedbe4f223cac603e871d91133b9aa3136fbc21) |
---|---|
1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 2/* 3 * This file is provided under a dual BSD/GPLv2 license. When using or 4 * redistributing this file, you may do so under either license. 5 * 6 * Copyright(c) 2018 Intel Corporation. All rights reserved. 7 * 8 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> --- 646 unchanged lines hidden (view full) --- 655{ 656 snd_sof_ipc_get_reply(sdev); 657 snd_sof_ipc_reply(sdev, msg_id); 658} 659 660/* 661 * Trace/debug 662 */ | 1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 2/* 3 * This file is provided under a dual BSD/GPLv2 license. When using or 4 * redistributing this file, you may do so under either license. 5 * 6 * Copyright(c) 2018 Intel Corporation. All rights reserved. 7 * 8 * Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> --- 646 unchanged lines hidden (view full) --- 655{ 656 snd_sof_ipc_get_reply(sdev); 657 snd_sof_ipc_reply(sdev, msg_id); 658} 659 660/* 661 * Trace/debug 662 */ |
663int snd_sof_init_trace(struct snd_sof_dev *sdev); 664void snd_sof_free_trace(struct snd_sof_dev *sdev); | |
665int snd_sof_dbg_init(struct snd_sof_dev *sdev); 666void snd_sof_free_debug(struct snd_sof_dev *sdev); 667int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev, 668 void *base, size_t size, 669 const char *name, mode_t mode); | 663int snd_sof_dbg_init(struct snd_sof_dev *sdev); 664void snd_sof_free_debug(struct snd_sof_dev *sdev); 665int snd_sof_debugfs_buf_item(struct snd_sof_dev *sdev, 666 void *base, size_t size, 667 const char *name, mode_t mode); |
670int snd_sof_trace_update_pos(struct snd_sof_dev *sdev, 671 struct sof_ipc_dma_trace_posn *posn); 672void snd_sof_trace_notify_for_error(struct snd_sof_dev *sdev); | |
673void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, 674 u32 panic_code, u32 tracep_code, void *oops, 675 struct sof_ipc_panic_info *panic_info, 676 void *stack, size_t stack_words); | 668void sof_print_oops_and_stack(struct snd_sof_dev *sdev, const char *level, 669 u32 panic_code, u32 tracep_code, void *oops, 670 struct sof_ipc_panic_info *panic_info, 671 void *stack, size_t stack_words); |
677void snd_sof_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state); 678int snd_sof_trace_resume(struct snd_sof_dev *sdev); | |
679void snd_sof_handle_fw_exception(struct snd_sof_dev *sdev); 680int snd_sof_dbg_memory_info_init(struct snd_sof_dev *sdev); 681int snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev *sdev, 682 enum snd_sof_fw_blk_type blk_type, u32 offset, size_t size, 683 const char *name, enum sof_debugfs_access_type access_type); | 672void snd_sof_handle_fw_exception(struct snd_sof_dev *sdev); 673int snd_sof_dbg_memory_info_init(struct snd_sof_dev *sdev); 674int snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev *sdev, 675 enum snd_sof_fw_blk_type blk_type, u32 offset, size_t size, 676 const char *name, enum sof_debugfs_access_type access_type); |
677/* Firmware tracing */ 678int sof_fw_trace_init(struct snd_sof_dev *sdev); 679void sof_fw_trace_free(struct snd_sof_dev *sdev); 680void sof_fw_trace_fw_crashed(struct snd_sof_dev *sdev); 681void sof_fw_trace_suspend(struct snd_sof_dev *sdev, pm_message_t pm_state); 682int sof_fw_trace_resume(struct snd_sof_dev *sdev); |
|
684 685/* 686 * DSP Architectures. 687 */ 688static inline void sof_stack(struct snd_sof_dev *sdev, const char *level, 689 void *oops, u32 *stack, u32 stack_words) 690{ 691 sof_dsp_arch_ops(sdev)->dsp_stack(sdev, level, oops, stack, --- 102 unchanged lines hidden --- | 683 684/* 685 * DSP Architectures. 686 */ 687static inline void sof_stack(struct snd_sof_dev *sdev, const char *level, 688 void *oops, u32 *stack, u32 stack_words) 689{ 690 sof_dsp_arch_ops(sdev)->dsp_stack(sdev, level, oops, stack, --- 102 unchanged lines hidden --- |