Home | History | Annotate | Download | only in PciBusDxe

Lines Matching refs:PciIoDevice

88   @param PciIoDevice  A pointer to the PCI_IO_DEVICE to be destoried.

93 IN PCI_IO_DEVICE *PciIoDevice
96 ASSERT (PciIoDevice != NULL);
100 if (PciIoDevice->ResourcePaddingDescriptors != NULL) {
101 FreePool (PciIoDevice->ResourcePaddingDescriptors);
104 if (PciIoDevice->DevicePath != NULL) {
105 FreePool (PciIoDevice->DevicePath);
108 FreePool (PciIoDevice);
197 @param PciIoDevice A PCI_IO_DEVICE pointer to the PCI IO device to be registered.
207 IN PCI_IO_DEVICE *PciIoDevice,
223 &PciIoDevice->Handle,
225 PciIoDevice->DevicePath,
227 &PciIoDevice->PciIo,
239 PciIoDevice,
245 PciIoDevice->IsPciExp = TRUE;
251 PciIo = &(PciIoDevice->PciIo);
258 if (!PciIoDevice->AllOpRomProcessed) {
266 PciIoDevice->Handle,
271 PciIoDevice->EmbeddedRom = FALSE;
272 PciIoDevice->RomSize = PlatformOpRomSize;
273 PciIoDevice->PciIo.RomSize = PlatformOpRomSize;
274 PciIoDevice->PciIo.RomImage = PlatformOpRomBuffer;
281 PciIoDevice->PciRootBridgeIo->SegmentNumber,
282 PciIoDevice->BusNumber,
283 PciIoDevice->DeviceNumber,
284 PciIoDevice->FunctionNumber,
285 (UINT64) (UINTN) PciIoDevice->PciIo.RomImage,
286 PciIoDevice->PciIo.RomSize
292 PciIoDevice->Handle,
297 PciIoDevice->EmbeddedRom = FALSE;
298 PciIoDevice->RomSize = PlatformOpRomSize;
299 PciIoDevice->PciIo.RomSize = PlatformOpRomSize;
300 PciIoDevice->PciIo.RomImage = PlatformOpRomBuffer;
307 PciIoDevice->PciRootBridgeIo->SegmentNumber,
308 PciIoDevice->BusNumber,
309 PciIoDevice->DeviceNumber,
310 PciIoDevice->FunctionNumber,
311 (UINT64) (UINTN) PciIoDevice->PciIo.RomImage,
312 PciIoDevice->PciIo.RomSize
321 HasEfiImage = ContainEfiImage (PciIoDevice->PciIo.RomImage, PciIoDevice->PciIo.RomSize);
325 &PciIoDevice->Handle,
327 &PciIoDevice->LoadFile2,
332 &PciIoDevice->Handle,
334 PciIoDevice->DevicePath,
336 &PciIoDevice->PciIo,
344 if (!PciIoDevice->AllOpRomProcessed) {
346 PciIoDevice->AllOpRomProcessed = TRUE;
354 ProcessOpRomImage (PciIoDevice);
358 if (PciIoDevice->BusOverride) {
363 &PciIoDevice->Handle,
365 &PciIoDevice->PciDriverOverride,
370 &PciIoDevice->Handle,
372 PciIoDevice->DevicePath,
374 &PciIoDevice->PciIo,
379 &PciIoDevice->Handle,
381 &PciIoDevice->LoadFile2,
393 (VOID **) &(PciIoDevice->PciRootBridgeIo),
395 PciIoDevice->Handle,
403 *Handle = PciIoDevice->Handle;
409 PciIoDevice->Registered = TRUE;
479 PCI_IO_DEVICE *PciIoDevice;
493 PciIoDevice = PCI_IO_DEVICE_FROM_PCI_IO_THIS (PciIo);
498 if (!PciIoDevice->Registered) {
506 if (!IsListEmpty (&PciIoDevice->ChildList)) {
508 CurrentLink = PciIoDevice->ChildList.ForwardLink;
510 while (CurrentLink != NULL && CurrentLink != &PciIoDevice->ChildList) {
536 if (PciIoDevice->BusOverride) {
540 PciIoDevice->DevicePath,
542 &PciIoDevice->PciIo,
544 &PciIoDevice->PciDriverOverride,
551 PciIoDevice->DevicePath,
553 &PciIoDevice->PciIo,
574 &PciIoDevice->LoadFile2,
602 PciIoDevice->Registered = FALSE;
603 PciIoDevice->Handle = NULL;
640 PCI_IO_DEVICE *PciIoDevice;
647 PciIoDevice = NULL;
652 PciIoDevice = PCI_IO_DEVICE_FROM_LINK (CurrentLink);
657 if (Node.Pci->Device != PciIoDevice->DeviceNumber ||
658 Node.Pci->Function != PciIoDevice->FunctionNumber) {
666 if (!PciIoDevice->Allocated) {
674 if (!PciIoDevice->Registered) {
677 PciIoDevice,
683 if (NumberOfChildren != NULL && ChildHandleBuffer != NULL && PciIoDevice->Registered) {
684 ChildHandleBuffer[*NumberOfChildren] = PciIoDevice->Handle;
699 if (IS_PCI_BRIDGE (&PciIoDevice->Pci)) {
702 PciIoDevice,
708 PciIoDevice->PciIo.Attributes (
709 &(PciIoDevice->PciIo),
715 PciIoDevice->PciIo.Attributes (
716 &(PciIoDevice->PciIo),
737 if (!PciIoDevice->Registered && PciIoDevice->Allocated) {
740 PciIoDevice,
746 if (NumberOfChildren != NULL && ChildHandleBuffer != NULL && PciIoDevice->Registered) {
747 ChildHandleBuffer[*NumberOfChildren] = PciIoDevice->Handle;
751 if (IS_PCI_BRIDGE (&PciIoDevice->Pci)) {
754 PciIoDevice,
760 PciIoDevice->PciIo.Attributes (
761 &(PciIoDevice->PciIo),
767 PciIoDevice->PciIo.Attributes (
768 &(PciIoDevice->PciIo),
780 if (PciIoDevice == NULL) {
953 @param PciIoDevice Device instance.
962 IN PCI_IO_DEVICE *PciIoDevice
975 if (Temp == PciIoDevice) {
980 if (PciDeviceExisted (Temp, PciIoDevice)) {