diff options
author | Laszlo Ersek <lersek@redhat.com> | 2017-09-21 10:48:53 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-10-03 16:07:25 +0200 |
commit | 8844f15d33c720323227ce61b518aed4549f19d0 (patch) | |
tree | fbccb0b6c65caf3c5beba8e38aaca86ac30e9a05 | |
parent | 9425b34925d0cf1b96aaf2c316d3299df9780252 (diff) | |
download | edk2-8844f15d33c720323227ce61b518aed4549f19d0.zip edk2-8844f15d33c720323227ce61b518aed4549f19d0.tar.gz edk2-8844f15d33c720323227ce61b518aed4549f19d0.tar.bz2 |
MdePkg/IndustryStandard/Pci23: add vendor-specific capability header
Revision 2.2 of the PCI Spec defines Capability IDs 0 through 6,
inclusive, in Appendix H. It reserves IDs 7 through 255.
Revision 2.3 of the PCI Spec adds Capability IDs 7 through 0xC, inclusive,
in Appendix H. Capability ID 9 stands for "Vendor Specific".
Add the EFI_PCI_CAPABILITY_ID_VENDOR macro and the
EFI_PCI_CAPABILITY_VENDOR_HDR structure type to MdePkg/IndustryStandard,
in order to describe this capability header.
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Marcel Apfelbaum <marcel@redhat.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r-- | MdePkg/Include/IndustryStandard/Pci23.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MdePkg/Include/IndustryStandard/Pci23.h b/MdePkg/Include/IndustryStandard/Pci23.h index 4673544..87bd163 100644 --- a/MdePkg/Include/IndustryStandard/Pci23.h +++ b/MdePkg/Include/IndustryStandard/Pci23.h @@ -92,6 +92,7 @@ /// PCI Capability List IDs and records.
///
#define EFI_PCI_CAPABILITY_ID_PCIX 0x07
+#define EFI_PCI_CAPABILITY_ID_VENDOR 0x09
#pragma pack(1)
///
@@ -116,6 +117,15 @@ typedef struct { UINT32 SplitTransCtrlRegDn;
} EFI_PCI_CAPABILITY_PCIX_BRDG;
+///
+/// Vendor Specific Capability Header
+/// Table H-1: Capability IDs, PCI Local Bus Specification, 2.3
+///
+typedef struct {
+ EFI_PCI_CAPABILITY_HDR Hdr;
+ UINT8 Length;
+} EFI_PCI_CAPABILITY_VENDOR_HDR;
+
#pragma pack()
#define PCI_CODE_TYPE_EFI_IMAGE 0x03
|