Throughout PciHostBridgeDxe, functions iterate through all entries in the PCI_RESOURCE_TYPE enum. However TypeIo only applies for x86_64 platforms and on platforms such as Arm, the driver may exit early if resources are not available.
This changes the starting point of the PCI_RESOURCE_TYPE enum iteration from 0 to PCI_RESOURCE_TYPE_ENUM_START and conditionally sets that value to TypeIo or TypeMem32 based on whether the platform is x86_64 or not.
Description
Throughout PciHostBridgeDxe, functions iterate through all entries in the
PCI_RESOURCE_TYPE
enum. HoweverTypeIo
only applies for x86_64 platforms and on platforms such as Arm, the driver may exit early if resources are not available.This changes the starting point of the
PCI_RESOURCE_TYPE
enum iteration from0
toPCI_RESOURCE_TYPE_ENUM_START
and conditionally sets that value toTypeIo
orTypeMem32
based on whether the platform is x86_64 or not.How This Was Tested
Integration Instructions
N/A