telemetry.h 789 B

1234567891011121314151617181920212223242526272829303132333435
  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. * telemetry data in debug windows
  9. */
  10. #ifndef _SOF_INTEL_TELEMETRY_H
  11. #define _SOF_INTEL_TELEMETRY_H
  12. #include "../ipc4-telemetry.h"
  13. struct xtensa_arch_block {
  14. u8 soc; /* should be equal to XTENSA_SOC_INTEL_ADSP */
  15. u16 version;
  16. u8 toolchain; /* ZEPHYR or XCC */
  17. u32 pc;
  18. u32 exccause;
  19. u32 excvaddr;
  20. u32 sar;
  21. u32 ps;
  22. u32 scompare1;
  23. u32 ar[XTENSA_CORE_AR_REGS_COUNT];
  24. u32 lbeg;
  25. u32 lend;
  26. u32 lcount;
  27. } __packed;
  28. void sof_ipc4_intel_dump_telemetry_state(struct snd_sof_dev *sdev, u32 flags);
  29. #endif /* _SOF_INTEL_TELEMETRY_H */