From nobody Wed Dec 25 04:37:26 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1512127990130960.3749057172937; Fri, 1 Dec 2017 03:33:10 -0800 (PST) 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) 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) 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) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.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 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-Google-Smtp-Source: AGs4zMY7tgP85iLKXeJ6NmlnP3BQay4hTVnLZTxfeYGzZLuL13kheX8mNWYLAEOchOrV46PFKmlyjw== X-Received: by 10.28.208.205 with SMTP id h196mr1075595wmg.160.1512127985701; Fri, 01 Dec 2017 03:33:05 -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 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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(+) diff --git a/ArmPlatformPkg/ArmPlatformPkg.dec b/ArmPlatformPkg/ArmPlatform= Pkg.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 =20 [LibraryClasses] + LcdHwLib|Include/Library/LcdHwLib.h PL011UartLib|Include/Library/PL011UartLib.h =20 [Guids.common] diff --git a/ArmPlatformPkg/Include/Library/LcdHwLib.h b/ArmPlatformPkg/Inc= lude/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 BS= D License + which accompanies this distribution. The full text of the license may b= e 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 IMP= LIED. + +**/ + +#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_ */ --=20 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel