GCC cleanup for all EDK I DXE libraries.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4969 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -313,7 +313,7 @@ Returns:
|
||||
EFI_STATUS Status;
|
||||
EFI_CONSOLE_CONTROL_PROTOCOL *ConsoleControl;
|
||||
|
||||
Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, &ConsoleControl);
|
||||
Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, (VOID **) &ConsoleControl);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
@@ -398,7 +398,7 @@ Returns:
|
||||
UINT32 RefreshRate;
|
||||
EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput;
|
||||
|
||||
Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, &ConsoleControl);
|
||||
Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, (VOID **) &ConsoleControl);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
@@ -407,20 +407,20 @@ Returns:
|
||||
//
|
||||
// Try to open GOP first
|
||||
//
|
||||
Status = gBS->HandleProtocol (gST->ConsoleOutHandle, &gEfiGraphicsOutputProtocolGuid, &GraphicsOutput);
|
||||
Status = gBS->HandleProtocol (gST->ConsoleOutHandle, &gEfiGraphicsOutputProtocolGuid, (VOID **) &GraphicsOutput);
|
||||
if (EFI_ERROR (Status)) {
|
||||
GraphicsOutput = NULL;
|
||||
//
|
||||
// Open GOP failed, try to open UGA
|
||||
//
|
||||
Status = gBS->HandleProtocol (gST->ConsoleOutHandle, &gEfiUgaDrawProtocolGuid, &UgaDraw);
|
||||
Status = gBS->HandleProtocol (gST->ConsoleOutHandle, &gEfiUgaDrawProtocolGuid, (VOID **) &UgaDraw);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
}
|
||||
|
||||
Badging = NULL;
|
||||
Status = gBS->LocateProtocol (&gEfiOEMBadgingProtocolGuid, NULL, &Badging);
|
||||
Status = gBS->LocateProtocol (&gEfiOEMBadgingProtocolGuid, NULL, (VOID **) &Badging);
|
||||
|
||||
ConsoleControl->SetMode (ConsoleControl, EfiConsoleControlScreenGraphics);
|
||||
|
||||
@@ -462,7 +462,7 @@ Returns:
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
Status = GetGraphicsBitMapFromFVEx (ImageHandle, LogoFile, &ImageData, &ImageSize);
|
||||
Status = GetGraphicsBitMapFromFVEx (ImageHandle, LogoFile, (VOID **) &ImageData, &ImageSize);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
@@ -476,7 +476,7 @@ Returns:
|
||||
Status = ConvertBmpToGopBlt (
|
||||
ImageData,
|
||||
ImageSize,
|
||||
&Blt,
|
||||
(VOID **) &Blt,
|
||||
&BltSize,
|
||||
&Height,
|
||||
&Width
|
||||
@@ -609,7 +609,7 @@ Returns:
|
||||
EFI_STATUS Status;
|
||||
EFI_CONSOLE_CONTROL_PROTOCOL *ConsoleControl;
|
||||
|
||||
Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, &ConsoleControl);
|
||||
Status = gBS->LocateProtocol (&gEfiConsoleControlProtocolGuid, NULL, (VOID **) &ConsoleControl);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
@@ -66,22 +66,22 @@ Abstract:
|
||||
#endif
|
||||
|
||||
static EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {
|
||||
0x00, 0x00, 0x00, 0x00,
|
||||
0x98, 0x00, 0x00, 0x00,
|
||||
0x00, 0x98, 0x00, 0x00,
|
||||
0x98, 0x98, 0x00, 0x00,
|
||||
0x00, 0x00, 0x98, 0x00,
|
||||
0x98, 0x00, 0x98, 0x00,
|
||||
0x00, 0x98, 0x98, 0x00,
|
||||
0x98, 0x98, 0x98, 0x00,
|
||||
0x10, 0x10, 0x10, 0x00,
|
||||
0xff, 0x10, 0x10, 0x00,
|
||||
0x10, 0xff, 0x10, 0x00,
|
||||
0xff, 0xff, 0x10, 0x00,
|
||||
0x10, 0x10, 0xff, 0x00,
|
||||
0xf0, 0x10, 0xff, 0x00,
|
||||
0x10, 0xff, 0xff, 0x00,
|
||||
0xff, 0xff, 0xff, 0x00,
|
||||
{0x00, 0x00, 0x00, 0x00},
|
||||
{0x98, 0x00, 0x00, 0x00},
|
||||
{0x00, 0x98, 0x00, 0x00},
|
||||
{0x98, 0x98, 0x00, 0x00},
|
||||
{0x00, 0x00, 0x98, 0x00},
|
||||
{0x98, 0x00, 0x98, 0x00},
|
||||
{0x00, 0x98, 0x98, 0x00},
|
||||
{0x98, 0x98, 0x98, 0x00},
|
||||
{0x10, 0x10, 0x10, 0x00},
|
||||
{0xff, 0x10, 0x10, 0x00},
|
||||
{0x10, 0xff, 0x10, 0x00},
|
||||
{0xff, 0xff, 0x10, 0x00},
|
||||
{0x10, 0x10, 0xff, 0x00},
|
||||
{0xf0, 0x10, 0xff, 0x00},
|
||||
{0x10, 0xff, 0xff, 0x00},
|
||||
{0xff, 0xff, 0xff, 0x00},
|
||||
};
|
||||
|
||||
|
||||
@@ -393,7 +393,7 @@ Returns:
|
||||
Status = gBS->HandleProtocol (
|
||||
Handle,
|
||||
&gEfiGraphicsOutputProtocolGuid,
|
||||
&GraphicsOutput
|
||||
(VOID **) &GraphicsOutput
|
||||
);
|
||||
|
||||
UgaDraw = NULL;
|
||||
@@ -403,7 +403,7 @@ Returns:
|
||||
Status = gBS->HandleProtocol (
|
||||
Handle,
|
||||
&gEfiUgaDrawProtocolGuid,
|
||||
&UgaDraw
|
||||
(VOID **) &UgaDraw
|
||||
);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
@@ -414,7 +414,7 @@ Returns:
|
||||
Status = gBS->HandleProtocol (
|
||||
Handle,
|
||||
&gEfiSimpleTextOutProtocolGuid,
|
||||
&Sto
|
||||
(VOID **) &Sto
|
||||
);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
@@ -504,7 +504,7 @@ Returns:
|
||||
Status = gBS->LocateProtocol (
|
||||
&gEfiPrintProtocolGuid,
|
||||
NULL,
|
||||
&PrintProtocol
|
||||
(VOID **) &PrintProtocol
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user