From patchwork Fri Dec 1 11:32:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 120310 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1014760qgn; Fri, 1 Dec 2017 03:33:09 -0800 (PST) X-Google-Smtp-Source: AGs4zMbG9+7mg6KQP9+L6R5wtOgNyoLsUgtTG1fKbeu8hKtzTi6pHYk+Df5ElgWLtqhdkz4HiqKx X-Received: by 10.84.253.131 with SMTP id a3mr5782614plm.65.1512127989673; Fri, 01 Dec 2017 03:33:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512127989; cv=none; d=google.com; s=arc-20160816; b=RI0KQTthOBEoTZXRAPv4LuqOMNYoTo5IEntNd0UFTbkWZOt90TlFyY1QLqa73dmi8D bhR0Mi3kTOnfyBN3gdj862issmTxLnv7QOEc6vOKgP9zd3QnWL3iP34G/HIUzqz5uSxy wIXn6KTiHY4xFRrWouadIafB54wiBy/6eD+m+bhLC5QdMWFbhxiTXmtDwcjbU9TA2P+k MTRoeofOkoF/jzH3a1EZgdjFpJRDbp3ZtuMDvMYDIMOBssfve6aoJMmR52c+nR/wieTT YF6hZRgvJf+L8dqo4u61sQnVmOEBGFASz/QS+MvApLItEEeklvemDmyeEtNZWrj9g4l2 HKGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=W49K5iA3Y0TG7kTHIbX+6FDxfFFSrMjZugnLw3eLBfA=; b=A0zoZl1FWi1Aq/Sfy9mP8FXK+L9XIHuFlh4njAPPaXl6dIM7Hj1rZJhN938vSjJPNd 9hvPm4HyKXc2ivQWdeLPK+nJu4uE97WVVSMbM6Kj5p6MqW315DRLKNNYUZyx57mQTdek nuHk8pMSajogJYOMKSDp9NGn+mJafoh/HyhRLqsCSUCSbuVfaZWKK20gsfXffggRsg6Q ULy5LJkBJJTyyeJwOTYsHlUPGpip29gA0OauwIwUNISlS75D3TSM0/YxTJGi/90i1fmt 0fmKHmqYh+fgNgRrz9cdGoYUBO3ifiCBxKlV/RIT2W2jopoq5yJ447jxZS72F5RzGMaB BVKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HqYVhOzJ; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id i69si5082826pfd.147.2017.12.01.03.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Dec 2017 03:33:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HqYVhOzJ; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D71C620352A8F; Fri, 1 Dec 2017 03:28:41 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 15C0720352A8A for ; Fri, 1 Dec 2017 03:28:40 -0800 (PST) Received: by mail-wm0-x241.google.com with SMTP id n138so2953624wmg.2 for ; Fri, 01 Dec 2017 03:33:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QdQhKf8wc7+BsHeOvrJNbhA3uDNlhMt3qDsUEgTTAo0=; b=HqYVhOzJD4rkVzVFfDvnPM+WuDRrXvVPPbC7KosTXFJ3onP2CdfCykLq/ff4mf1gYf 9/mqYM+SRE3rnpqf0+6u+ABrSKcjaT1TSa6BS9dbKaT1icyKnAOaTbCaFNk8z0hap6ri 2bxkY2ViCFhm1pe/Amr6g2i/xI5E+qtbbbNcA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QdQhKf8wc7+BsHeOvrJNbhA3uDNlhMt3qDsUEgTTAo0=; b=mztn97AyDXNal8KfVuiaE/eWXr6nIyIMl5+aNuMxc0cKMA6nhWJENjJ8UL5UC7EAAc p9+7axLHkVGrmBGYXeaK+/Ry/XV8x3zTxIrH057y+4Cns85siw1U0Xb4FGUqRhW77d4z 0H7cDqD9yVHQXH4lGBDvqCrxd68zudh1zfloWTA1/sGLUBytjdI97Di2sSW1/vAqd6yw MYxfwm77jVEK4myJlMSc5EkwneWy/AiaTocA/HUWPJrZKWi8wSdo/w/UIwlTz0vvcBRC f2XHQuK7Wu4k9U+mFh9NavxSdugfFAJSfzUnGPoXxr/INtcHOlCygOOcH2CydO48ZP4S B4oQ== X-Gm-Message-State: AJaThX4q5Wghm0braLhWUpBA7Ja/g2J1qeJ0PiYNvKh47ORWnDZw24k0 pJEcWvjKed2VI5PwdCUnSvIPvep4+YQ= X-Received: by 10.28.208.205 with SMTP id h196mr1075595wmg.160.1512127985701; Fri, 01 Dec 2017 03:33:05 -0800 (PST) Received: from localhost.localdomain ([105.150.171.234]) by smtp.gmail.com with ESMTPSA id k11sm918430wmi.18.2017.12.01.03.33.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Dec 2017 03:33:04 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Fri, 1 Dec 2017 11:32:51 +0000 Message-Id: <20171201113255.23581-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171201113255.23581-1-ard.biesheuvel@linaro.org> References: <20171201113255.23581-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 1/5] ArmPlatformPkg: introduce LcdhwLib library class X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add the declaration and include file for the new LcdHwLib library class, which will allow us to abstract away from platform variations in the LCD graphics output driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Girish Pathak Signed-off-by: Evan Lloyd Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/ArmPlatformPkg.dec | 1 + ArmPlatformPkg/Include/Library/LcdHwLib.h | 65 ++++++++++++++++++++ 2 files changed, 66 insertions(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatformPkg.dec index 9d47e459eadc..9ccf540e5b80 100644 --- a/ArmPlatformPkg/ArmPlatformPkg.dec +++ b/ArmPlatformPkg/ArmPlatformPkg.dec @@ -32,6 +32,7 @@ [Includes.common] Include # Root include for the package [LibraryClasses] + LcdHwLib|Include/Library/LcdHwLib.h PL011UartLib|Include/Library/PL011UartLib.h [Guids.common] diff --git a/ArmPlatformPkg/Include/Library/LcdHwLib.h b/ArmPlatformPkg/Include/Library/LcdHwLib.h new file mode 100644 index 000000000000..a426cd392357 --- /dev/null +++ b/ArmPlatformPkg/Include/Library/LcdHwLib.h @@ -0,0 +1,65 @@ +/** @file LcdHwLib.h + + This file contains interface functions for LcdHwLib of ArmPlatformPkg + + Copyright (c) 2017, ARM Ltd. All rights reserved.
+ + This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef LCD_HW_LIB_H_ +#define LCD_HW_LIB_H_ + +#include + +/** Check for presence of display + * + * @retval EFI_SUCCESS Platform implements display. + * @retval EFI_NOT_FOUND Display not found on the platform. + */ +EFI_STATUS +LcdIdentify ( + VOID +); + +/** Initialize display. + * + * @param FrameBaseAddress Address of the frame buffer. + * @retval EFI_SUCCESS Display initialization success. + * @retval !(EFI_SUCCESS) Display initialization failure. + * +**/ +EFI_STATUS +LcdInitialize ( + EFI_PHYSICAL_ADDRESS FrameBaseAddress +); + +/** Set requested mode of the display. + * + * @param ModeNumber Display mode number. + * @retval EFI_SUCCESS Display set mode success. + * @retval EFI_DEVICE_ERROR If mode not found/supported. + * +**/ +EFI_STATUS +LcdSetMode ( + IN UINT32 ModeNumber +); + + +/** De-initializes the display. + * +**/ +VOID +LcdShutdown ( + VOID +); + +#endif /* LCD_HW_LIB_H_ */