Searched refs:PciBar (Results 1 – 10 of 10) sorted by relevance
/device/linaro/bootloader/edk2/DuetPkg/PciBusNoEnumerationDxe/ |
D | PciEnumeratorSupport.c | 892 PciIoDevice->PciBar[BarIndex].BaseAddress = 0; in PciParseBar() 893 PciIoDevice->PciBar[BarIndex].Length = 0; in PciParseBar() 894 PciIoDevice->PciBar[BarIndex].Alignment = 0; in PciParseBar() 899 PciIoDevice->PciBar[BarIndex].Offset = (UINT8) Offset; in PciParseBar() 903 PciIoDevice->PciBar[BarIndex].Offset = (UINT8) Offset; in PciParseBar() 914 PciIoDevice->PciBar[BarIndex].BarType = PciBarTypeIo32; in PciParseBar() 915 PciIoDevice->PciBar[BarIndex].Length = ((~(Value & Mask)) + 1); in PciParseBar() 916 PciIoDevice->PciBar[BarIndex].Alignment = PciIoDevice->PciBar[BarIndex].Length - 1; in PciParseBar() 922 PciIoDevice->PciBar[BarIndex].BarType = PciBarTypeIo16; in PciParseBar() 923 PciIoDevice->PciBar[BarIndex].Length = 0x0000FFFF & ((~(Value & Mask)) + 1); in PciParseBar() [all …]
|
D | PciIo.c | 375 if ((*Offset + Count * ((UINTN)1 << Width)) - 1 >= PciIoDevice->PciBar[BarIndex].Length) { in PciIoVerifyBarAccess() 379 *Offset = *Offset + PciIoDevice->PciBar[BarIndex].BaseAddress; in PciIoVerifyBarAccess() 1198 if (PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeMem32 && in CheckBarType() 1199 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypePMem32 && in CheckBarType() 1200 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypePMem64 && in CheckBarType() 1201 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeMem64 ) { in CheckBarType() 1208 if (PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeIo32 && in CheckBarType() 1209 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeIo16){ in CheckBarType() 1614 if ((BarIndex >= PCI_MAX_BAR) || (PciIoDevice->PciBar[BarIndex].BarType == PciBarTypeUnknown)) { in PciIoGetBarAttributes() 1637 AddressSpace->AddrRangeMin = PciIoDevice->PciBar[BarIndex].BaseAddress; in PciIoGetBarAttributes() [all …]
|
D | PciBus.h | 127 PCI_BAR PciBar[PCI_MAX_BAR]; member
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciBusDxe/ |
D | PciEnumeratorSupport.c | 423 if (PciIoDevice->PciBar[Index].BarType == PciBarTypeUnknown) { in DumpPciBars() 430 Index, mBarTypeStr[MIN (PciIoDevice->PciBar[Index].BarType, PciBarTypeMaxType)], in DumpPciBars() 431 …PciIoDevice->PciBar[Index].Alignment, PciIoDevice->PciBar[Index].Length, PciIoDevice->PciBar[Index… in DumpPciBars() 1428 if (PciIoDevice->PciBar[BarIndex].BarType == PciBarTypeMem64) { in UpdatePciInfo() 1431 PciIoDevice->PciBar[BarIndex].BarType = PciBarTypeMem32; in UpdatePciInfo() 1433 PciIoDevice->PciBar[BarIndex].BarTypeFixed = TRUE; in UpdatePciInfo() 1440 if (PciIoDevice->PciBar[BarIndex].BarType == PciBarTypePMem64) { in UpdatePciInfo() 1443 PciIoDevice->PciBar[BarIndex].BarType = PciBarTypePMem32; in UpdatePciInfo() 1445 PciIoDevice->PciBar[BarIndex].BarTypeFixed = TRUE; in UpdatePciInfo() 1470 SetNewAlign (&(PciIoDevice->PciBar[BarIndex].Alignment), Ptr->AddrRangeMax); in UpdatePciInfo() [all …]
|
D | PciResourceSupport.c | 471 switch ((PciDev->PciBar)[Index].BarType) { in GetResourceFromDevice() 477 (PciDev->PciBar)[Index].Length, in GetResourceFromDevice() 478 (PciDev->PciBar)[Index].Alignment, in GetResourceFromDevice() 496 (PciDev->PciBar)[Index].Length, in GetResourceFromDevice() 497 (PciDev->PciBar)[Index].Alignment, in GetResourceFromDevice() 515 (PciDev->PciBar)[Index].Length, in GetResourceFromDevice() 516 (PciDev->PciBar)[Index].Alignment, in GetResourceFromDevice() 534 (PciDev->PciBar)[Index].Length, in GetResourceFromDevice() 535 (PciDev->PciBar)[Index].Alignment, in GetResourceFromDevice() 553 (PciDev->PciBar)[Index].Length, in GetResourceFromDevice() [all …]
|
D | PciEnumerator.c | 1665 if (Bridge->PciBar[PPB_IO_RANGE].Length > 0) { in GetResourceBaseFromBridge() 1666 *IoBase = Bridge->PciBar[PPB_IO_RANGE].BaseAddress; in GetResourceBaseFromBridge() 1669 if (Bridge->PciBar[PPB_MEM32_RANGE].Length > 0) { in GetResourceBaseFromBridge() 1670 *Mem32Base = Bridge->PciBar[PPB_MEM32_RANGE].BaseAddress; in GetResourceBaseFromBridge() 1673 if (Bridge->PciBar[PPB_PMEM32_RANGE].Length > 0) { in GetResourceBaseFromBridge() 1674 *PMem32Base = Bridge->PciBar[PPB_PMEM32_RANGE].BaseAddress; in GetResourceBaseFromBridge() 1677 if (Bridge->PciBar[PPB_PMEM64_RANGE].Length > 0) { in GetResourceBaseFromBridge() 1678 *PMem64Base = Bridge->PciBar[PPB_PMEM64_RANGE].BaseAddress; in GetResourceBaseFromBridge() 1686 if (Bridge->PciBar[P2C_IO_1].Length > 0) { in GetResourceBaseFromBridge() 1687 *IoBase = Bridge->PciBar[P2C_IO_1].BaseAddress; in GetResourceBaseFromBridge() [all …]
|
D | PciLib.c | 62 (PciIoDevice->PciBar)[P2C_MEM_1].BaseAddress = (UINT64) (Address); in GetBackPcCardBar() 63 (PciIoDevice->PciBar)[P2C_MEM_1].Length = 0x2000000; in GetBackPcCardBar() 64 (PciIoDevice->PciBar)[P2C_MEM_1].BarType = PciBarTypeMem32; in GetBackPcCardBar() 74 (PciIoDevice->PciBar)[P2C_MEM_2].BaseAddress = (UINT64) (Address); in GetBackPcCardBar() 75 (PciIoDevice->PciBar)[P2C_MEM_2].Length = 0x2000000; in GetBackPcCardBar() 76 (PciIoDevice->PciBar)[P2C_MEM_2].BarType = PciBarTypePMem32; in GetBackPcCardBar() 86 (PciIoDevice->PciBar)[P2C_IO_1].BaseAddress = (UINT64) (Address); in GetBackPcCardBar() 87 (PciIoDevice->PciBar)[P2C_IO_1].Length = 0x100; in GetBackPcCardBar() 88 (PciIoDevice->PciBar)[P2C_IO_1].BarType = PciBarTypeIo16; in GetBackPcCardBar() 98 (PciIoDevice->PciBar)[P2C_IO_2].BaseAddress = (UINT64) (Address); in GetBackPcCardBar() [all …]
|
D | PciIo.c | 117 if ((*Offset + Count * (UINTN)(1 << Width)) - 1 >= PciIoDevice->PciBar[BarIndex].Length) { in PciIoVerifyBarAccess() 121 *Offset = *Offset + PciIoDevice->PciBar[BarIndex].BaseAddress; in PciIoVerifyBarAccess() 1248 if (PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeMem32 && in CheckBarType() 1249 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypePMem32 && in CheckBarType() 1250 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypePMem64 && in CheckBarType() 1251 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeMem64 ) { in CheckBarType() 1258 if (PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeIo32 && in CheckBarType() 1259 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeIo16){ in CheckBarType() 1834 if ((BarIndex >= PCI_MAX_BAR) || (PciIoDevice->PciBar[BarIndex].BarType == PciBarTypeUnknown)) { in PciIoGetBarAttributes() 1856 Descriptor->AddrRangeMin = PciIoDevice->PciBar[BarIndex].BaseAddress; in PciIoGetBarAttributes() [all …]
|
D | PciBus.h | 193 PCI_BAR PciBar[PCI_MAX_BAR]; member
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/ |
D | PciBus.h | 186 PCI_BAR PciBar[PCI_MAX_BAR];
|