mirror of https://github.com/acidanthera/audk.git
Rollback the enhancement of Pcibus in r4844 for more investigation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5292 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7659d0c92f
commit
ab4eb9640e
|
@ -453,12 +453,6 @@ GatherPpbInfo (
|
||||||
} else {
|
} else {
|
||||||
PciIoDevice->Decodes |= EFI_BRIDGE_IO16_DECODE_SUPPORTED;
|
PciIoDevice->Decodes |= EFI_BRIDGE_IO16_DECODE_SUPPORTED;
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// changed to support En1K for IO Bridge Device
|
|
||||||
//
|
|
||||||
if( (Value & 0x0c) == 0x0c ){
|
|
||||||
PciIoDevice->Decodes |= EFI_BRIDGE_IOEN1K_DECODE_SUPPORTED;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = BarExisted (
|
Status = BarExisted (
|
||||||
|
|
|
@ -593,13 +593,6 @@ CreateResourceNode (
|
||||||
Node->PciDev = PciDev;
|
Node->PciDev = PciDev;
|
||||||
Node->Length = Length;
|
Node->Length = Length;
|
||||||
Node->Alignment = Alignment;
|
Node->Alignment = Alignment;
|
||||||
if(((ResType == PciBarTypeIo16) || (ResType == PciBarTypeIo32)) && ( Alignment == 0x0FFF))
|
|
||||||
{
|
|
||||||
if((PciDev->Decodes & EFI_BRIDGE_IOEN1K_DECODE_SUPPORTED) == EFI_BRIDGE_IOEN1K_DECODE_SUPPORTED)
|
|
||||||
Node->Alignment = 0x3FF;
|
|
||||||
else
|
|
||||||
Node->Alignment = 0xFFF;
|
|
||||||
}
|
|
||||||
Node->Bar = Bar;
|
Node->Bar = Bar;
|
||||||
Node->ResType = ResType;
|
Node->ResType = ResType;
|
||||||
Node->Reserved = FALSE;
|
Node->Reserved = FALSE;
|
||||||
|
|
|
@ -110,7 +110,6 @@ typedef struct {
|
||||||
#define EFI_BRIDGE_PMEM_MEM_COMBINE_SUPPORTED 0x0010
|
#define EFI_BRIDGE_PMEM_MEM_COMBINE_SUPPORTED 0x0010
|
||||||
#define EFI_BRIDGE_MEM64_DECODE_SUPPORTED 0x0020
|
#define EFI_BRIDGE_MEM64_DECODE_SUPPORTED 0x0020
|
||||||
#define EFI_BRIDGE_MEM32_DECODE_SUPPORTED 0x0040
|
#define EFI_BRIDGE_MEM32_DECODE_SUPPORTED 0x0040
|
||||||
#define EFI_BRIDGE_IOEN1K_DECODE_SUPPORTED 0x0080
|
|
||||||
|
|
||||||
#define PCI_MAX_HOST_BRIDGE_NUM 0x0010
|
#define PCI_MAX_HOST_BRIDGE_NUM 0x0010
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue