From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/media/sprd_scale/common/img_scale.h | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 drivers/media/sprd_scale/common/img_scale.h (limited to 'drivers/media/sprd_scale/common/img_scale.h') diff --git a/drivers/media/sprd_scale/common/img_scale.h b/drivers/media/sprd_scale/common/img_scale.h new file mode 100644 index 00000000..6df49a0a --- /dev/null +++ b/drivers/media/sprd_scale/common/img_scale.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2012 Spreadtrum Communications Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#ifndef _IMG_SCALE_H_ +#define _IMG_SCALE_H_ + +#include "scale_drv.h" + +#include +#include + +struct scale_k_private{ + struct semaphore start_sem; + void *coeff_addr; +}; + +enum scale_k_status{ + SCALE_K_IDLE, + SCALE_K_RUNNING, + SCALE_K_DONE, + SCALE_K_MAX +}; + +struct scale_k_file{ + struct scale_k_private *scale_private; + + struct semaphore scale_done_sem; + + struct scale_drv_private drv_private; + + struct device_node *dn; +}; + +#endif -- cgit v1.3.1