Searched refs:PciBar (Results 1 - 10 of 10) sorted by relevance

/device/linaro/bootloader/edk2/DuetPkg/PciBusNoEnumerationDxe/
H A DPciEnumeratorSupport.c892 PciIoDevice->PciBar[BarIndex].BaseAddress = 0;
893 PciIoDevice->PciBar[BarIndex].Length = 0;
894 PciIoDevice->PciBar[BarIndex].Alignment = 0;
899 PciIoDevice->PciBar[BarIndex].Offset = (UINT8) Offset;
903 PciIoDevice->PciBar[BarIndex].Offset = (UINT8) Offset;
914 PciIoDevice->PciBar[BarIndex].BarType = PciBarTypeIo32;
915 PciIoDevice->PciBar[BarIndex].Length = ((~(Value & Mask)) + 1);
916 PciIoDevice->PciBar[BarIndex].Alignment = PciIoDevice->PciBar[BarIndex].Length - 1;
922 PciIoDevice->PciBar[BarInde
[all...]
H A DPciIo.c375 if ((*Offset + Count * ((UINTN)1 << Width)) - 1 >= PciIoDevice->PciBar[BarIndex].Length) {
379 *Offset = *Offset + PciIoDevice->PciBar[BarIndex].BaseAddress;
1198 if (PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeMem32 &&
1199 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypePMem32 &&
1200 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypePMem64 &&
1201 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeMem64 ) {
1208 if (PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeIo32 &&
1209 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeIo16){
1614 if ((BarIndex >= PCI_MAX_BAR) || (PciIoDevice->PciBar[BarIndex].BarType == PciBarTypeUnknown)) {
1637 AddressSpace->AddrRangeMin = PciIoDevice->PciBar[BarInde
[all...]
H A DPciBus.h127 PCI_BAR PciBar[PCI_MAX_BAR]; member in struct:_PCI_IO_DEVICE
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciBusDxe/
H A DPciResourceSupport.c471 switch ((PciDev->PciBar)[Index].BarType) {
477 (PciDev->PciBar)[Index].Length,
478 (PciDev->PciBar)[Index].Alignment,
496 (PciDev->PciBar)[Index].Length,
497 (PciDev->PciBar)[Index].Alignment,
515 (PciDev->PciBar)[Index].Length,
516 (PciDev->PciBar)[Index].Alignment,
534 (PciDev->PciBar)[Index].Length,
535 (PciDev->PciBar)[Index].Alignment,
553 (PciDev->PciBar)[Inde
[all...]
H A DPciEnumeratorSupport.c423 if (PciIoDevice->PciBar[Index].BarType == PciBarTypeUnknown) {
430 Index, mBarTypeStr[MIN (PciIoDevice->PciBar[Index].BarType, PciBarTypeMaxType)],
431 PciIoDevice->PciBar[Index].Alignment, PciIoDevice->PciBar[Index].Length, PciIoDevice->PciBar[Index].Offset
731 // Read PciBar information from the bar register
1428 if (PciIoDevice->PciBar[BarIndex].BarType == PciBarTypeMem64) {
1431 PciIoDevice->PciBar[BarIndex].BarType = PciBarTypeMem32;
1433 PciIoDevice->PciBar[BarIndex].BarTypeFixed = TRUE;
1440 if (PciIoDevice->PciBar[BarInde
[all...]
H A DPciEnumerator.c1665 if (Bridge->PciBar[PPB_IO_RANGE].Length > 0) {
1666 *IoBase = Bridge->PciBar[PPB_IO_RANGE].BaseAddress;
1669 if (Bridge->PciBar[PPB_MEM32_RANGE].Length > 0) {
1670 *Mem32Base = Bridge->PciBar[PPB_MEM32_RANGE].BaseAddress;
1673 if (Bridge->PciBar[PPB_PMEM32_RANGE].Length > 0) {
1674 *PMem32Base = Bridge->PciBar[PPB_PMEM32_RANGE].BaseAddress;
1677 if (Bridge->PciBar[PPB_PMEM64_RANGE].Length > 0) {
1678 *PMem64Base = Bridge->PciBar[PPB_PMEM64_RANGE].BaseAddress;
1686 if (Bridge->PciBar[P2C_IO_1].Length > 0) {
1687 *IoBase = Bridge->PciBar[P2C_IO_
[all...]
H A DPciLib.c50 // Read PciBar information from the bar register
62 (PciIoDevice->PciBar)[P2C_MEM_1].BaseAddress = (UINT64) (Address);
63 (PciIoDevice->PciBar)[P2C_MEM_1].Length = 0x2000000;
64 (PciIoDevice->PciBar)[P2C_MEM_1].BarType = PciBarTypeMem32;
74 (PciIoDevice->PciBar)[P2C_MEM_2].BaseAddress = (UINT64) (Address);
75 (PciIoDevice->PciBar)[P2C_MEM_2].Length = 0x2000000;
76 (PciIoDevice->PciBar)[P2C_MEM_2].BarType = PciBarTypePMem32;
86 (PciIoDevice->PciBar)[P2C_IO_1].BaseAddress = (UINT64) (Address);
87 (PciIoDevice->PciBar)[P2C_IO_1].Length = 0x100;
88 (PciIoDevice->PciBar)[P2C_IO_
[all...]
H A DPciIo.c117 if ((*Offset + Count * (UINTN)(1 << Width)) - 1 >= PciIoDevice->PciBar[BarIndex].Length) {
121 *Offset = *Offset + PciIoDevice->PciBar[BarIndex].BaseAddress;
1248 if (PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeMem32 &&
1249 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypePMem32 &&
1250 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypePMem64 &&
1251 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeMem64 ) {
1258 if (PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeIo32 &&
1259 PciIoDevice->PciBar[BarIndex].BarType != PciBarTypeIo16){
1834 if ((BarIndex >= PCI_MAX_BAR) || (PciIoDevice->PciBar[BarIndex].BarType == PciBarTypeUnknown)) {
1856 Descriptor->AddrRangeMin = PciIoDevice->PciBar[BarInde
[all...]
H A DPciBus.h193 PCI_BAR PciBar[PCI_MAX_BAR]; member in struct:_PCI_IO_DEVICE
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/
H A DPciBus.h186 PCI_BAR PciBar[PCI_MAX_BAR];
177 PCI_BAR PciBar[PCI_MAX_BAR]; member in struct:_PCI_IO_DEVICE

Completed in 58 milliseconds