From patchwork Thu Aug 25 19:51:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 1096412 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7PDsmIE015693 for ; Thu, 25 Aug 2011 13:54:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858Ab1HYNyt (ORCPT ); Thu, 25 Aug 2011 09:54:49 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:23826 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025Ab1HYNys (ORCPT ); Thu, 25 Aug 2011 09:54:48 -0400 Received: from epcpsbgm1.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LQH00ISYLB94JU0@mailout2.samsung.com>; Thu, 25 Aug 2011 22:54:47 +0900 (KST) X-AuditID: cbfee61a-b7cf1ae00000208e-72-4e565427f697 Received: from epmmp1 ( [203.254.227.16]) by epcpsbgm1.samsung.com (MMPCPMTA) with SMTP id 41.32.08334.724565E4; Thu, 25 Aug 2011 22:54:47 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LQH00D1NLB42L@mmp1.samsung.com>; Thu, 25 Aug 2011 22:54:47 +0900 (KST) Date: Thu, 25 Aug 2011 15:51:56 -0400 From: Ajay Kumar Subject: [PATCH 1/2] ARM: SAMSUNG: Add Window Positioning Support for s3c-fb driver In-reply-to: <1314301917-9938-1-git-send-email-ajaykumar.rs@samsung.com> To: linux-samsung-soc@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: FlorianSchandinat@gmx.de, lethal@linux-sh.org, jg1.han@samsung.com, m.szyprowski@samsung.com, ben-linux@fluff.org, banajit.g@samsung.com Message-id: <1314301917-9938-2-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.0.4 Content-transfer-encoding: 7BIT References: <1314301917-9938-1-git-send-email-ajaykumar.rs@samsung.com> X-Brightmail-Tracker: AAAAAA== Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 25 Aug 2011 13:54:49 +0000 (UTC) This patch: --adds a data-structure to hold the current position of windows. --adds an ioctl number to support dynamic positioning the windows. Signed-off-by: Ajay Kumar Signed-off-by: Banajit Goswami --- arch/arm/plat-samsung/include/plat/fb.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-samsung/include/plat/fb.h b/arch/arm/plat-samsung/include/plat/fb.h index bd79c0a..77ed75c 100644 --- a/arch/arm/plat-samsung/include/plat/fb.h +++ b/arch/arm/plat-samsung/include/plat/fb.h @@ -22,6 +22,18 @@ */ #define S3C_FB_MAX_WIN (5) +/* struct s3cfb_window_pos + * @win_pos_x: X-coordinate of window from the left. + * @win_pos_y: Y-coordinate of window from the top. + */ +struct s3cfb_window_pos { + int win_pos_x; + int win_pos_y; +}; + +/* Custom ioctl */ +#define S3CFB_WIN_POSITION _IOW('F', 1, struct s3cfb_window_pos) + /** * struct s3c_fb_pd_win - per window setup data * @win_mode: The display parameters to initialise (not for window 0) @@ -35,6 +47,8 @@ struct s3c_fb_pd_win { unsigned short max_bpp; unsigned short virtual_x; unsigned short virtual_y; + + struct s3cfb_window_pos winpos; }; /**