}else{/// If current video resolution is not same with the new one, set new video resolution.// In this case, the driver which produces simple text out need be restarted.//Status = GraphicsOutput->SetMode(GraphicsOutput, ModeNumber);if(!EFI_ERROR (Status)) { FreePool (Info);break; }...
// EFI_GRAPHICS_OUTPUT_BLT_PIXEL and EFI_UGA_PIXEL have the same // layout, and the header from TianoCore actually defines them // to be the same type. GraphicsOutput->Blt(GraphicsOutput, (EFI_GRAPHICS_OUTPUT_BLT_PIXEL *)FillColor, EfiBltVideoFill, 0, 0, 0, 0, GraphicsOutput->Mode-...
操作系统的启动界面:在操作系统启动过程中,可以使用EFI_GRAPHICS_OUTPUT_PROTOCOL Blt函数来显示启动界面,包括进度条、LOGO等。 图形界面应用程序:在图形界面应用程序中,可以使用EFI_GRAPHICS_OUTPUT_PROTOCOL Blt函数来实现图像的显示、动画效果等。 游戏开发:在游戏开发中,可以使用EFI_GRAPHICS_OUTPUT_PROTOCOL Blt函数...
gST->ConOut还会跟gST->ConsoleOutHandle对应,最终跟一个gEfiSimpleTextOutProtocolGuid对应。 gEfiSimpleTextOutProtocolGuid的安装对应到不同的情况,比如对于串口就需要有gEfiSerialIoProtocolGuid,对于显示器就需要依赖于gEfiUgaDrawProtocolGuid或者gEfiGraphicsOutputProtocolGuid等与图形输出有关的protocols。 而gST->ConOu...
IN EFI_GUID *Protocol, IN VOID *Registration, OUT VOID **Interface ){ EFI_STATUS Status; VOID *InterfaceIn = *Interface; Status = gOrgBS.LocateProtocol(Protocol, Registration, Interface); PRINT("->LocateProtocol(%s, %p, %p/%p) = %r\n", GuidStr(Protocol), Registration, InterfaceIn, *In...
Status = SystemTable->BootServices->LocateProtocol( &gEfiGraphicsOutputProtocolGuid, NULL, (VOID **)&GraphicsOutput ); if (EFI_ERROR(Status)) { return Status; } // 获取当前图形模式信息 GraphicsOutput->GetMode(GraphicsOutput->Mode->Mode, &Width, &Height, &Info); ...
efi_simple_text_output_protocol_t *con_out; unsigned long stderr_handle; unsigned long stderr; efi_runtime_services_t *runtime; //内核运行时调用uefi的接口 efi_boot_services_t *boottime; //内核早期启动是调用uefi的接口 unsigned long nr_tables; ...
EFI_LOADED_IMAGE_PROTOCOL available EFI_GRAPHICS_OUTPUT_PROTOCOL available EFI_HII_STRING_PROTOCOL stub for SCT -- needs to be rewritten. Used by Shell/SCT EFI_HII_DATABASE_PROTOCOL available, only needed for shell (and hence needed by SCT) EFI_HII_CONFIG_ROUTING_PROTOCOL removed as was only...
OCS: Missing key PciIo, context <ProtocolOverrides>! OCS: Missing key ResizeUsePciRbIo, context <Quirks>! Serialisation returns 28 errors! UEFI->Output->InitialMode is illegal (Can only be Auto, Text, or Graphics)! CheckUefi returns 1 error! Completed validating /Volumes/Data/myname/Desktop...
SIMPLE_TEXT_OUTPUT_INTERFACE *conOut = systemTable->ConOut; EFI_EVENT event = systemTable->ConIn->WaitForKey; UINTN index;inti, modeCount; EFI_STATUS status = bs->LocateProtocol(&GraphicsOutputProtocolGUID,NULL, (void**)&graphicsProtocol);if(EFI_ERROR(status) || graphicsProtocol ==NULL) ...