]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / Library / UefiPciCapPciIoLib / UefiPciCapPciIoLib.h
CommitLineData
02b9a834
LE
1/** @file\r
2 Plug an EFI_PCI_IO_PROTOCOL backend into PciCapLib, for config space access\r
3 -- internal macro and type definitions.\r
4\r
5 Copyright (C) 2018, Red Hat, Inc.\r
6\r
b26f0cf9 7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
02b9a834
LE
8**/\r
9\r
10#ifndef __UEFI_PCI_CAP_PCI_IO_LIB_H__\r
11#define __UEFI_PCI_CAP_PCI_IO_LIB_H__\r
12\r
13#include <Library/DebugLib.h>\r
14\r
15#include <Library/PciCapPciIoLib.h>\r
16\r
ac0a286f 17#define PROTO_DEV_SIG SIGNATURE_64 ('P', 'C', 'P', 'I', 'O', 'P', 'R', 'T')\r
02b9a834
LE
18\r
19typedef struct {\r
20 //\r
21 // Signature identifying the derived class.\r
22 //\r
ac0a286f 23 UINT64 Signature;\r
02b9a834
LE
24 //\r
25 // Members added by the derived class, specific to the use of\r
26 // EFI_PCI_IO_PROTOCOL.\r
27 //\r
ac0a286f 28 EFI_PCI_IO_PROTOCOL *PciIo;\r
02b9a834
LE
29 //\r
30 // Base class.\r
31 //\r
ac0a286f 32 PCI_CAP_DEV BaseDevice;\r
02b9a834
LE
33} PROTO_DEV;\r
34\r
35#define PROTO_DEV_FROM_PCI_CAP_DEV(PciDevice) \\r
36 CR (PciDevice, PROTO_DEV, BaseDevice, PROTO_DEV_SIG)\r
37\r
38#endif // __UEFI_PCI_CAP_PCI_IO_LIB_H__\r