VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.h

Last change on this file was 99404, checked in by vboxsync, 22 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 907 bytes
Line 
1/** @file
2 Plug an EFI_PCI_IO_PROTOCOL backend into PciCapLib, for config space access
3 -- internal macro and type definitions.
4
5 Copyright (C) 2018, Red Hat, Inc.
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8**/
9
10#ifndef __UEFI_PCI_CAP_PCI_IO_LIB_H__
11#define __UEFI_PCI_CAP_PCI_IO_LIB_H__
12
13#include <Library/DebugLib.h>
14
15#include <Library/PciCapPciIoLib.h>
16
17#define PROTO_DEV_SIG SIGNATURE_64 ('P', 'C', 'P', 'I', 'O', 'P', 'R', 'T')
18
19typedef struct {
20 //
21 // Signature identifying the derived class.
22 //
23 UINT64 Signature;
24 //
25 // Members added by the derived class, specific to the use of
26 // EFI_PCI_IO_PROTOCOL.
27 //
28 EFI_PCI_IO_PROTOCOL *PciIo;
29 //
30 // Base class.
31 //
32 PCI_CAP_DEV BaseDevice;
33} PROTO_DEV;
34
35#define PROTO_DEV_FROM_PCI_CAP_DEV(PciDevice) \
36 CR (PciDevice, PROTO_DEV, BaseDevice, PROTO_DEV_SIG)
37
38#endif // __UEFI_PCI_CAP_PCI_IO_LIB_H__
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette