]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Include/IndustryStandard/Pci22.h
MdePkg/Pci22.h: Deprecate out-of-Spec IncompatiblePciDevice macros
authorRuiyu Ni <ruiyu.ni@intel.com>
Wed, 25 Jan 2017 07:18:13 +0000 (15:18 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 10 Feb 2017 08:52:00 +0000 (16:52 +0800)
commit35a461cb502877670062560e1edd231aeb35f738
tree84194395b49e728d9e2d40d828f1c2629c9cfedc
parenta419fd0d2934b640fdd2381b2706aded7bdfb5ca
MdePkg/Pci22.h: Deprecate out-of-Spec IncompatiblePciDevice macros

DEVICE_ID_NOCARE is defined as 0xFFFF but Spec says (UINT64) -1
should be used to match any VendorId/DeviceId/RevisionId/
SubsystemVendorId/SubsystemDeviceId.

PCI_BAR_OLD_ALIGN/PCI_BAR_EVEN_ALIGN/PCI_BAR_SQUAD_ALIGN/
PCI_BAR_DQUAD_ALIGN are defined but Spec doesn't have such
definitions.

PCI_BAR_ALL is defined as 0xFF but Spec says (UINT64)-1 should be
used to match all BARs.

PCI_ACPI_UNUSED and PCI_BAR_NOCHANGE are defined as 0 which
compliant with Spec but the name is too general and causes confusing.
IncompatiblePciDeviceSupport could directly use 0.

All of the above macros are marked as deprecated.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Cc: Jeff Fan <jeff.fan@intel.com>
MdePkg/Include/IndustryStandard/Pci22.h