20#define LOWEST_SUPPORTED_RES 1
25#ifdef EFI_UGA_DRAW_PROTOCOL_GUID
34#ifdef EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID
44 {0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000},
45 {0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000},
64 TRACE(
"Failed to find GOP with status %d\n",
Status);
104 pPixelBitmask =
NULL;
EFI_GRAPHICS_PIXEL_FORMAT
@ PixelRedGreenBlueReserved8BitPerColor
@ PixelBlueGreenRedReserved8BitPerColor
#define EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID
#define DBG_DEFAULT_CHANNEL(ch)
enum tagVIDEODISPLAYMODE VIDEODISPLAYMODE
#define RTL_BITS_OF(sizeOfArg)
static VIDEODISPLAYMODE DisplayMode
EFI_LOCATE_PROTOCOL LocateProtocol
EFI_PHYSICAL_ADDRESS FrameBufferBase
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION * Info
EFI_BOOT_SERVICES * BootServices
EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE * Mode
EFI_GRAPHICS_OUTPUT_PROTOCOL_SET_MODE SetMode
Physical format of an RGB pixel, specified with per-component bit-masks. A bit being set defines thos...
VOID UefiVideoGetPaletteColor(UCHAR Color, UCHAR *Red, UCHAR *Green, UCHAR *Blue)
EFI_GUID EfiGraphicsOutputProtocol
VIDEODISPLAYMODE UefiVideoSetDisplayMode(PCSTR DisplayMode, BOOLEAN Init)
VOID UefiVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue)
VOID UefiVideoClearScreen(UCHAR Attr)
VOID UefiVideoHideShowTextCursor(BOOLEAN Show)
ULONG UefiVideoGetBufferSize(VOID)
EFI_STATUS UefiInitializeVideo(VOID)
VOID UefiVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
VOID UefiVideoSetTextCursorPosition(UCHAR X, UCHAR Y)
EFI_SYSTEM_TABLE * GlobalSystemTable
#define LOWEST_SUPPORTED_RES
VOID UefiVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
VOID UefiVideoCopyOffScreenBufferToVRAM(PVOID Buffer)
EFI_HANDLE GlobalImageHandle
BOOLEAN UefiVideoIsPaletteFixed(VOID)
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
_In_ HFONT _Out_ PUINT Height
VOID FbConsClearScreen(_In_ UCHAR Attr)
VOID FbConsGetDisplaySize(_Out_ PULONG Width, _Out_ PULONG Height, _Out_ PULONG Depth)
Returns the width and height in number of CGA characters/attributes, of a full text-mode CGA-style ch...
ULONG FbConsGetBufferSize(VOID)
Returns the size in bytes, of a full text-mode CGA-style character buffer rectangle that can fill the...
BOOLEAN VidFbInitializeVideo(_In_ ULONG_PTR BaseAddress, _In_ ULONG BufferSize, _In_ UINT32 ScreenWidth, _In_ UINT32 ScreenHeight, _In_ UINT32 PixelsPerScanLine, _In_ UINT32 BitsPerPixel, _In_opt_ PPIXEL_BITMASK PixelMasks)
Initializes internal framebuffer information based on the given parameters.
VOID FbConsPutChar(_In_ UCHAR Char, _In_ UCHAR Attr, _In_ ULONG Column, _In_ ULONG Row)
Displays a character with specific text attributes at a given position.
VOID FbConsCopyOffScreenBufferToVRAM(_In_ PVOID Buffer)
Copies a full text-mode CGA-style character buffer rectangle to the console.
FORCEINLINE ULONG PixelBitmasksToBpp(_In_ ULONG RedMask, _In_ ULONG GreenMask, _In_ ULONG BlueMask, _In_ ULONG ReservedMask)
Calculates the number of bits per pixel ("PixelDepth") for the given pixel format,...
_In_opt_ PALLOCATE_FUNCTION _In_opt_ PFREE_FUNCTION _In_ ULONG _In_ SIZE_T _In_ ULONG _In_ USHORT Depth