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: 1096432 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7PDtdNK010502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Aug 2011 13:56:00 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QwaOp-0006DI-8K; Thu, 25 Aug 2011 13:55:15 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QwaOo-0003Os-F2; Thu, 25 Aug 2011 13:55:14 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QwaOU-0003LH-DH for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2011 13:54:55 +0000 Received: from epcpsbgm2.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LQH008PGLAT0O30@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2011 22:54:47 +0900 (KST) X-AuditID: cbfee61b-b7b7fae000005864-2d-4e565427b844 Received: from epmmp1 ( [203.254.227.16]) by epcpsbgm2.samsung.com (MMPCPMTA) with SMTP id 27.58.22628.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> for linux-arm-kernel@lists.infradead.org; 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 Message-id: <1314301917-9938-2-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.0.4 References: <1314301917-9938-1-git-send-email-ajaykumar.rs@samsung.com> X-Brightmail-Tracker: AAAAAA== X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110825_095454_703234_F52C2750 X-CRM114-Status: GOOD ( 16.27 ) X-Spam-Score: -0.4 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [203.254.224.34 listed in list.dnswl.org] -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 2.4 DATE_IN_FUTURE_03_06 Date: is 3 to 6 hours after Received: date Cc: banajit.g@samsung.com, FlorianSchandinat@gmx.de, jg1.han@samsung.com, lethal@linux-sh.org, ben-linux@fluff.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 25 Aug 2011 13:56:00 +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; }; /**