Home
last modified time | relevance | path

Searched refs:Pci (Results 1 – 25 of 199) sorted by relevance

12345678

/device/linaro/bootloader/edk2/OvmfPkg/Library/PciHostBridgeLib/
DXenSupport.c184 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/
DPciEnumeratorSupport.c40 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 …]
DPciCommand.c50 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 …]
DPciOptionRomSupport.c73 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()
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/PciHostBridgeLib/
DPciHostBridgeSupport.c310 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/
DPciDevice.c132 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/
DPciEnumeratorSupport.c36 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 …]
DPciCommand.c46 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()
DPciResourceSupport.c270 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 …]
DPciEnumeratorSupport.h34 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,
DPciLib.c54 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 …]
DPciPowerManagement.c57 Status = PciIoDevice->PciIo.Pci.Read ( in ResetPowerManagementFeature()
78 Status = PciIoDevice->PciIo.Pci.Write ( in ResetPowerManagementFeature()
/device/linaro/bootloader/edk2/DuetPkg/PciRootBridgeNoEnumerationDxe/Ia32/
DPcatIo.c94 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/X64/
DPcatIo.c94 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/
DHwDebug.c182 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/
DLpcDriver.c109 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/
DVirtioPciDevice.c247 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/
DPcatIsaAcpi.c75 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/
DPlatformConsole.c417 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/
DVgaMiniPort.c93 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/OvmfPkg/Virtio10Dxe/
DVirtio10.c218 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/XenIoPciDxe/
DXenIoPciDxe.c69 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/QuarkPlatformPkg/Pci/Dxe/PciHostBridge/
DPciHostBridgeSupport.c72 mPciRootBridgeIo->Pci.Read ( in ChipsetPreprocessController()
85 mPciRootBridgeIo->Pci.Write ( in ChipsetPreprocessController()
99 mPciRootBridgeIo->Pci.Write ( in ChipsetPreprocessController()
/device/linaro/bootloader/edk2/OvmfPkg/QemuVideoDxe/
DDriver.c104 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 …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Console/GraphicsOutputDxe/
DGraphicsOutput.c312 PCI_TYPE00 Pci; in GraphicsOutputDriverBindingStart() local
377 Status = PciIo->Pci.Read (PciIo, EfiPciIoWidthUint8, 0, sizeof (Pci), &Pci); in GraphicsOutputDriverBindingStart()
379 if (!IS_PCI_DISPLAY (&Pci) || ( in GraphicsOutputDriverBindingStart()
380 ((DeviceInfo->VendorId != MAX_UINT16) && (DeviceInfo->VendorId != Pci.Hdr.VendorId)) || in GraphicsOutputDriverBindingStart()
381 ((DeviceInfo->DeviceId != MAX_UINT16) && (DeviceInfo->DeviceId != Pci.Hdr.DeviceId)) || in GraphicsOutputDriverBindingStart()
382 ((DeviceInfo->RevisionId != MAX_UINT8) && (DeviceInfo->RevisionId != Pci.Hdr.RevisionID)) || in GraphicsOutputDriverBindingStart()
383 …((DeviceInfo->SubsystemVendorId != MAX_UINT16) && (DeviceInfo->SubsystemVendorId != Pci.Device.Sub… in GraphicsOutputDriverBindingStart()
384 … ((DeviceInfo->SubsystemId != MAX_UINT16) && (DeviceInfo->SubsystemId != Pci.Device.SubsystemID)) in GraphicsOutputDriverBindingStart()

12345678