]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.c
MdeModulePkg/SdMmcPciHcDxe: Add V3 64b DMA Support
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / IncompatiblePciDeviceSupportDxe / IncompatiblePciDeviceSupport.c
index 149662d14dc17f8c22c3a97cf7e791ddb3c6debf..6764a85dd135f322f22a3ed7e29b7657796650e4 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   This module is one template module for Incompatible PCI Device Support protocol.\r
   It includes one incompatible pci devices list template.\r
-  \r
+\r
   Incompatible PCI Device Support protocol allows the PCI bus driver to support\r
   resource allocation for some PCI devices that do not comply with the PCI Specification.\r
 \r
-Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -68,7 +68,7 @@ typedef struct {
                                 the configuration requirement.\r
 \r
   @retval EFI_SUCCESS           Successfully got ACPI resource for specified PCI device.\r
-  @retval EFI_INVALID_PARAMETER Configuration is NULL. \r
+  @retval EFI_INVALID_PARAMETER Configuration is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  No memory available.\r
   @retval EFI_UNSUPPORTED       The specified PCI device wasn't supported.\r
 \r
@@ -233,7 +233,7 @@ IncompatiblePciDeviceSupportEntryPoint (
                                 the configuration requirement.\r
 \r
   @retval EFI_SUCCESS           Successfully got ACPI resource for specified PCI device.\r
-  @retval EFI_INVALID_PARAMETER Configuration is NULL. \r
+  @retval EFI_INVALID_PARAMETER Configuration is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  No memory available.\r
   @retval EFI_UNSUPPORTED       The specified PCI device wasn't supported.\r
 \r
@@ -344,7 +344,7 @@ PCheckDevice (
         Dsc = (EFI_PCI_RESOUCE_DESCRIPTOR *) (ListPtr + 1);\r
 \r
         AcpiPtr->Desc = ACPI_ADDRESS_SPACE_DESCRIPTOR;\r
-        AcpiPtr->Len = (UINT16) sizeof (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR);\r
+        AcpiPtr->Len = (UINT16) sizeof (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR) - 3;\r
         AcpiPtr->ResType = (UINT8) Dsc->ResType;\r
         AcpiPtr->GenFlag = (UINT8) Dsc->GenFlag;\r
         AcpiPtr->SpecificFlag = (UINT8) Dsc->SpecificFlag;\r