TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | PciCapPciIoDeviceInit (IN EFI_PCI_IO_PROTOCOL *PciIo, OUT PCI_CAP_DEV **PciDevice) |
VOID EFIAPI | PciCapPciIoDeviceUninit (IN PCI_CAP_DEV *PciDevice) |
Library class layered on top of PciCapLib that allows clients to plug an EFI_PCI_IO_PROTOCOL backend into PciCapLib, for config space access.
Copyright (C) 2018, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PciCapPciIoLib.h.
EFI_STATUS EFIAPI PciCapPciIoDeviceInit | ( | IN EFI_PCI_IO_PROTOCOL * | PciIo, |
OUT PCI_CAP_DEV ** | PciDevice | ||
) |
Create a PCI_CAP_DEV object from an EFI_PCI_IO_PROTOCOL instance. The config space accessors are based upon EFI_PCI_IO_PROTOCOL.Pci.Read() and EFI_PCI_IO_PROTOCOL.Pci.Write().
[in] | PciIo | EFI_PCI_IO_PROTOCOL representation of the PCI device. |
[out] | PciDevice | The PCI_CAP_DEV object constructed as described above. PciDevice can be passed to the PciCapLib APIs. |
EFI_SUCCESS | PciDevice has been constructed and output. |
EFI_OUT_OF_RESOURCES | Memory allocation failed. |
Definition at line 208 of file UefiPciCapPciIoLib.c.
VOID EFIAPI PciCapPciIoDeviceUninit | ( | IN PCI_CAP_DEV * | PciDevice | ) |
Free the resources used by PciDevice.
[in] | PciDevice | The PCI_CAP_DEV object to free, originally produced by PciCapPciIoDeviceInit(). |
Definition at line 237 of file UefiPciCapPciIoLib.c.