public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gao, Liming" <liming.gao@intel.com>
To: Laszlo Ersek <lersek@redhat.com>,
	edk2-devel-01 <edk2-devel@lists.01.org>
Cc: "Justen, Jordan L" <jordan.l.justen@intel.com>,
	Marcel Apfelbaum <marcel@redhat.com>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>,
	"Ni, Ruiyu" <ruiyu.ni@intel.com>
Subject: Re: [PATCH 1/7] MdePkg/IndustryStandard/Pci23: add vendor-specific capability header
Date: Wed, 27 Sep 2017 06:26:31 +0000	[thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E15E045@SHSMSX152.ccr.corp.intel.com> (raw)
In-Reply-To: <20170925195824.10866-2-lersek@redhat.com>

Reviewed-by: Liming Gao <liming.gao@intel.com>

> -----Original Message-----
> From: Laszlo Ersek [mailto:lersek@redhat.com]
> Sent: Tuesday, September 26, 2017 3:58 AM
> To: edk2-devel-01 <edk2-devel@lists.01.org>
> Cc: Justen, Jordan L <jordan.l.justen@intel.com>; Gao, Liming <liming.gao@intel.com>; Marcel Apfelbaum <marcel@redhat.com>;
> Kinney, Michael D <michael.d.kinney@intel.com>; Ni, Ruiyu <ruiyu.ni@intel.com>
> Subject: [PATCH 1/7] 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>
> ---
>  MdePkg/Include/IndustryStandard/Pci23.h | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/MdePkg/Include/IndustryStandard/Pci23.h b/MdePkg/Include/IndustryStandard/Pci23.h
> index 467354429e06..87bd16375c02 100644
> --- a/MdePkg/Include/IndustryStandard/Pci23.h
> +++ b/MdePkg/Include/IndustryStandard/Pci23.h
> @@ -91,8 +91,9 @@
>  ///
>  /// PCI Capability List IDs and records.
>  ///
>  #define EFI_PCI_CAPABILITY_ID_PCIX    0x07
> +#define EFI_PCI_CAPABILITY_ID_VENDOR  0x09
> 
>  #pragma pack(1)
>  ///
>  /// PCI-X Capabilities List,
> @@ -115,8 +116,17 @@ typedef struct {
>    UINT32                  SplitTransCtrlRegUp;
>    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
> 
> --
> 2.14.1.3.gb7cf6e02401b
> 



  reply	other threads:[~2017-09-27  6:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-25 19:58 [PATCH 0/7] OvmfPkg/PciHotPlugInitDxe: obey PCI resource reservation hints from QEMU Laszlo Ersek
2017-09-25 19:58 ` [PATCH 1/7] MdePkg/IndustryStandard/Pci23: add vendor-specific capability header Laszlo Ersek
2017-09-27  6:26   ` Gao, Liming [this message]
2017-09-25 19:58 ` [PATCH 2/7] OvmfPkg/IndustryStandard: define PCI Capabilities for QEMU's PCI Bridges Laszlo Ersek
2017-09-25 19:58 ` [PATCH 3/7] OvmfPkg/PciHotPlugInitDxe: clean up protocol usage comment Laszlo Ersek
2017-09-25 19:58 ` [PATCH 4/7] OvmfPkg/PciHotPlugInitDxe: clean up addr. range for non-prefetchable MMIO Laszlo Ersek
2017-09-25 19:58 ` [PATCH 5/7] OvmfPkg/PciHotPlugInitDxe: generalize RESOURCE_PADDING composition Laszlo Ersek
2017-09-25 19:58 ` [PATCH 6/7] OvmfPkg/PciHotPlugInitDxe: add helper functions for setting up paddings Laszlo Ersek
2017-09-25 19:58 ` [PATCH 7/7] OvmfPkg/PciHotPlugInitDxe: translate QEMU's resource reservation hints Laszlo Ersek
2017-10-02 17:43   ` Jordan Justen
2017-10-02 20:00     ` Laszlo Ersek
2017-10-03 14:09 ` [PATCH 0/7] OvmfPkg/PciHotPlugInitDxe: obey PCI resource reservation hints from QEMU Laszlo Ersek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A89E2EF3DFEDB4C8BFDE51014F606A14E15E045@SHSMSX152.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox