/device/linaro/bootloader/edk2/OvmfPkg/Library/PciHostBridgeLib/ |
D | XenSupport.c | 184 PCI_TYPE01 Pci; in ScanForRootBridges() local 241 PciReadBuffer (Address, sizeof (Pci), &Pci); in ScanForRootBridges() 253 if ((Pci.Hdr.Command & EFI_PCI_COMMAND_VGA_PALETTE_SNOOP) != 0) { in ScanForRootBridges() 263 if (IS_PCI_BRIDGE (&Pci)) { in ScanForRootBridges() 267 if (Pci.Bridge.SubordinateBus > SubBus) { in ScanForRootBridges() 273 SubBus = Pci.Bridge.SubordinateBus; in ScanForRootBridges() 279 Value = Pci.Bridge.IoBase & 0x0f; in ScanForRootBridges() 280 Base = ((UINT32) Pci.Bridge.IoBase & 0xf0) << 8; in ScanForRootBridges() 281 Limit = (((UINT32) Pci.Bridge.IoLimit & 0xf0) << 8) | 0x0fff; in ScanForRootBridges() 283 Base |= ((UINT32) Pci.Bridge.IoBaseUpper16 << 16); in ScanForRootBridges() [all …]
|
/device/linaro/bootloader/edk2/DuetPkg/PciBusNoEnumerationDxe/ |
D | PciEnumeratorSupport.c | 40 IN PCI_TYPE00 *Pci, 50 IN PCI_TYPE00 *Pci, 67 PCI_TYPE00 *Pci, 99 IN PCI_TYPE00 *Pci, 108 IN PCI_TYPE00 *Pci, 117 PCI_TYPE00 *Pci, in PciDevicePresent() argument 147 Status = PciRootBridgeIo->Pci.Read ( in PciDevicePresent() 152 Pci in PciDevicePresent() 155 if (!EFI_ERROR (Status) && (Pci->Hdr).VendorId != 0xffff) { in PciDevicePresent() 161 Status = PciRootBridgeIo->Pci.Read ( in PciDevicePresent() [all …]
|
D | PciCommand.c | 50 return PciIo->Pci.Read ( in PciReadCommandRegister() 82 return PciIo->Pci.Write ( in PciSetCommandRegister() 116 PciIo->Pci.Read ( in PciEnableCommandRegister() 126 return PciIo->Pci.Write ( in PciEnableCommandRegister() 160 PciIo->Pci.Read ( in PciDisableCommandRegister() 170 return PciIo->Pci.Write ( in PciDisableCommandRegister() 205 return PciIo->Pci.Write ( in PciSetBridgeControlRegister() 239 PciIo->Pci.Read ( in PciEnableBridgeControlRegister() 249 return PciIo->Pci.Write ( in PciEnableBridgeControlRegister() 282 PciIo->Pci.Read ( in PciDisableBridgeControlRegister() [all …]
|
D | PciOptionRomSupport.c | 73 if (IS_PCI_BRIDGE (&PciIoDevice->Pci)) { in GetOpRomInfo() 89 Status = PciRootBridgeIo->Pci.Write ( in GetOpRomInfo() 103 Status = PciRootBridgeIo->Pci.Read ( in GetOpRomInfo() 177 if (IS_PCI_BRIDGE (&(PciDevice->Pci))) { in LoadOpRomImage() 342 PciRootBridgeIo->Pci.Write( in RomDecode() 353 PciRootBridgeIo->Pci.Write( in RomDecode() 364 PciRootBridgeIo->Pci.Read( in RomDecode() 372 PciRootBridgeIo->Pci.Write( in RomDecode() 384 PciRootBridgeIo->Pci.Write( in RomDecode()
|
D | PciPowerManagement.c | 71 Status = PciIoDevice->PciIo.Pci.Read ( in ResetPowerManagementFeature() 91 Status = PciIoDevice->PciIo.Pci.Write ( in ResetPowerManagementFeature()
|
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/PciHostBridgeLib/ |
D | PciHostBridgeSupport.c | 310 PCI_TYPE01 Pci; in ScanForRootBridges() local 367 PciReadBuffer (Address, sizeof (Pci), &Pci); in ScanForRootBridges() 379 if ((Pci.Hdr.Command & EFI_PCI_COMMAND_VGA_PALETTE_SNOOP) != 0) { in ScanForRootBridges() 389 if (IS_PCI_BRIDGE (&Pci)) { in ScanForRootBridges() 393 if (Pci.Bridge.SubordinateBus > SubBus) { in ScanForRootBridges() 399 SubBus = Pci.Bridge.SubordinateBus; in ScanForRootBridges() 405 Value = Pci.Bridge.IoBase & 0x0f; in ScanForRootBridges() 406 Base = ((UINT32) Pci.Bridge.IoBase & 0xf0) << 8; in ScanForRootBridges() 407 Limit = (((UINT32) Pci.Bridge.IoLimit & 0xf0) << 8) | 0x0fff; in ScanForRootBridges() 409 Base |= ((UINT32) Pci.Bridge.IoBaseUpper16 << 16); in ScanForRootBridges() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/ |
D | PciDevice.c | 132 PciIo->Pci.Read ( 143 PciIo->Pci.Write ( 150 PciIo->Pci.Read ( 186 PciIo->Pci.Write ( 203 PciIo->Pci.Read ( 212 PciIo->Pci.Write ( 241 PciIo->Pci.Write ( 263 PciIo->Pci.Read ( 277 PciIo->Pci.Write ( 294 PciIo->Pci.Write ( [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciBusDxe/ |
D | PciEnumeratorSupport.c | 36 OUT PCI_TYPE00 *Pci, in PciDevicePresent() argument 53 Status = PciRootBridgeIo->Pci.Read ( in PciDevicePresent() 58 Pci in PciDevicePresent() 61 if (!EFI_ERROR (Status) && (Pci->Hdr).VendorId != 0xffff) { in PciDevicePresent() 65 Status = PciRootBridgeIo->Pci.Read ( in PciDevicePresent() 70 Pci in PciDevicePresent() 99 PCI_TYPE00 Pci; in PciPciDeviceInfoCollector() local 118 &Pci, in PciPciDeviceInfoCollector() 143 &Pci, in PciPciDeviceInfoCollector() 154 if (!EFI_ERROR (Status) && (IS_PCI_BRIDGE (&Pci) || IS_CARDBUS_BRIDGE (&Pci))) { in PciPciDeviceInfoCollector() [all …]
|
D | PciCommand.c | 46 Status = PciIo->Pci.Read ( in PciOperateRegister() 68 return PciIo->Pci.Write ( in PciOperateRegister() 91 if ((PciIoDevice->Pci.Hdr.Status & EFI_PCI_STATUS_CAPABILITY) != 0) { in PciCapabilitySupport() 135 if (IS_CARDBUS_BRIDGE (&PciIoDevice->Pci)) { in LocateCapabilityRegBlock() 137 PciIoDevice->PciIo.Pci.Read ( in LocateCapabilityRegBlock() 146 PciIoDevice->PciIo.Pci.Read ( in LocateCapabilityRegBlock() 157 PciIoDevice->PciIo.Pci.Read ( in LocateCapabilityRegBlock() 234 Status = PciIoDevice->PciIo.Pci.Read ( in LocatePciExpressCapabilityRegBlock()
|
D | PciResourceSupport.c | 270 if (!IS_PCI_BRIDGE (&(Node->PciDev->Pci)) && !IS_CARDBUS_BRIDGE (&(Node->PciDev->Pci))) { in CalculateApertureIo16() 806 if (IS_PCI_BRIDGE (&Temp->Pci)) { in CreateResourceMap() 949 if (IS_CARDBUS_BRIDGE (&Temp->Pci)) { in CreateResourceMap() 1250 if (!IS_PCI_BRIDGE (&(Node->PciDev->Pci))) { in ProgramResource() 1252 if (IS_CARDBUS_BRIDGE (&(Node->PciDev->Pci))) { in ProgramResource() 1328 PciIo->Pci.Write ( in ProgramBar() 1345 PciIo->Pci.Write ( in ProgramBar() 1355 PciIo->Pci.Write ( in ProgramBar() 1410 PciIo->Pci.Write ( in ProgramVfBar() 1426 PciIo->Pci.Write ( in ProgramVfBar() [all …]
|
D | PciEnumeratorSupport.h | 34 OUT PCI_TYPE00 *Pci, 76 IN PCI_TYPE00 *Pci, 98 IN PCI_TYPE00 *Pci, 119 IN PCI_TYPE00 *Pci, 140 IN PCI_TYPE00 *Pci, 379 IN PCI_TYPE00 *Pci,
|
D | PciLib.c | 54 PciIoDevice->PciIo.Pci.Read ( in GetBackPcCardBar() 67 PciIoDevice->PciIo.Pci.Read ( in GetBackPcCardBar() 79 PciIoDevice->PciIo.Pci.Read ( in GetBackPcCardBar() 91 PciIoDevice->PciIo.Pci.Read ( in GetBackPcCardBar() 137 if (IS_PCI_BRIDGE (&Temp->Pci)) { in RemoveRejectedPciDevices() 201 IS_PCI_BRIDGE (&Resource->PciDev->Pci) ? L"PPB" : in DumpBridgeResource() 202 IS_CARDBUS_BRIDGE (&Resource->PciDev->Pci) ? L"P2C" : in DumpBridgeResource() 208 … if ((!IS_PCI_BRIDGE (&Resource->PciDev->Pci) && !IS_CARDBUS_BRIDGE (&Resource->PciDev->Pci)) || in DumpBridgeResource() 209 (IS_PCI_BRIDGE (&Resource->PciDev->Pci) && (Resource->Bar < PPB_IO_RANGE)) || in DumpBridgeResource() 210 (IS_CARDBUS_BRIDGE (&Resource->PciDev->Pci) && (Resource->Bar < P2C_MEM_1)) in DumpBridgeResource() [all …]
|
D | PciPowerManagement.c | 57 Status = PciIoDevice->PciIo.Pci.Read ( in ResetPowerManagementFeature() 78 Status = PciIoDevice->PciIo.Pci.Write ( in ResetPowerManagementFeature()
|
/device/linaro/bootloader/edk2/DuetPkg/PciRootBridgeNoEnumerationDxe/X64/ |
D | PcatIo.c | 94 PCI_CONFIG_ACCESS_CF8 Pci; in PcatRootBridgeIoPciRW() local 141 Pci.Bits.Reg = PciAddress.ExtendedRegister & 0xFF; in PcatRootBridgeIoPciRW() 143 Pci.Bits.Reg = PciAddress.Register; in PcatRootBridgeIoPciRW() 151 Pci.Bits.Func = PciAddress.Function; in PcatRootBridgeIoPciRW() 152 Pci.Bits.Dev = PciAddress.Device; in PcatRootBridgeIoPciRW() 153 Pci.Bits.Bus = PciAddress.Bus; in PcatRootBridgeIoPciRW() 154 Pci.Bits.Reserved = 0; in PcatRootBridgeIoPciRW() 155 Pci.Bits.Enable = 1; in PcatRootBridgeIoPciRW() 165 PciDataStride = Pci.Bits.Reg & 0x03; in PcatRootBridgeIoPciRW() 168 PciAligned = Pci; in PcatRootBridgeIoPciRW() [all …]
|
/device/linaro/bootloader/edk2/DuetPkg/PciRootBridgeNoEnumerationDxe/Ia32/ |
D | PcatIo.c | 94 PCI_CONFIG_ACCESS_CF8 Pci; in PcatRootBridgeIoPciRW() local 141 Pci.Bits.Reg = PciAddress.ExtendedRegister & 0xFF; in PcatRootBridgeIoPciRW() 143 Pci.Bits.Reg = PciAddress.Register; in PcatRootBridgeIoPciRW() 151 Pci.Bits.Func = PciAddress.Function; in PcatRootBridgeIoPciRW() 152 Pci.Bits.Dev = PciAddress.Device; in PcatRootBridgeIoPciRW() 153 Pci.Bits.Bus = PciAddress.Bus; in PcatRootBridgeIoPciRW() 154 Pci.Bits.Reserved = 0; in PcatRootBridgeIoPciRW() 155 Pci.Bits.Enable = 1; in PcatRootBridgeIoPciRW() 165 PciDataStride = Pci.Bits.Reg & 0x03; in PcatRootBridgeIoPciRW() 168 PciAligned = Pci; in PcatRootBridgeIoPciRW() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/ |
D | HwDebug.c | 182 EFI_PCI_IO_PROTOCOL *Pci; in EblPciCmd() local 221 Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID **)&Pci); in EblPciCmd() 223 Pci->GetLocation (Pci, &Seg, &Bus, &Dev, &Func); in EblPciCmd() 228 …Status = Pci->Pci.Read (Pci, EfiPciIoWidthUint32, 0, sizeof (PciHeader)/sizeof (UINT32), &PciHeade… in EblPciCmd() 257 Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID **)&Pci); in EblPciCmd() 259 Pci->GetLocation (Pci, &Seg, &Bus, &Dev, &Func); in EblPciCmd() 268 … Status = Pci->Pci.Read (Pci, EfiPciIoWidthUint32, 0, sizeof (PciHeader)/sizeof (UINT32), Header); in EblPciCmd()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Wpce791/ |
D | LpcDriver.c | 109 PCI_TYPE00 Pci; in LpcDriverSupported() 178 Status = PciIo->Pci.Read ( in LpcDriverSupported() 182 sizeof(Pci) / sizeof(UINT32), in LpcDriverSupported() 183 &Pci in LpcDriverSupported() 188 if ((Pci.Hdr.Command & 0x03) == 0x03) { in LpcDriverSupported() 189 if (Pci.Hdr.ClassCode[2] == PCI_CLASS_BRIDGE) { in LpcDriverSupported() 194 if (Pci.Hdr.ClassCode[1] == PCI_CLASS_BRIDGE_ISA) { in LpcDriverSupported() 202 if (Pci.Hdr.ClassCode[1] == PCI_CLASS_BRIDGE_ISA_PDECODE && in LpcDriverSupported() 203 Pci.Hdr.VendorId == 0x8086 && in LpcDriverSupported() 204 Pci.Hdr.DeviceId == 0x7110) { in LpcDriverSupported()
|
/device/linaro/bootloader/edk2/OvmfPkg/VirtioPciDeviceDxe/ |
D | VirtioPciDevice.c | 247 PCI_TYPE00 Pci; in VirtioPciDeviceBindingSupported() local 271 Status = PciIo->Pci.Read ( in VirtioPciDeviceBindingSupported() 277 sizeof Pci / sizeof (UINT32), // Count in VirtioPciDeviceBindingSupported() 278 &Pci // target buffer in VirtioPciDeviceBindingSupported() 285 if ((Pci.Hdr.VendorId == VIRTIO_VENDOR_ID) && in VirtioPciDeviceBindingSupported() 286 (Pci.Hdr.DeviceId >= 0x1000) && in VirtioPciDeviceBindingSupported() 287 (Pci.Hdr.DeviceId <= 0x103F) && in VirtioPciDeviceBindingSupported() 288 (Pci.Hdr.RevisionID == 0x00)) { in VirtioPciDeviceBindingSupported() 330 PCI_TYPE00 Pci; in VirtioPciInit() local 335 ASSERT (PciIo->Pci.Read != NULL); in VirtioPciInit() [all …]
|
/device/linaro/bootloader/edk2/PcAtChipsetPkg/IsaAcpiDxe/ |
D | PcatIsaAcpi.c | 75 PCI_TYPE00 Pci; in PcatIsaAcpiDriverBindingSupported() local 96 Status = PciIo->Pci.Read ( in PcatIsaAcpiDriverBindingSupported() 100 sizeof(Pci) / sizeof(UINT32), in PcatIsaAcpiDriverBindingSupported() 101 &Pci); in PcatIsaAcpiDriverBindingSupported() 105 if ((Pci.Hdr.Command & 0x03) == 0x03) { in PcatIsaAcpiDriverBindingSupported() 106 if (Pci.Hdr.ClassCode[2] == PCI_CLASS_BRIDGE) { in PcatIsaAcpiDriverBindingSupported() 110 if (Pci.Hdr.ClassCode[1] == PCI_CLASS_BRIDGE_ISA) { in PcatIsaAcpiDriverBindingSupported() 117 if (Pci.Hdr.ClassCode[1] == PCI_CLASS_BRIDGE_ISA_PDECODE && in PcatIsaAcpiDriverBindingSupported() 118 Pci.Hdr.VendorId == 0x8086 ) { in PcatIsaAcpiDriverBindingSupported()
|
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/PlatformBootManagerLib/ |
D | PlatformConsole.c | 417 PCI_TYPE00 Pci; in VisitingAPciInstance() local 424 Status = PciIo->Pci.Read ( in VisitingAPciInstance() 428 sizeof (Pci) / sizeof (UINT32), in VisitingAPciInstance() 429 &Pci in VisitingAPciInstance() 438 &Pci in VisitingAPciInstance() 483 IN PCI_TYPE00 *Pci in DetectAndPreparePlatformPciDevicePath() argument 500 if ((IS_PCI_LPC (Pci)) || in DetectAndPreparePlatformPciDevicePath() 501 ((IS_PCI_ISA_PDECODE (Pci)) && in DetectAndPreparePlatformPciDevicePath() 502 (Pci->Hdr.VendorId == 0x8086) in DetectAndPreparePlatformPciDevicePath() 516 if (IS_PCI_16550SERIAL (Pci)) { in DetectAndPreparePlatformPciDevicePath() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/ |
D | VgaMiniPort.c | 93 PCI_TYPE00 Pci; in PciVgaMiniPortDriverBindingSupported() local 113 Status = PciIo->Pci.Read ( in PciVgaMiniPortDriverBindingSupported() 117 sizeof (Pci) / sizeof (UINT32), in PciVgaMiniPortDriverBindingSupported() 118 &Pci in PciVgaMiniPortDriverBindingSupported() 129 if (((Pci.Hdr.Command & 0x03) == 0x03) && IS_PCI_VGA (&Pci)) { in PciVgaMiniPortDriverBindingSupported()
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Pci/Dxe/PciHostBridge/ |
D | PciHostBridgeSupport.c | 72 mPciRootBridgeIo->Pci.Read ( in ChipsetPreprocessController() 85 mPciRootBridgeIo->Pci.Write ( in ChipsetPreprocessController() 99 mPciRootBridgeIo->Pci.Write ( in ChipsetPreprocessController()
|
/device/linaro/bootloader/edk2/OvmfPkg/XenIoPciDxe/ |
D | XenIoPciDxe.c | 69 PCI_TYPE00 Pci; in XenIoPciDeviceBindingSupported() local 93 Status = PciIo->Pci.Read ( in XenIoPciDeviceBindingSupported() 99 sizeof Pci / sizeof (UINT32), // Count in XenIoPciDeviceBindingSupported() 100 &Pci // target buffer in XenIoPciDeviceBindingSupported() 104 if ((Pci.Hdr.VendorId == PCI_VENDOR_ID_XEN) && in XenIoPciDeviceBindingSupported() 105 (Pci.Hdr.DeviceId == PCI_DEVICE_ID_XEN_PLATFORM)) { in XenIoPciDeviceBindingSupported()
|
/device/linaro/bootloader/edk2/OvmfPkg/Virtio10Dxe/ |
D | Virtio10.c | 218 Status = PciIo->Pci.Read (PciIo, EfiPciIoWidthUint8, *Offset, Size, Buffer); in ReadConfigSpace() 810 PCI_TYPE00 Pci; in Virtio10BindingSupported() local 819 Status = PciIo->Pci.Read (PciIo, EfiPciIoWidthUint32, 0, in Virtio10BindingSupported() 820 sizeof Pci / sizeof (UINT32), &Pci); in Virtio10BindingSupported() 830 if (Pci.Hdr.VendorId == VIRTIO_VENDOR_ID && in Virtio10BindingSupported() 831 Pci.Hdr.DeviceId >= 0x1040 && in Virtio10BindingSupported() 832 Pci.Hdr.DeviceId <= 0x107F && in Virtio10BindingSupported() 833 Pci.Hdr.RevisionID >= 0x01 && in Virtio10BindingSupported() 834 Pci.Device.SubsystemID >= 0x40 && in Virtio10BindingSupported() 835 (Pci.Hdr.Status & EFI_PCI_STATUS_CAPABILITY) != 0) { in Virtio10BindingSupported() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/QemuVideoDxe/ |
D | Driver.c | 104 PCI_TYPE00 Pci; in QemuVideoControllerDriverSupported() local 125 Status = PciIo->Pci.Read ( in QemuVideoControllerDriverSupported() 129 sizeof (Pci) / sizeof (UINT32), in QemuVideoControllerDriverSupported() 130 &Pci in QemuVideoControllerDriverSupported() 137 if (!IS_PCI_VGA (&Pci)) { in QemuVideoControllerDriverSupported() 140 Card = QemuVideoDetect(Pci.Hdr.VendorId, Pci.Hdr.DeviceId); in QemuVideoControllerDriverSupported() 187 PCI_TYPE00 Pci; in QemuVideoControllerDriverStart() local 225 Status = Private->PciIo->Pci.Read ( in QemuVideoControllerDriverStart() 229 sizeof (Pci) / sizeof (UINT32), in QemuVideoControllerDriverStart() 230 &Pci in QemuVideoControllerDriverStart() [all …]
|