]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.h
2 Plug an EFI_PCI_IO_PROTOCOL backend into PciCapLib, for config space access
3 -- internal macro and type definitions.
5 Copyright (C) 2018, Red Hat, Inc.
7 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __UEFI_PCI_CAP_PCI_IO_LIB_H__
11 #define __UEFI_PCI_CAP_PCI_IO_LIB_H__
13 #include <Library/DebugLib.h>
15 #include <Library/PciCapPciIoLib.h>
17 #define PROTO_DEV_SIG SIGNATURE_64 ('P', 'C', 'P', 'I', 'O', 'P', 'R', 'T')
21 // Signature identifying the derived class.
25 // Members added by the derived class, specific to the use of
26 // EFI_PCI_IO_PROTOCOL.
28 EFI_PCI_IO_PROTOCOL
*PciIo
;
32 PCI_CAP_DEV BaseDevice
;
35 #define PROTO_DEV_FROM_PCI_CAP_DEV(PciDevice) \
36 CR (PciDevice, PROTO_DEV, BaseDevice, PROTO_DEV_SIG)
38 #endif // __UEFI_PCI_CAP_PCI_IO_LIB_H__