]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/IndustryStandard/Pci23: add vendor-specific capability header
authorLaszlo Ersek <lersek@redhat.com>
Thu, 21 Sep 2017 08:48:53 +0000 (10:48 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 3 Oct 2017 14:07:25 +0000 (16:07 +0200)
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>
MdePkg/Include/IndustryStandard/Pci23.h

index 467354429e0627e18b0ea6e4022c47ff9bd9337e..87bd16375c0235d9be13a85ea390f84d8ef2130b 100644 (file)
@@ -92,6 +92,7 @@
 /// PCI Capability List IDs and records.\r
 ///\r
 #define EFI_PCI_CAPABILITY_ID_PCIX    0x07\r
+#define EFI_PCI_CAPABILITY_ID_VENDOR  0x09\r
 \r
 #pragma pack(1)\r
 ///\r
@@ -116,6 +117,15 @@ typedef struct {
   UINT32                  SplitTransCtrlRegDn;\r
 } EFI_PCI_CAPABILITY_PCIX_BRDG;\r
 \r
+///\r
+/// Vendor Specific Capability Header\r
+/// Table H-1: Capability IDs, PCI Local Bus Specification, 2.3\r
+///\r
+typedef struct {\r
+  EFI_PCI_CAPABILITY_HDR  Hdr;\r
+  UINT8                   Length;\r
+} EFI_PCI_CAPABILITY_VENDOR_HDR;\r
+\r
 #pragma pack()\r
 \r
 #define PCI_CODE_TYPE_EFI_IMAGE       0x03\r