TianoCore EDK2 master
Loading...
Searching...
No Matches
LcdPlatformNullLib.c File Reference
#include <Base.h>
#include <Uefi/UefiBaseType.h>
#include <Library/DebugLib.h>
#include <Library/LcdPlatformLib.h>

Go to the source code of this file.

Functions

EFI_STATUS LcdPlatformInitializeDisplay (IN EFI_HANDLE Handle)
 
EFI_STATUS LcdPlatformGetVram (OUT EFI_PHYSICAL_ADDRESS *VramBaseAddress, OUT UINTN *VramSize)
 
UINT32 LcdPlatformGetMaxMode (VOID)
 
EFI_STATUS LcdPlatformSetMode (IN UINT32 ModeNumber)
 
EFI_STATUS LcdPlatformQueryMode (IN UINT32 ModeNumber, OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Info)
 
EFI_STATUS LcdPlatformGetTimings (IN UINT32 ModeNumber, OUT SCAN_TIMINGS **Horizontal, OUT SCAN_TIMINGS **Vertical)
 
EFI_STATUS LcdPlatformGetBpp (IN UINT32 ModeNumber, OUT LCD_BPP *Bpp)
 

Detailed Description

Copyright (c) 2017, Linaro, Ltd. All rights reserved. Copyright (c) 2018, Arm Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file LcdPlatformNullLib.c.

Function Documentation

◆ LcdPlatformGetBpp()

EFI_STATUS LcdPlatformGetBpp ( IN UINT32  ModeNumber,
OUT LCD_BPP Bpp 
)

Return bits per pixel information for a mode number.

Parameters
[in]ModeNumberMode Number.
[out]BppPointer to value bits per pixel information.
Return values
EFI_UNSUPPORTEDInterface is not supported.

Definition at line 138 of file LcdPlatformNullLib.c.

◆ LcdPlatformGetMaxMode()

UINT32 LcdPlatformGetMaxMode ( VOID  )

Return total number of modes supported.

Note: Valid mode numbers are 0 to MaxMode - 1 See Section 12.9 of the UEFI Specification 2.7

Return values
UINT32Zero number of modes supported in a NULL library implementation.

Definition at line 60 of file LcdPlatformNullLib.c.

◆ LcdPlatformGetTimings()

EFI_STATUS LcdPlatformGetTimings ( IN UINT32  ModeNumber,
OUT SCAN_TIMINGS **  Horizontal,
OUT SCAN_TIMINGS **  Vertical 
)

Return display timing information for the requested mode number.

Parameters
[in]ModeNumberMode Number.
[out]HResPointer to horizontal resolution.
[out]HSyncPointer to horizontal sync width.
[out]HBackPorchPointer to horizontal back porch.
[out]HFrontPorchPointer to horizontal front porch.
[out]VResPointer to vertical resolution.
[out]VSyncPointer to vertical sync width.
[out]VBackPorchPointer to vertical back porch.
[out]VFrontPorchPointer to vertical front porch.
Return values
EFI_UNSUPPORTEDInterface is not supported.

Definition at line 118 of file LcdPlatformNullLib.c.

◆ LcdPlatformGetVram()

EFI_STATUS LcdPlatformGetVram ( OUT EFI_PHYSICAL_ADDRESS VramBaseAddress,
OUT UINTN VramSize 
)

Allocate VRAM memory in DRAM for the framebuffer (unless it is reserved already).

The allocated address can be used to set the framebuffer.

Parameters
[out]VramBaseAddressA pointer to the framebuffer address.
[out]VramSizeA pointer to the size of the frame buffer in bytes
Return values
EFI_UNSUPPORTEDInterface is not supported.

Definition at line 42 of file LcdPlatformNullLib.c.

◆ LcdPlatformInitializeDisplay()

EFI_STATUS LcdPlatformInitializeDisplay ( IN EFI_HANDLE  Handle)

Platform related initialization function.

Parameters
[in]HandleHandle to the LCD device instance.
Return values
EFI_UNSUPPORTEDInterface is not supported.

Definition at line 22 of file LcdPlatformNullLib.c.

◆ LcdPlatformQueryMode()

EFI_STATUS LcdPlatformQueryMode ( IN UINT32  ModeNumber,
OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION Info 
)

Return information for the requested mode number.

Parameters
[in]ModeNumberMode Number.
[out]InfoPointer for returned mode information (on success).
Return values
EFI_UNSUPPORTEDInterface is not supported.

Definition at line 93 of file LcdPlatformNullLib.c.

◆ LcdPlatformSetMode()

EFI_STATUS LcdPlatformSetMode ( IN UINT32  ModeNumber)

Set the requested display mode.

Parameters
[in]ModeNumberMode Number.
Return values
EFI_UNSUPPORTEDInterface is not supported.

Definition at line 75 of file LcdPlatformNullLib.c.