summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Include
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-25 13:47:45 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-25 13:47:45 +0000
commit8e8227d1a3d7361dcc3b3080509903c7b96b57f4 (patch)
treec6a6124e5bc10c4c748c7d568759fb73bf492bd2 /IntelFrameworkModulePkg/Include
parent745ed9b412dc18d9e189e754a2303ceb7a76fe5f (diff)
downloadedk2-8e8227d1a3d7361dcc3b3080509903c7b96b57f4.zip
edk2-8e8227d1a3d7361dcc3b3080509903c7b96b57f4.tar.gz
edk2-8e8227d1a3d7361dcc3b3080509903c7b96b57f4.tar.bz2
Code scrub for PCI Bus module and PciIncompatibleDeviceSupportLib module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8662 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Include')
-rw-r--r--IntelFrameworkModulePkg/Include/Library/PciIncompatibleDeviceSupportLib.h51
1 files changed, 28 insertions, 23 deletions
diff --git a/IntelFrameworkModulePkg/Include/Library/PciIncompatibleDeviceSupportLib.h b/IntelFrameworkModulePkg/Include/Library/PciIncompatibleDeviceSupportLib.h
index a518991..f9efd07 100644
--- a/IntelFrameworkModulePkg/Include/Library/PciIncompatibleDeviceSupportLib.h
+++ b/IntelFrameworkModulePkg/Include/Library/PciIncompatibleDeviceSupportLib.h
@@ -1,15 +1,15 @@
/** @file
- PCI Incompatible device support Libary. Platform can implement an
+ PCI Incompatible device support Libary. Platform can implement an
instance to support the incompatible PCI devices.
-Copyright (c) 2006 - 2009, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which accompanies this distribution. The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+Copyright (c) 2006 - 2009, Intel Corporation
+All rights reserved. This program and the accompanying materials
+are licensed and made available under the terms and conditions of the BSD License
+which accompanies this distribution. The full text of the license may be found at
+http://opensource.org/licenses/bsd-license.php
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
@@ -65,20 +65,23 @@ typedef struct {
} EFI_PCI_RESOUCE_DESCRIPTOR;
/**
- Checks the incompatible device list for ACPI resource update and return
+ Check the incompatible device list for ACPI resource update and return
the configuration.
This function searches the incompatible device list according to request
information. If the PCI device belongs to the devices list, corresponding
configuration informtion will be returned, in the meantime return EFI_SUCCESS.
- @param PciDeviceInfo A pointer to PCI device information.
- @param Configuration Returned information.
+ @param PciDeviceInfo A pointer to PCI device information.
+ @param Configuration Returned information.
+
+ @retval EFI_SUCCESS If check incompatible device successfully.
+ @retval EFI_ABORTED No any resource type.
+ @retval EFI_OUT_OF_RESOURCES No memory available.
+ @retval EFI_UNSUPPORTED Invalid Tag encounted.
- @retval EFI_SUCCESS The incompatible device is supported.
- @retval EFI_UNSUPPORTED The incompatible device is not supported.
**/
-RETURN_STATUS
+EFI_STATUS
EFIAPI
PciResourceUpdateCheck (
IN EFI_PCI_DEVICE_INFO *PciDeviceInfo,
@@ -86,7 +89,7 @@ PciResourceUpdateCheck (
);
/**
- Checks the incompatible device list and return configuration register mask values.
+ Check the incompatible device list and return configuraton register mask values.
This function searches the incompatible device list according to request
information. If the PCI device belongs to the devices list, corresponding
@@ -97,10 +100,11 @@ PciResourceUpdateCheck (
@param Offset The address within the PCI configuration space.
@param Configuration Returned information.
- @retval EFI_SUCCESS The incompatible device is supported.
- @retval EFI_UNSUPPORTED The incompatible device is not supported.
+ @retval EFI_SUCCESS If check incompatible device successfully.
+ @retval EFI_UNSUPPORTED Failed to check incompatibility device.
+
**/
-RETURN_STATUS
+EFI_STATUS
EFIAPI
PciRegisterUpdateCheck (
IN EFI_PCI_DEVICE_INFO *PciDeviceInfo,
@@ -110,7 +114,7 @@ PciRegisterUpdateCheck (
);
/**
- Checks the incompatible device list for access width incompatibility and
+ Check the incompatible device list for access width incompatibility and
return the configuration
This function searches the incompatible device list for access width
@@ -124,10 +128,11 @@ PciRegisterUpdateCheck (
@param AccessWidth Access width needs to check incompatibility.
@param Configuration Returned information.
- @retval EFI_SUCCESS The incompatible device is supported.
- @retval EFI_UNSUPPORTED The incompatible device is not supported.
+ @retval EFI_SUCCESS If check incompatible device successfully.
+ @retval EFI_UNSUPPORTED Failed to check incompatibility device.
+
**/
-RETURN_STATUS
+EFI_STATUS
EFIAPI
PciRegisterAccessCheck (
IN EFI_PCI_DEVICE_INFO *PciDeviceInfo,