Status = gBS->OpenProtocol (\r
Controller, \r
&gEfiPciIoProtocolGuid, \r
- &PciIo,\r
+ (VOID**)&PciIo,\r
This->DriverBindingHandle,\r
Controller,\r
EFI_OPEN_PROTOCOL_BY_DRIVER\r
Status = gBS->OpenProtocol (\r
Controller, \r
&gEfiPciIoProtocolGuid, \r
- &PciIo,\r
+ (VOID**)&PciIo,\r
This->DriverBindingHandle, \r
Controller, \r
EFI_OPEN_PROTOCOL_BY_DRIVER \r
Status = gBS->AllocatePool (\r
EfiBootServicesData,\r
sizeof(PCAT_ISA_ACPI_DEV),\r
- &PcatIsaAcpiDev\r
+ (VOID**)&PcatIsaAcpiDev\r
);\r
if (EFI_ERROR (Status)) {\r
goto Done;\r
Status = gBS->OpenProtocol (\r
Controller, \r
&gEfiIsaAcpiProtocolGuid, \r
- &IsaAcpi,\r
+ (VOID**)&IsaAcpi,\r
This->DriverBindingHandle, \r
Controller, \r
EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
--*/\r
{\r
UINT32 Value;\r
- UINT64 BarValue64;\r
+ //UINT64 BarValue64;\r
UINT32 OriginalValue;\r
UINT32 Mask;\r
UINT32 Data;\r
\r
OriginalValue = 0;\r
Value = 0;\r
- BarValue64 = 0;\r
+ //BarValue64 = 0;\r
\r
Status = BarExisted (\r
PciIoDevice,\r
// Need to treat it as no-bar\r
//\r
if (PciIoDevice->PciBar[BarIndex].Length == 0) {\r
- PciIoDevice->PciBar[BarIndex].BarType = 0;\r
+ PciIoDevice->PciBar[BarIndex].BarType = PciBarTypeUnknown;\r
}\r
\r
PciIoDevice->PciBar[BarIndex].Prefetchable = FALSE;\r
Count = 1;\r
}\r
\r
- Width &= 0x03;\r
+ Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & 0x03);\r
\r
if ((*Offset + Count * ((UINTN)1 << Width)) - 1 >= PciIoDevice->PciBar[BarIndex].Length) {\r
return EFI_INVALID_PARAMETER;\r
// If Width is EfiPciIoWidthFifoUintX then convert to EfiPciIoWidthUintX\r
// If Width is EfiPciIoWidthFillUintX then convert to EfiPciIoWidthUintX\r
//\r
- Width &= 0x03;\r
+ Width = (EFI_PCI_IO_PROTOCOL_WIDTH) (Width & 0x03);\r
\r
if (PciIoDevice->IsPciExp) {\r
if ((*Offset + Count * ((UINTN)1 << Width)) - 1 >= PCI_EXP_MAX_CONFIG_OFFSET) {\r
}\r
\r
if (PciIoDevice->Attributes & EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE) {\r
- Operation = Operation + EfiPciOperationBusMasterRead64;\r
+ Operation = (EFI_PCI_IO_PROTOCOL_OPERATION) (Operation + EfiPciOperationBusMasterRead64);\r
}\r
\r
Status = PciIoDevice->PciRootBridgeIo->Map (\r
return TRUE;\r
}\r
\r
- return (PciDeviceExisted (PciDevice1->Parent, PciDevice2)|| PciDeviceExisted (PciDevice2->Parent, PciDevice1));\r
+ return (BOOLEAN) ((PciDeviceExisted (PciDevice1->Parent, PciDevice2)|| PciDeviceExisted (PciDevice2->Parent, PciDevice1)));\r
}\r
return EFI_INVALID_PARAMETER;\r
}\r
if (Width >= MMIO_COPY_UINT8) {\r
- Width = Width - MMIO_COPY_UINT8;\r
+ Width = (EFI_IO_WIDTH) (Width - MMIO_COPY_UINT8);\r
Status = Private->PciRootBridgeIo->CopyMem (\r
Private->PciRootBridgeIo,\r
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,\r
return EFI_INVALID_PARAMETER;\r
}\r
if (Width >= MMIO_COPY_UINT8) {\r
- Width = Width - MMIO_COPY_UINT8;\r
+ Width = (EFI_IO_WIDTH) (Width - MMIO_COPY_UINT8);\r
Status = Private->PciRootBridgeIo->CopyMem (\r
Private->PciRootBridgeIo,\r
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,\r
UINTN OutStride;\r
\r
\r
- Width = Width & 0x03;\r
+ Width = (EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) (Width & 0x03);\r
Stride = (UINTN)1 << Width;\r
InStride = InStrideFlag ? Stride : 0;\r
OutStride = OutStrideFlag ? Stride : 0;\r