diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-11 15:43:50 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-11-11 15:43:50 +0000 |
commit | 2067710de051070c1eb0fce033adcb9f6c23b1dc (patch) | |
tree | e47c22eda960176ff6dad13f754da3cfa6287ee0 /IntelFrameworkModulePkg/Bus | |
parent | 1232b21473646661a4ac1ae4b7bf5113d4613e83 (diff) | |
download | edk2-platforms-2067710de051070c1eb0fce033adcb9f6c23b1dc.tar.xz |
1, Add <Library/DevicePathLib.h> for all source that use device path utility macros
2, Add DevicePathLib library class to module's INF that use device path utility macros
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6457 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Bus')
-rw-r--r-- | IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c index 9635cb98e4..584f4f5c9e 100644 --- a/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c +++ b/IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.c @@ -612,8 +612,8 @@ StartPciDevicesOnBridge ( //
// Get the next device path
//
- CurrentDevicePath = EfiNextDevicePathNode (RemainingDevicePath);
- if (EfiIsDevicePathEnd (CurrentDevicePath)) {
+ CurrentDevicePath = NextDevicePathNode (RemainingDevicePath);
+ if (IsDevicePathEnd (CurrentDevicePath)) {
return EFI_SUCCESS;
}
@@ -1015,7 +1015,7 @@ GetHpcPciAddress ( //
// Get the remaining device path for this PCI device, if it is a PCI device
//
- while (!EfiIsDevicePathEnd (CurrentDevicePath)) {
+ while (!IsDevicePathEnd (CurrentDevicePath)) {
Node.DevPath = CurrentDevicePath;
@@ -1025,7 +1025,7 @@ GetHpcPciAddress ( if ((Node.DevPath->Type != HARDWARE_DEVICE_PATH) ||
((Node.DevPath->SubType != HW_PCI_DP) &&
(DevicePathNodeLength (Node.DevPath) != sizeof (PCI_DEVICE_PATH)))) {
- CurrentDevicePath = EfiNextDevicePathNode (CurrentDevicePath);
+ CurrentDevicePath = NextDevicePathNode (CurrentDevicePath);
continue;
}
@@ -1035,7 +1035,7 @@ GetHpcPciAddress ( //
// Check if it is not PCI device path
//
- if (EfiIsDevicePathEnd (CurrentDevicePath)) {
+ if (IsDevicePathEnd (CurrentDevicePath)) {
return EFI_NOT_FOUND;
}
@@ -1094,7 +1094,7 @@ GetHpcPciAddressFromRootBridge ( Node.DevPath = CurrentDevicePath;
Temp = NULL;
- while (!EfiIsDevicePathEnd (CurrentDevicePath)) {
+ while (!IsDevicePathEnd (CurrentDevicePath)) {
CurrentLink = RootBridge->ChildList.ForwardLink;
Node.DevPath = CurrentDevicePath;
@@ -1121,14 +1121,14 @@ GetHpcPciAddressFromRootBridge ( }
- CurrentDevicePath = EfiNextDevicePathNode (CurrentDevicePath);
+ CurrentDevicePath = NextDevicePathNode (CurrentDevicePath);
}
if (MisMatch) {
- CurrentDevicePath = EfiNextDevicePathNode (CurrentDevicePath);
+ CurrentDevicePath = NextDevicePathNode (CurrentDevicePath);
- if (EfiIsDevicePathEnd (CurrentDevicePath)) {
+ if (IsDevicePathEnd (CurrentDevicePath)) {
*PciAddress = EFI_PCI_ADDRESS (RootBridge->BusNumber, Node.Pci->Device, Node.Pci->Function, 0);
return EFI_SUCCESS;
}
|