]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Include/IndustryStandard/QemuPciBridgeCapabilities.h
OvmfPkg/MemEncryptSevLib: find pages of initial SMRAM save state map
[mirror_edk2.git] / OvmfPkg / Include / IndustryStandard / QemuPciBridgeCapabilities.h
CommitLineData
bdf73b57
LE
1/** @file\r
2 Macro and type definitions for QEMU's Red Hat vendor-specific PCI\r
3 capabilities that provide various hints about PCI Bridges.\r
4\r
5 Refer to "docs/pcie_pci_bridge.txt" in the QEMU source directory.\r
6\r
7 Copyright (C) 2017, Red Hat, Inc.\r
8\r
9 This program and the accompanying materials are licensed and made available\r
10 under the terms and conditions of the BSD License which accompanies this\r
11 distribution. The full text of the license may be found at\r
12 http://opensource.org/licenses/bsd-license.php\r
13\r
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
15 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
16**/\r
17\r
18#ifndef __QEMU_PCI_BRIDGE_CAPABILITIES_H__\r
19#define __QEMU_PCI_BRIDGE_CAPABILITIES_H__\r
20\r
21#include <IndustryStandard/Pci23.h>\r
22\r
23//\r
24// The hints apply to PCI Bridges whose PCI_DEVICE_INDEPENDENT_REGION.VendorId\r
25// equals the following value.\r
26//\r
27#define QEMU_PCI_BRIDGE_VENDOR_ID_REDHAT 0x1B36\r
28\r
29//\r
30// Common capability header for all hints.\r
31//\r
32#pragma pack (1)\r
33typedef struct {\r
34 EFI_PCI_CAPABILITY_VENDOR_HDR VendorHdr;\r
35 UINT8 Type;\r
36} QEMU_PCI_BRIDGE_CAPABILITY_HDR;\r
37#pragma pack ()\r
38\r
39//\r
40// Values defined for QEMU_PCI_BRIDGE_CAPABILITY_HDR.Type.\r
41//\r
42#define QEMU_PCI_BRIDGE_CAPABILITY_TYPE_RESOURCE_RESERVATION 0x01\r
43\r
44//\r
45// PCI Resource Reservation structure for when\r
46// QEMU_PCI_BRIDGE_CAPABILITY_HDR.Type equals\r
47// QEMU_PCI_BRIDGE_CAPABILITY_TYPE_RESOURCE_RESERVATION.\r
48//\r
49#pragma pack (1)\r
50typedef struct {\r
51 QEMU_PCI_BRIDGE_CAPABILITY_HDR BridgeHdr;\r
52 UINT32 BusNumbers;\r
53 UINT64 Io;\r
54 UINT32 NonPrefetchable32BitMmio;\r
55 UINT32 Prefetchable32BitMmio;\r
56 UINT64 Prefetchable64BitMmio;\r
57} QEMU_PCI_BRIDGE_CAPABILITY_RESOURCE_RESERVATION;\r
58#pragma pack ()\r
59\r
60#endif\r