1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) STMicroelectronics SA 2015
4 * Authors: Yannick Fertre <yannick.fertre@st.com>
5 * Hugues Fruchet <hugues.fruchet@st.com>
14 #define HVA_VERSION_UNKNOWN 0x000
15 #define HVA_VERSION_V400 0x400
17 /* HVA command types */
18 enum hva_hw_cmd_type
{
35 int hva_hw_probe(struct platform_device
*pdev
, struct hva_dev
*hva
);
36 void hva_hw_remove(struct hva_dev
*hva
);
37 int hva_hw_runtime_suspend(struct device
*dev
);
38 int hva_hw_runtime_resume(struct device
*dev
);
39 int hva_hw_execute_task(struct hva_ctx
*ctx
, enum hva_hw_cmd_type cmd
,
40 struct hva_buffer
*task
);
41 #ifdef CONFIG_VIDEO_STI_HVA_DEBUGFS
42 void hva_hw_dump_regs(struct hva_dev
*hva
, struct seq_file
*s
);