]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.h
2 Plug a PciSegmentLib 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 __BASE_PCI_CAP_PCI_SEGMENT_LIB_H__
11 #define __BASE_PCI_CAP_PCI_SEGMENT_LIB_H__
13 #include <Library/DebugLib.h>
15 #include <Library/PciCapPciSegmentLib.h>
17 #define SEGMENT_DEV_SIG SIGNATURE_64 ('P', 'C', 'P', 'S', 'G', 'M', 'N', 'T')
21 // Signature identifying the derived class.
25 // Members added by the derived class, specific to the use of PciSegmentLib.
27 PCI_CAP_DOMAIN MaxDomain
;
35 PCI_CAP_DEV BaseDevice
;
38 #define SEGMENT_DEV_FROM_PCI_CAP_DEV(PciDevice) \
39 CR (PciDevice, SEGMENT_DEV, BaseDevice, SEGMENT_DEV_SIG)
41 #endif // __BASE_PCI_CAP_PCI_SEGMENT_LIB_H__