From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-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) 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 Cc: leif.lindholm@linaro.org, Ard Biesheuvel , Girish Pathak , Evan Lloyd 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: [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: , X-List-Received-Date: Fri, 01 Dec 2017 11:28:41 -0000 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/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_ */ -- 2.11.0