Status = gBS->AllocatePool (\r
EfiBootServicesData,\r
sizeof (BIOS_VIDEO_DEV),\r
- &BiosVideoPrivate\r
+ (VOID**)&BiosVideoPrivate\r
);\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
Status = gBS->HandleProtocol (\r
Controller,\r
&gEfiDevicePathProtocolGuid,\r
- &BiosVideoPrivate->DevicePath\r
+ (VOID**)&BiosVideoPrivate->DevicePath\r
);\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
Status = gBS->AllocatePool (\r
EfiBootServicesData,\r
BiosVideoPrivate->ModeData[Index].BytesPerScanLine,\r
- &BiosVideoPrivate->LineBuffer\r
+ (VOID**)&BiosVideoPrivate->LineBuffer\r
);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
Status = gBS->AllocatePool (\r
EfiBootServicesData,\r
4 * 480 * 80,\r
- &BiosVideoPrivate->VgaFrameBuffer\r
+ (VOID**)&BiosVideoPrivate->VgaFrameBuffer\r
);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
Status = gBS->AllocatePool (\r
EfiBootServicesData,\r
BiosVideoPrivate->ModeData[Index].BytesPerScanLine * BiosVideoPrivate->ModeData[Index].VerticalResolution,\r
- &BiosVideoPrivate->VbeFrameBuffer\r
+ (VOID**)&BiosVideoPrivate->VbeFrameBuffer\r
);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
);\r
}\r
break;\r
+ default:\r
+ break;\r
}\r
\r
gBS->RestoreTPL (OriginalTPL);\r
PciIo,\r
EfiPciIoWidthUint8,\r
EFI_PCI_IO_PASS_THROUGH_BAR,\r
- (UINT64) Source,\r
+ (UINT64) (UINTN)Source,\r
WidthInBytes,\r
(VOID *) Destination\r
);\r
PciIo,\r
EfiPciIoWidthUint8,\r
EFI_PCI_IO_PASS_THROUGH_BAR,\r
- (UINT64) (DestinationAddress + Offset),\r
+ (UINT64) ((UINTN)DestinationAddress + Offset),\r
EFI_PCI_IO_PASS_THROUGH_BAR,\r
- (UINT64) (SourceAddress + Offset),\r
+ (UINT64) ((UINTN)SourceAddress + Offset),\r
Bytes\r
);\r
}\r
PciIo,\r
EfiPciIoWidthUint8,\r
EFI_PCI_IO_PASS_THROUGH_BAR,\r
- (UINT64) Address1,\r
+ (UINT64) (UINTN) Address1,\r
1,\r
&Data\r
);\r
PciIo,\r
EfiPciIoWidthUint8,\r
EFI_PCI_IO_PASS_THROUGH_BAR,\r
- (UINT64) Address1,\r
+ (UINT64) (UINTN) Address1,\r
1,\r
&BiosVideoPrivate->LineBuffer[Index1]\r
);\r
}\r
}\r
\r
+ break;\r
+ default:\r
break;\r
}\r
\r