3d20524 MdeModulePkg PiDxeS3BootScriptLib: Support multiple PCI segment

Authored and Committed by Star Zeng 7 years ago
    MdeModulePkg PiDxeS3BootScriptLib: Support multiple PCI segment
    
    Support multiple PCI segment for PCI_CONFIG2 opcodes.
    
    PiDxeS3BootScriptLib needs to be updated to consume PciSegmentLib
    instead of PciLib. That means platforms need to add PciSegmentLib
    declaration like below in platform dsc if the PciSegmentLib was
    not declared in platform dsc before.
    
    PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
    
    For platforms only have one segment,
    MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf is recommended
    to be used and declared in platform dsc for PiDxeS3BootScriptLib to have
    equivalent functionality with before.
    
    Cc: Jiewen Yao <jiewen.yao@intel.com>
    Cc: Michael D Kinney <michael.d.kinney@intel.com>
    Cc: Amy Chan <amy.chan@intel.com>
    Cc: Laszlo Ersek <lersek@redhat.com>
    Contributed-under: TianoCore Contribution Agreement 1.0
    Signed-off-by: Star Zeng <star.zeng@intel.com>
    Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
    Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
    Tested-by: Laszlo Ersek <lersek@redhat.com>