MdeModulePkg/Pci: Fixed Asserts in SCT PCIIO Protocol Test. master
authorGaurav Jain <gaurav.jain@nxp.com>
Tue, 25 Feb 2020 12:00:41 +0000 (20:00 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 5 Mar 2020 02:14:37 +0000 (02:14 +0000)
commit3b9cd714542a8744252d973e1f163222a9f21b9e
tree7f6a6eeb716a1c9c0c3357f779b2650a8b7dd5ba
parent9bfaa3da1ee553ee40f584e47aa6418d7d83460d
MdeModulePkg/Pci: Fixed Asserts in SCT PCIIO Protocol Test.

ASSERT in PollMem_Conf, CopyMem_Conf, SetBarAttributes_Conf
Conformance Test.
SCT Test expect return as Invalid Parameter or Unsupported.
Added Checks for Function Parameters.
return Invalid or Unsupported if Check fails.

Added Checks in PciIoPollIo(), PciIoIoRead()
PciIoIoWrite()

Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceIo.c
MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceIo.h