]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/IsaAcpiDxe/PcatIsaAcpi.c
8254TimerDxe: DuetPkg => PcAtChipsetPkg
[mirror_edk2.git] / DuetPkg / IsaAcpiDxe / PcatIsaAcpi.c
index a6187287918f87d46677b7708b333cd426ce1e7d..a0f4cdfd40a0df99cc57d04552843ae072737709 100644 (file)
@@ -92,7 +92,7 @@ Returns:
   Status = gBS->OpenProtocol (\r
                   Controller,  \r
                   &gEfiPciIoProtocolGuid, \r
-                  &PciIo,\r
+                  (VOID**)&PciIo,\r
                   This->DriverBindingHandle,\r
                   Controller,\r
                   EFI_OPEN_PROTOCOL_BY_DRIVER\r
@@ -115,14 +115,14 @@ Returns:
         //\r
         // See if this is a standard PCI to ISA Bridge from the Base Code and Class Code\r
         //\r
-        if (Pci.Hdr.ClassCode[1] == PCI_CLASS_ISA) {\r
+        if (Pci.Hdr.ClassCode[1] == PCI_CLASS_BRIDGE_ISA) {\r
           Status = EFI_SUCCESS;\r
         } \r
 \r
         //\r
         // See if this is an Intel PCI to ISA bridge in Positive Decode Mode\r
         //\r
-        if (Pci.Hdr.ClassCode[1] == PCI_CLASS_ISA_POSITIVE_DECODE &&\r
+        if (Pci.Hdr.ClassCode[1] == PCI_CLASS_BRIDGE_ISA_PDECODE &&\r
             Pci.Hdr.VendorId == 0x8086 && \r
             Pci.Hdr.DeviceId == 0x7110) {\r
           Status = EFI_SUCCESS;\r
@@ -171,7 +171,7 @@ Returns:
   Status = gBS->OpenProtocol (\r
                   Controller,       \r
                   &gEfiPciIoProtocolGuid, \r
-                  &PciIo,\r
+                  (VOID**)&PciIo,\r
                   This->DriverBindingHandle,   \r
                   Controller,   \r
                   EFI_OPEN_PROTOCOL_BY_DRIVER \r
@@ -197,7 +197,7 @@ Returns:
   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
@@ -284,7 +284,7 @@ PcatIsaAcpiDriverBindingStop (
   Status = gBS->OpenProtocol (\r
                   Controller, \r
                   &gEfiIsaAcpiProtocolGuid, \r
-                  &IsaAcpi,\r
+                  (VOID**)&IsaAcpi,\r
                   This->DriverBindingHandle,   \r
                   Controller,   \r
                   EFI_OPEN_PROTOCOL_GET_PROTOCOL\r