summaryrefslogtreecommitdiff
path: root/DuetPkg/BiosVideoThunkDxe
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-01 07:31:42 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-01 07:31:42 +0000
commitfe74f17339e9d91f4886cc2406f9ea0bc4d4388c (patch)
tree4eac6025635a71e6a1a875b5f961c4d83eef8494 /DuetPkg/BiosVideoThunkDxe
parentf1294e4a56b71a58c4f054fee14e537d7aca2d52 (diff)
downloadedk2-platforms-fe74f17339e9d91f4886cc2406f9ea0bc4d4388c.tar.xz
fix building issue for linux tool chain
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7739 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/BiosVideoThunkDxe')
-rw-r--r--DuetPkg/BiosVideoThunkDxe/BiosVideo.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/DuetPkg/BiosVideoThunkDxe/BiosVideo.c b/DuetPkg/BiosVideoThunkDxe/BiosVideo.c
index 1b471d9efc..6a8e55a034 100644
--- a/DuetPkg/BiosVideoThunkDxe/BiosVideo.c
+++ b/DuetPkg/BiosVideoThunkDxe/BiosVideo.c
@@ -426,7 +426,7 @@ BiosVideoChildHandleInstall (
Status = gBS->AllocatePool (
EfiBootServicesData,
sizeof (BIOS_VIDEO_DEV),
- &BiosVideoPrivate
+ (VOID**) &BiosVideoPrivate
);
if (EFI_ERROR (Status)) {
goto Done;
@@ -1146,7 +1146,7 @@ BiosVideoCheckForVbe (
Status = gBS->AllocatePool (
EfiBootServicesData,
VESA_BIOS_EXTENSIONS_EDID_BLOCK_SIZE,
- &BiosVideoPrivate->EdidDiscovered.Edid
+ (VOID**) &BiosVideoPrivate->EdidDiscovered.Edid
);
if (EFI_ERROR (Status)) {
goto Done;
@@ -1161,7 +1161,7 @@ BiosVideoCheckForVbe (
Status = gBS->AllocatePool (
EfiBootServicesData,
VESA_BIOS_EXTENSIONS_EDID_BLOCK_SIZE,
- &BiosVideoPrivate->EdidActive.Edid
+ (VOID**)&BiosVideoPrivate->EdidActive.Edid
);
if (EFI_ERROR (Status)) {
goto Done;
@@ -1580,7 +1580,7 @@ BiosVideoGraphicsOutputQueryMode (
Status = gBS->AllocatePool (
EfiBootServicesData,
sizeof (EFI_GRAPHICS_OUTPUT_MODE_INFORMATION),
- Info
+ (VOID**) Info
);
if (EFI_ERROR (Status)) {
return Status;
@@ -1657,7 +1657,7 @@ BiosVideoGraphicsOutputSetMode (
Status = gBS->AllocatePool (
EfiBootServicesData,
ModeData->BytesPerScanLine,
- &BiosVideoPrivate->LineBuffer
+ (VOID**) &BiosVideoPrivate->LineBuffer
);
if (EFI_ERROR (Status)) {
return Status;
@@ -1675,7 +1675,7 @@ BiosVideoGraphicsOutputSetMode (
Status = gBS->AllocatePool (
EfiBootServicesData,
4 * 480 * 80,
- &BiosVideoPrivate->VgaFrameBuffer
+ (VOID**) &BiosVideoPrivate->VgaFrameBuffer
);
if (EFI_ERROR (Status)) {
return Status;
@@ -1694,7 +1694,7 @@ BiosVideoGraphicsOutputSetMode (
Status = gBS->AllocatePool (
EfiBootServicesData,
ModeData->BytesPerScanLine * ModeData->VerticalResolution,
- &BiosVideoPrivate->VbeFrameBuffer
+ (VOID**) &BiosVideoPrivate->VbeFrameBuffer
);
if (EFI_ERROR (Status)) {
return Status;
@@ -1743,7 +1743,7 @@ BiosVideoGraphicsOutputSetMode (
//
// Frame BufferSize remain unchanged
//
- This->Mode->FrameBufferBase = (EFI_PHYSICAL_ADDRESS) ModeData->LinearFrameBuffer;
+ This->Mode->FrameBufferBase = (EFI_PHYSICAL_ADDRESS)(UINTN)ModeData->LinearFrameBuffer;
This->Mode->FrameBufferSize = ModeData->FrameBufferSize;
BiosVideoPrivate->HardwareNeedsStarting = FALSE;
@@ -2120,6 +2120,8 @@ BiosVideoGraphicsOutputVbeBlt (
);
}
break;
+ default:
+ break;
}
gBS->RestoreTPL (OriginalTPL);
@@ -2216,8 +2218,8 @@ VgaReadBitPlanes (
PciIo->Mem.Read (
PciIo,
EfiPciIoWidthUint8,
- EFI_PCI_IO_PASS_THROUGH_BAR,
- (UINT64) Source,
+ (UINT8) EFI_PCI_IO_PASS_THROUGH_BAR,
+ (UINT64)(UINTN) Source,
WidthInBytes,
(VOID *) Destination
);
@@ -2467,9 +2469,9 @@ BiosVideoGraphicsOutputVgaBlt (
PciIo,
EfiPciIoWidthUint8,
EFI_PCI_IO_PASS_THROUGH_BAR,
- (UINT64) (DestinationAddress + Offset),
+ (UINT64) ((UINTN)DestinationAddress + Offset),
EFI_PCI_IO_PASS_THROUGH_BAR,
- (UINT64) (SourceAddress + Offset),
+ (UINT64) ((UINTN)SourceAddress + Offset),
Bytes
);
}
@@ -2673,7 +2675,7 @@ BiosVideoGraphicsOutputVgaBlt (
PciIo,
EfiPciIoWidthUint8,
EFI_PCI_IO_PASS_THROUGH_BAR,
- (UINT64) Address1,
+ (UINT64)(UINTN) Address1,
1,
&Data
);
@@ -2682,7 +2684,7 @@ BiosVideoGraphicsOutputVgaBlt (
PciIo,
EfiPciIoWidthUint8,
EFI_PCI_IO_PASS_THROUGH_BAR,
- (UINT64) Address1,
+ (UINT64)(UINTN) Address1,
1,
&BiosVideoPrivate->LineBuffer[Index1]
);
@@ -2697,6 +2699,8 @@ BiosVideoGraphicsOutputVgaBlt (
}
break;
+ default:
+ break;
}
gBS->RestoreTPL (OriginalTPL);