audk/IntelSiliconPkg
Star Zeng b06dfd40bb IntelSiliconPkg IntelVTdDxe: Check HeaderType if func 0 is implemented
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1169

Current code checks HeaderType of Function 0 even Function 0 is not
implemented. HeaderType value will be 0xFF if Function 0 is not
implemented, then MaxFunction will be set to PCI_MAX_FUNC + 1.

The code can be optimized to only check HeaderType if Function 0 is
implemented.

Test done:
With this patch, the result is same with the result after the patch at
https://lists.01.org/pipermail/edk2-devel/2018-September/029623.html.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Cc: Tomson Chang <tomson.chang@intel.com>
Cc: Jenny Huang <jenny.huang@intel.com>
Cc: Amy Chan <amy.chan@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2018-09-17 09:17:58 +08:00
..
Feature IntelSiliconPkg IntelVTdDxe: Check HeaderType if func 0 is implemented 2018-09-17 09:17:58 +08:00
Include IntelSiliconPkg: Move MicrocodeUpdate from UefiCpuPkg 2017-11-30 09:25:28 +08:00
Library/DxeSmbiosDataHobLib IntelSiliconPkg: Fix format issues 2016-12-20 10:51:16 +08:00
IntelSiliconPkg.dec IntelSiliconPkg VTdPmrPei: Add PcdVTdPeiDmaBufferSize(S3) 2018-03-06 22:31:49 +08:00
IntelSiliconPkg.dsc IntelSiliconPkg: Update MicrocodeUpdate build path in dsc 2017-12-01 09:31:52 +08:00