ArmPlatformPkg: add Null implementation of LcdPlatformlLib
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 <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
		@@ -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 <Base.h>
 | 
				
			||||||
 | 
					#include <Uefi/UefiBaseType.h>
 | 
				
			||||||
 | 
					#include <Library/DebugLib.h>
 | 
				
			||||||
 | 
					#include <Library/LcdPlatformLib.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					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;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -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
 | 
				
			||||||
		Reference in New Issue
	
	Block a user