From nobody Wed Dec 25 05:31:56 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 1512468823681861.1662141372848; Tue, 5 Dec 2017 02:13:43 -0800 (PST) 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) 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) 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) 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::242; helo=mail-wm0-x242.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=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-Google-Smtp-Source: AGs4zMaAf9uXeui2lxxDVQPVHfkdXQza11j1hFLT8aRj21IUF571mN14i4JHsVSW+iKorcF2XsJ95g== X-Received: by 10.28.211.67 with SMTP id k64mr2171185wmg.55.1512468818265; Tue, 05 Dec 2017 02:13:38 -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 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" 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(+) 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 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. + +**/ + +#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.i= nf 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 B= SD 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 IM= PLIED. +# +#**/ + +[Defines] + INF_VERSION =3D 0x0001001A + BASE_NAME =3D LcdPlatformNullLib + FILE_GUID =3D b78d02bb-d0b5-4389-bc7f-b39ee846c784 + MODULE_TYPE =3D BASE + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D LcdPlatformNullLib + +[Sources] + LcdPlatformNullLib.c + +[Packages] + ArmPlatformPkg/ArmPlatformPkg.dec + MdePkg/MdePkg.dec --=20 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel