~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/soc/sof/ipc4-telemetry.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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) 2023 Intel Corporation
  7  */
  8 
  9 #ifndef __SOUND_SOC_SOF_IPC4_TELEMETRY_H
 10 #define __SOUND_SOC_SOF_IPC4_TELEMETRY_H
 11 
 12 /* Target code */
 13 enum sof_ipc4_coredump_tgt_code {
 14         COREDUMP_TGT_UNKNOWN = 0,
 15         COREDUMP_TGT_X86,
 16         COREDUMP_TGT_X86_64,
 17         COREDUMP_TGT_ARM_CORTEX_M,
 18         COREDUMP_TGT_RISC_V,
 19         COREDUMP_TGT_XTENSA,
 20 };
 21 
 22 #define COREDUMP_ARCH_HDR_ID 'A'
 23 #define COREDUMP_HDR_ID0 'Z'
 24 #define COREDUMP_HDR_ID1 'E'
 25 
 26 #define XTENSA_BLOCK_HDR_VER            2
 27 #define XTENSA_CORE_DUMP_SEPARATOR      0x0DEC0DEB
 28 #define XTENSA_CORE_AR_REGS_COUNT       16
 29 #define XTENSA_SOC_INTEL_ADSP           3
 30 #define XTENSA_TOOL_CHAIN_ZEPHYR        1
 31 #define XTENSA_TOOL_CHAIN_XCC           2
 32 
 33 /* Coredump header */
 34 struct sof_ipc4_coredump_hdr {
 35         /* 'Z', 'E' as identifier of file */
 36         char id[2];
 37 
 38         /* Identify the version of the header */
 39         u16 hdr_version;
 40 
 41         /* Indicate which target (e.g. architecture or SoC) */
 42         u16 tgt_code;
 43 
 44         /* Size of uintptr_t in power of 2. (e.g. 5 for 32-bit, 6 for 64-bit) */
 45         u8 ptr_size_bits;
 46 
 47         u8 flag;
 48 
 49         /* Reason for the fatal error */
 50         u32 reason;
 51 } __packed;
 52 
 53 /* Architecture-specific block header */
 54 struct sof_ipc4_coredump_arch_hdr {
 55         /* COREDUMP_ARCH_HDR_ID to indicate this is a architecture-specific block */
 56         char id;
 57 
 58         /* Identify the version of this block */
 59         u16 hdr_version;
 60 
 61         /* Number of bytes following the header */
 62         u16 num_bytes;
 63 } __packed;
 64 
 65 struct sof_ipc4_telemetry_slot_data {
 66         u32 separator;
 67         struct sof_ipc4_coredump_hdr hdr;
 68         struct sof_ipc4_coredump_arch_hdr arch_hdr;
 69         u32 arch_data[];
 70 } __packed;
 71 
 72 void sof_ipc4_create_exception_debugfs_node(struct snd_sof_dev *sdev);
 73 #endif
 74 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php