93 UINTN CurrentMode, Dummy;
102 Mode = GraphicsConsole->Mode;
103 Protocol = GraphicsConsole->Protocol;
113 if (CurrentMode !=
Mode)
139 FrameBufferPhysical);
146 FrameBufferPhysical);
157 GraphicsConsole->PixelDepth = PixelDepth;
165 else if (CurrentMode != GraphicsConsole->Mode)
184 OldMode = GraphicsConsole->OldMode;
185 if (GraphicsConsole->Mode != OldMode)
212 (
PVOID*)&GopProtocol);
235 CurrentModeOk =
FALSE;
258 GraphicsConsole->Protocol = GopProtocol;
260 GraphicsConsole->OldMode = CurrentMode;
270 GraphicsConsole->PixelDepth = PixelDepth;
@ PixelBlueGreenRedReserved8BitPerColor
EFI_GUID EfiGraphicsOutputProtocol
NTSTATUS EfiCloseProtocol(_In_ EFI_HANDLE Handle, _In_ EFI_GUID *Protocol)
NTSTATUS EfiGopGetCurrentMode(_In_ EFI_GRAPHICS_OUTPUT_PROTOCOL *GopInterface, _Out_ UINTN *Mode, _Out_ EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Information)
VOID EfiPrintf(_In_ PWCHAR Format,...)
BL_DISPLAY_MODE ConsoleGraphicalResolutionList[]
NTSTATUS EfiOpenProtocol(_In_ EFI_HANDLE Handle, _In_ EFI_GUID *Protocol, _Out_ PVOID *Interface)
ULONG ConsoleGraphicalResolutionListSize
VOID BlDisplayInvalidateOemBitmap(VOID)
#define BL_DISPLAY_GRAPHICS_FORCED_HIGH_RES_MODE_FLAG
#define BL_DISPLAY_GRAPHICS_FORCED_VIDEO_MODE_FLAG
NTSTATUS BlMmMapPhysicalAddressEx(_In_ PVOID *VirtualAddress, _In_ ULONG Attributes, _In_ ULONGLONG Size, _In_ PHYSICAL_ADDRESS PhysicalAddress)
VOID EfiGopGetFrameBuffer(_In_ EFI_GRAPHICS_OUTPUT_PROTOCOL *GopInterface, _Out_ PHYSICAL_ADDRESS *FrameBuffer, _Out_ UINTN *FrameBufferSize)
ULONG ConsoleGraphicalResolutionListFlags
NTSTATUS EfiGopSetMode(_In_ EFI_GRAPHICS_OUTPUT_PROTOCOL *GopInterface, _In_ ULONG Mode)
#define STATUS_NOT_SUPPORTED
#define STATUS_NOT_IMPLEMENTED
#define NT_SUCCESS(StatCode)
NTSTATUS ConsoleEfiGopFindModeFromAllowed(_In_ EFI_GRAPHICS_OUTPUT_PROTOCOL *GopProtocol, _In_ PBL_DISPLAY_MODE SupportedModes, _In_ ULONG MaximumIndex, _Out_ PULONG SupportedMode)
NTSTATUS ConsoleEfiGopEnable(_In_ PBL_GRAPHICS_CONSOLE GraphicsConsole)
BOOLEAN ConsoleEfiGopIsPixelFormatSupported(_In_ EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Mode)
NTSTATUS ConsoleEfiGopOpen(_In_ PBL_GRAPHICS_CONSOLE GraphicsConsole)
NTSTATUS ConsoleEfiGopGetGraphicalFormat(_In_ EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *ModeInfo, _Out_ PULONG PixelDepth)
VOID ConsoleEfiGopClose(_In_ PBL_GRAPHICS_CONSOLE GraphicsConsole)
#define RtlEqualMemory(dst, src, len)
EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE * Mode
#define STATUS_UNSUCCESSFUL