From patchwork Wed Jun 16 10:11:58 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: 106459 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5GACuSu002346 for ; Wed, 16 Jun 2010 10:12:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753962Ab0FPKM4 (ORCPT ); Wed, 16 Jun 2010 06:12:56 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:57423 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758544Ab0FPKMN (ORCPT ); Wed, 16 Jun 2010 06:12:13 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN Received: from eu_spt2 ([210.118.77.13]) by mailout3.w1.samsung.com (Sun Java(tm) System Messaging Server 6.3-8.04 (built Jul 29 2009; 32bit)) with ESMTP id <0L4300CRFR09DS00@mailout3.w1.samsung.com>; Wed, 16 Jun 2010 11:12:10 +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 <0L43008S0R08T6@spt2.w1.samsung.com>; Wed, 16 Jun 2010 11:12:09 +0100 (BST) Received: from mcdsrvbld02.digital.local (unknown [106.116.37.23]) by linux.samsung.com (Postfix) with ESMTP id 2D16F27004F; Wed, 16 Jun 2010 12:11:25 +0200 (CEST) Date: Wed, 16 Jun 2010 12:11:58 +0200 From: Sylwester Nawrocki Subject: [PATCH 2/7] ARM: Samsung: Add platform definitions for local FIMC/FIMD fifo path In-reply-to: <1276683123-30224-1-git-send-email-s.nawrocki@samsung.com> To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org Cc: p.osciak@samsung.com, m.szyprowski@samsung.com, kyungmin.park@samsung.com, ben-linux@fluff.org, kgene.kim@samsung.com, Sylwester Nawrocki Message-id: <1276683123-30224-3-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.1 References: <1276683123-30224-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]); Wed, 16 Jun 2010 10:12: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_ */ +