ArmPlatformPkg: create hw-agnostic LcdGraphicsOutputDxe driver
Create a new LcdGraphicsOutputDxe driver from the existing sources that takes its hardware abstractions from a LcdHwLib library instance rather than from a .c file linked directly. All we need is a new .inf file, and a minimal tweak to LcdGraphicsOutputDxe.h to reuse the LcdHwlib prototypes rather than open code them. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Girish Pathak <girish.pathak@arm.com> Signed-off-by: Evan Lloyd <evan.lloyd@arm.com> [ardb: add it to ArmPlatformPkg.dsc so we can build test it standalone] Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <Base.h>
|
||||
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/LcdHwLib.h>
|
||||
#include <Library/LcdPlatformLib.h>
|
||||
#include <Library/PcdLib.h>
|
||||
#include <Library/UefiLib.h>
|
||||
@@ -105,24 +106,4 @@ InitializeDisplay (
|
||||
IN LCD_INSTANCE* Instance
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
LcdIdentify (
|
||||
VOID
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
LcdInitialize (
|
||||
EFI_PHYSICAL_ADDRESS VramBaseAddress
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
LcdSetMode (
|
||||
IN UINT32 ModeNumber
|
||||
);
|
||||
|
||||
VOID
|
||||
LcdShutdown (
|
||||
VOID
|
||||
);
|
||||
|
||||
#endif /* __ARM_VE_GRAPHICS_DXE_H__ */
|
||||
|
Reference in New Issue
Block a user