cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

imx-common.h (740B)


      1/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
      2
      3#ifndef __IMX_COMMON_H__
      4#define __IMX_COMMON_H__
      5
      6#include <linux/clk.h>
      7
      8#define EXCEPT_MAX_HDR_SIZE	0x400
      9#define IMX8_STACK_DUMP_SIZE 32
     10
     11void imx8_get_registers(struct snd_sof_dev *sdev,
     12			struct sof_ipc_dsp_oops_xtensa *xoops,
     13			struct sof_ipc_panic_info *panic_info,
     14			u32 *stack, size_t stack_words);
     15
     16void imx8_dump(struct snd_sof_dev *sdev, u32 flags);
     17
     18struct imx_clocks {
     19	struct clk_bulk_data *dsp_clks;
     20	int num_dsp_clks;
     21};
     22
     23int imx8_parse_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
     24int imx8_enable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
     25void imx8_disable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
     26
     27#endif