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::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-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) 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 Cc: Ard Biesheuvel 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: [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: , X-List-Received-Date: Tue, 05 Dec 2017 10:09:09 -0000 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 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 -- 2.11.0