mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/PciBus: use better name for local variables.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
c745144407
commit
cf81d5a680
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
PCI resouces support functions implemntation for PCI Bus module.
|
||||
|
||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
@ -1052,11 +1052,11 @@ DegradeResource (
|
|||
IN PCI_RESOURCE_NODE *PMem64Node
|
||||
)
|
||||
{
|
||||
PCI_IO_DEVICE *Temp;
|
||||
PCI_IO_DEVICE *PciIoDevice;
|
||||
LIST_ENTRY *ChildDeviceLink;
|
||||
LIST_ENTRY *ChildNodeLink;
|
||||
LIST_ENTRY *NextChildNodeLink;
|
||||
PCI_RESOURCE_NODE *TempNode;
|
||||
PCI_RESOURCE_NODE *ResourceNode;
|
||||
|
||||
//
|
||||
// If any child device has both option ROM and 64-bit BAR, degrade its PMEM64/MEM64
|
||||
|
@ -1064,17 +1064,17 @@ DegradeResource (
|
|||
//
|
||||
ChildDeviceLink = Bridge->ChildList.ForwardLink;
|
||||
while (ChildDeviceLink != NULL && ChildDeviceLink != &Bridge->ChildList) {
|
||||
Temp = PCI_IO_DEVICE_FROM_LINK (ChildDeviceLink);
|
||||
if (Temp->RomSize != 0) {
|
||||
PciIoDevice = PCI_IO_DEVICE_FROM_LINK (ChildDeviceLink);
|
||||
if (PciIoDevice->RomSize != 0) {
|
||||
if (!IsListEmpty (&Mem64Node->ChildList)) {
|
||||
ChildNodeLink = Mem64Node->ChildList.ForwardLink;
|
||||
while (ChildNodeLink != &Mem64Node->ChildList) {
|
||||
TempNode = RESOURCE_NODE_FROM_LINK (ChildNodeLink);
|
||||
ResourceNode = RESOURCE_NODE_FROM_LINK (ChildNodeLink);
|
||||
NextChildNodeLink = ChildNodeLink->ForwardLink;
|
||||
|
||||
if (TempNode->PciDev == Temp) {
|
||||
if (ResourceNode->PciDev == PciIoDevice) {
|
||||
RemoveEntryList (ChildNodeLink);
|
||||
InsertResourceNode (Mem32Node, TempNode);
|
||||
InsertResourceNode (Mem32Node, ResourceNode);
|
||||
}
|
||||
ChildNodeLink = NextChildNodeLink;
|
||||
}
|
||||
|
@ -1083,12 +1083,12 @@ DegradeResource (
|
|||
if (!IsListEmpty (&PMem64Node->ChildList)) {
|
||||
ChildNodeLink = PMem64Node->ChildList.ForwardLink;
|
||||
while (ChildNodeLink != &PMem64Node->ChildList) {
|
||||
TempNode = RESOURCE_NODE_FROM_LINK (ChildNodeLink);
|
||||
ResourceNode = RESOURCE_NODE_FROM_LINK (ChildNodeLink);
|
||||
NextChildNodeLink = ChildNodeLink->ForwardLink;
|
||||
|
||||
if (TempNode->PciDev == Temp) {
|
||||
if (ResourceNode->PciDev == PciIoDevice) {
|
||||
RemoveEntryList (ChildNodeLink);
|
||||
InsertResourceNode (PMem32Node, TempNode);
|
||||
InsertResourceNode (PMem32Node, ResourceNode);
|
||||
}
|
||||
ChildNodeLink = NextChildNodeLink;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue