// SPDX-License-Identifier: GPL-2.0-only /* * drivers/media/platform/samsung/mfc5/s5p_mfc_intr.c * * C file for Samsung MFC (Multi Function Codec - FIMV) driver * This file contains functions used to wait for command completion. * * Kamil Debski, Copyright (C) 2011 Samsung Electronics Co., Ltd. * http://www.samsung.com/ */ #include <linux/delay.h> #include <linux/errno.h> #include <linux/io.h> #include <linux/sched.h> #include <linux/wait.h> #include "s5p_mfc_common.h" #include "s5p_mfc_debug.h" #include "s5p_mfc_intr.h" int s5p_mfc_wait_for_done_dev(struct s5p_mfc_dev *dev, int command) { … } void s5p_mfc_clean_dev_int_flags(struct s5p_mfc_dev *dev) { … } int s5p_mfc_wait_for_done_ctx(struct s5p_mfc_ctx *ctx, int command, int interrupt) { … } void s5p_mfc_clean_ctx_int_flags(struct s5p_mfc_ctx *ctx) { … }