From patchwork Thu Jul 15 09:10:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 112212 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6F9Ax6V032114 for ; Thu, 15 Jul 2010 09:10:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932803Ab0GOJKz (ORCPT ); Thu, 15 Jul 2010 05:10:55 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:26293 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932824Ab0GOJKv (ORCPT ); Thu, 15 Jul 2010 05:10:51 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN Received: from eu_spt2 ([210.118.77.14]) by mailout4.w1.samsung.com (Sun Java(tm) System Messaging Server 6.3-8.04 (built Jul 29 2009; 32bit)) with ESMTP id <0L5L0058NDI0PV60@mailout4.w1.samsung.com>; Thu, 15 Jul 2010 10:10:49 +0100 (BST) Received: from linux.samsung.com ([106.116.38.10]) by spt2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0L5L00BJ1DHY0T@spt2.w1.samsung.com>; Thu, 15 Jul 2010 10:10:46 +0100 (BST) Received: from mcdsrvbld02.digital.local (unknown [106.116.37.23]) by linux.samsung.com (Postfix) with ESMTP id 5FA33270067; Thu, 15 Jul 2010 11:09:09 +0200 (CEST) Date: Thu, 15 Jul 2010 11:10:34 +0200 From: Sylwester Nawrocki Subject: [PATCH 03/10 v2] ARM: Samsung: Add platform definitions for local FIMC/FIMD fifo path In-reply-to: <1279185041-6004-1-git-send-email-s.nawrocki@samsung.com> To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: p.osciak@samsung.com, m.szyprowski@samsung.com, kyungmin.park@samsung.com, kgene.kim@samsung.com, linux-media@vger.kernel.org, ben-linux@fluff.org, Sylwester Nawrocki Message-id: <1279185041-6004-4-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.1 References: <1279185041-6004-1-git-send-email-s.nawrocki@samsung.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 15 Jul 2010 09:10:59 +0000 (UTC) diff --git a/arch/arm/plat-samsung/include/plat/fifo.h b/arch/arm/plat-samsung/include/plat/fifo.h new file mode 100644 index 0000000..84d242b --- /dev/null +++ b/arch/arm/plat-samsung/include/plat/fifo.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2010 Samsung Electronics + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef FIFO_H_ +#define FIFO_H_ + +#include +#include + +/* + * The multimedia devices contained in Samsung S3C/S5P SoC series + * like framebuffer, camera interface or tv scaler can transfer data + * directly between each other through hardware fifo channels. + * s3c_fifo_link data structure is an abstraction for such links, + * it allows to define V4L2 device drivers hierarchy according to + * the hardware structure. Fifo links are mostly unidirectional, exclusive + * data buses. To control data transfer in fifo mode synchronization is + * is required between drivers at both ends of the fifo channel + * (master_dev, slave_dev). s3c_fifo_link:sub_dev is intended to export + * in a consistent way all the functionality of the slave device required + * at master device driver to enable transfer through fifo channel. + * master_dev and slave_dev is to be setup by the platform code whilst + * sub_dev entry will mostly be initlized during slave_dev probe(). + */ +struct s3c_fifo_link { + struct device *master_dev; + struct device *slave_dev; + struct v4l2_subdev *sub_dev; +}; + +#endif /* FIFO_H_ */ +