mirror of https://github.com/acidanthera/audk.git
StartPciDevicesOnBridge() should correct return value.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9205 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
93c288f2fb
commit
0c3312f503
|
@ -586,7 +586,7 @@ DeRegisterPciDevice (
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge
|
Start to manage the PCI device on the specified root bridge or PCI-PCI Bridge.
|
||||||
|
|
||||||
@param Controller The root bridge handle.
|
@param Controller The root bridge handle.
|
||||||
@param RootBridge A pointer to the PCI_IO_DEVICE.
|
@param RootBridge A pointer to the PCI_IO_DEVICE.
|
||||||
|
@ -597,7 +597,7 @@ DeRegisterPciDevice (
|
||||||
@retval EFI_NOT_READY Device is not allocated.
|
@retval EFI_NOT_READY Device is not allocated.
|
||||||
@retval EFI_UNSUPPORTED Device only support PCI-PCI bridge.
|
@retval EFI_UNSUPPORTED Device only support PCI-PCI bridge.
|
||||||
@retval EFI_NOT_FOUND Can not find the specific device.
|
@retval EFI_NOT_FOUND Can not find the specific device.
|
||||||
@retval EFI_SUCCESS Success to start Pci device on bridge.
|
@retval EFI_SUCCESS Success to start Pci devices on bridge.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -617,6 +617,7 @@ StartPciDevicesOnBridge (
|
||||||
LIST_ENTRY *CurrentLink;
|
LIST_ENTRY *CurrentLink;
|
||||||
UINT64 Supports;
|
UINT64 Supports;
|
||||||
|
|
||||||
|
PciIoDevice = NULL;
|
||||||
CurrentLink = RootBridge->ChildList.ForwardLink;
|
CurrentLink = RootBridge->ChildList.ForwardLink;
|
||||||
|
|
||||||
while (CurrentLink != NULL && CurrentLink != &RootBridge->ChildList) {
|
while (CurrentLink != NULL && CurrentLink != &RootBridge->ChildList) {
|
||||||
|
@ -749,7 +750,11 @@ StartPciDevicesOnBridge (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return EFI_NOT_FOUND;
|
if (PciIoDevice == NULL) {
|
||||||
|
return EFI_NOT_FOUND;
|
||||||
|
} else {
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -146,7 +146,7 @@ DeRegisterPciDevice (
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Start to manage the PCI device on specified the root bridge or PCI-PCI Bridge
|
Start to manage the PCI device on the specified root bridge or PCI-PCI Bridge.
|
||||||
|
|
||||||
@param Controller The root bridge handle.
|
@param Controller The root bridge handle.
|
||||||
@param RootBridge A pointer to the PCI_IO_DEVICE.
|
@param RootBridge A pointer to the PCI_IO_DEVICE.
|
||||||
|
@ -157,7 +157,7 @@ DeRegisterPciDevice (
|
||||||
@retval EFI_NOT_READY Device is not allocated.
|
@retval EFI_NOT_READY Device is not allocated.
|
||||||
@retval EFI_UNSUPPORTED Device only support PCI-PCI bridge.
|
@retval EFI_UNSUPPORTED Device only support PCI-PCI bridge.
|
||||||
@retval EFI_NOT_FOUND Can not find the specific device.
|
@retval EFI_NOT_FOUND Can not find the specific device.
|
||||||
@retval EFI_SUCCESS Success to start Pci device on bridge.
|
@retval EFI_SUCCESS Success to start Pci devices on bridge.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
|
Loading…
Reference in New Issue