From patchwork Tue Dec 5 10:13:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 120635 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5551874qgn; Tue, 5 Dec 2017 02:13:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMa3nVbFQkyvI7QvTAh3W8mJjZeARvYbbj+yTYSFp+LXoGdCA4nSJd6FC8Nbcp/DPgg/LEEf X-Received: by 10.84.240.74 with SMTP id h10mr17593093plt.109.1512468823155; Tue, 05 Dec 2017 02:13:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512468823; cv=none; d=google.com; s=arc-20160816; b=DpjauTGIQx86pIF4NdnrnjJWaZOplAsLNJzgQnQywxUxNr/a7I5kbH/jThOZXCa2YP UyEPtnLBHUo1u8UQEXTyi+URvOvpKK4teZAnOORRldu14Xdlo/GU8sv1Vok4yqRp3smg DINHm5RR8+o4oXHwT2Rf09ucI1r8D3+Pcl+1NnzXSN2jlC/yenskyUydf84vWDzeVqG1 A/a/oBlC1b5UJN1lfxO/7dW3gNyuohjbmPwnChJm7ufqxu96bcUWw4crN2h1yPqIYkBG Ye6NKWSj4iqwA1gxo6CbaYOg9O0CpHosAVy5bc047NXdRV393FCdL8PggCP7+nU/JJTo u7UA== 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=UvoI47ZVzVehIRuldrUtPtQIP/htkXc4T7QPvuzLM0E=; b=uV5D+Eln3uYh373mq02F6tE+VQM2DdulkEEJu6QdsbR1vS+2YMbBj/q3r+JQUSg6Sp QFpwppUKPzynWP8botK3c+/4f/EWx2rOEs1LBE7GSxi3vuKQAOaEStcRbq5lqo1qEO6v bHHl13y65J7+ha5GDl75H1iEv4h+Cdo6X0ix/n39bIkNy9w5kVa2NbXTFINwlvcmAySN DQQBTO43ETklHtG3RiCflo3Yd1qEf434sndDh5pHS6iTo//rAg0+R8wA59TZZQVXMO52 HiNA7CroE7vG7dl4KwEQquEG89jZ98QnsvMmFBDlrdFw1lUjzt0d+UFCZAjPQ+PviWC2 XpiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UM04DYSu; 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 v21si10769439pgn.749.2017.12.05.02.13.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2017 02:13:43 -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=UM04DYSu; 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 E042220356277; Tue, 5 Dec 2017 02:09:09 -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::242; helo=mail-wm0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (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 27B8620356269 for ; Tue, 5 Dec 2017 02:09:09 -0800 (PST) Received: by mail-wm0-x242.google.com with SMTP id t8so215176wmc.3 for ; Tue, 05 Dec 2017 02:13:39 -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=FKakfc3LDTYag3dwUm8ZgD/nP3xP3c+ZKYaYk7vO/oY=; b=UM04DYSu1e2UPlM2suqLvqxUHlXvDYcdjqw0N9Z6oRTaXrzVxxfbvEhB609XvQB7gx H1loKwymcYpw5NT6TLIJhIKoH6DSdudjrgVBpJfx3OEuEfrXUe4by7xkJtB8e6m/I3cL JNWUD1E94jSwKUrP5n/qejmIIQX7g52w/AqrA= 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=FKakfc3LDTYag3dwUm8ZgD/nP3xP3c+ZKYaYk7vO/oY=; b=sEjkW+LGVVnyRlV7XXbTWgrrVE+jjaJ0QL+pQ07/6MlH6CIVJkdecMrcVZx6n50RIt U3Xq60846iEWquBLoSAl4cGriKVnYhEj+FaPqVK50968GhwtxexVf/e4JaFSLZqrOF5B 0nDee7Gv7Smr4VZUjat3V4qpIUYUeylx5i39ZrNycXoY3Wqi2s375LodICbp2Lx0DYov vvsLbeimK4dgpbhzt5wpKGBPTHSyagAhhXZZ0zj1fWv/6h/ZDsqyMgxAj5Hr2eUs3g6U JvZoW6sXj0oHlBHCAuCnEU4yYw0+m5cTAjHs3xQj3kifdPWRd54qmCW90+OT5LRMXe+3 pJ0Q== X-Gm-Message-State: AKGB3mIk5vy7kMjRQHa1AyhU3vQFqUNh3Ob19Bz8FPV2DflAS/H96AWy xaG6o1+PFC6+GcXytHFkOuCWNBDryw8= X-Received: by 10.28.211.67 with SMTP id k64mr2171185wmg.55.1512468818265; Tue, 05 Dec 2017 02:13:38 -0800 (PST) Received: from localhost.localdomain ([105.150.171.234]) by smtp.gmail.com with ESMTPSA id d1sm14398065wra.44.2017.12.05.02.13.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2017 02:13:37 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Tue, 5 Dec 2017 10:13:24 +0000 Message-Id: <20171205101326.23732-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171205101326.23732-1-ard.biesheuvel@linaro.org> References: <20171205101326.23732-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 3/5] ArmPlatformPkg: add Null implementation of LcdPlatformlLib 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: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" In order to be able to build ArmPlatformPkg components outside of the context of a particular platform, add Null implementation of LcdPlatformlLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.c | 92 ++++++++++++++++++++ ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.inf | 28 ++++++ 2 files changed, 120 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/Library/LcdPlatformNullLib/LcdPlatformNullLib.c b/ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.c new file mode 100644 index 000000000000..071eb5ffd4be --- /dev/null +++ b/ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.c @@ -0,0 +1,92 @@ +/** @file + + Copyright (c) 2017, Linaro, 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. + +**/ + +#include +#include +#include +#include + +EFI_STATUS +LcdPlatformInitializeDisplay ( + IN EFI_HANDLE Handle + ) +{ + ASSERT (FALSE); + return EFI_UNSUPPORTED; +} + +EFI_STATUS +LcdPlatformGetVram ( + OUT EFI_PHYSICAL_ADDRESS* VramBaseAddress, + OUT UINTN* VramSize + ) +{ + ASSERT (FALSE); + return EFI_UNSUPPORTED; +} + +UINT32 +LcdPlatformGetMaxMode ( + VOID + ) +{ + ASSERT (FALSE); + return 0; +} + +EFI_STATUS +LcdPlatformSetMode ( + IN UINT32 ModeNumber + ) +{ + ASSERT (FALSE); + return EFI_UNSUPPORTED; +} + +EFI_STATUS +LcdPlatformQueryMode ( + IN UINT32 ModeNumber, + OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Info + ) +{ + ASSERT (FALSE); + return EFI_UNSUPPORTED; +} + +EFI_STATUS +LcdPlatformGetTimings ( + IN UINT32 ModeNumber, + OUT UINT32* HRes, + OUT UINT32* HSync, + OUT UINT32* HBackPorch, + OUT UINT32* HFrontPorch, + OUT UINT32* VRes, + OUT UINT32* VSync, + OUT UINT32* VBackPorch, + OUT UINT32* VFrontPorch + ) +{ + ASSERT (FALSE); + return EFI_UNSUPPORTED; +} + +EFI_STATUS +LcdPlatformGetBpp ( + IN UINT32 ModeNumber, + OUT LCD_BPP* Bpp + ) +{ + ASSERT (FALSE); + return EFI_UNSUPPORTED; +} diff --git a/ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.inf b/ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.inf new file mode 100644 index 000000000000..41c1d9638812 --- /dev/null +++ b/ArmPlatformPkg/Library/LcdPlatformNullLib/LcdPlatformNullLib.inf @@ -0,0 +1,28 @@ +#/** @file +# +# Copyright (c) 2017, Linaro, 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. +# +#**/ + +[Defines] + INF_VERSION = 0x0001001A + BASE_NAME = LcdPlatformNullLib + FILE_GUID = b78d02bb-d0b5-4389-bc7f-b39ee846c784 + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = LcdPlatformNullLib + +[Sources] + LcdPlatformNullLib.c + +[Packages] + ArmPlatformPkg/ArmPlatformPkg.dec + MdePkg/MdePkg.dec