}\r
\r
/**\r
- Parse PCI bar and collect the assigned PCI resouce information.\r
+ Parse PCI bar and collect the assigned PCI resource information.\r
\r
@param[in] Command Supported attributes.\r
\r
for (PrimaryBus = 0; PrimaryBus <= PCI_MAX_BUS; PrimaryBus = SubBus + 1) {\r
SubBus = PrimaryBus;\r
Attributes = 0;\r
+\r
+ ZeroMem (&Io, sizeof (Io));\r
+ ZeroMem (&Mem, sizeof (Mem));\r
+ ZeroMem (&MemAbove4G, sizeof (MemAbove4G));\r
+ ZeroMem (&PMem, sizeof (PMem));\r
+ ZeroMem (&PMemAbove4G, sizeof (PMemAbove4G));\r
Io.Base = Mem.Base = MemAbove4G.Base = PMem.Base = PMemAbove4G.Base = MAX_UINT64;\r
- Io.Limit = Mem.Limit = MemAbove4G.Limit = PMem.Limit = PMemAbove4G.Limit = 0;\r
//\r
// Scan all the PCI devices on the primary bus of the PCI root bridge\r
//\r
//\r
if (Pci.Bridge.SubordinateBus > SubBus) {\r
//\r
- // If the suborinate bus number of the PCI-PCI bridge is greater\r
+ // If the subordinate bus number of the PCI-PCI bridge is greater\r
// than the PCI root bridge's current subordinate bus number,\r
// then update the PCI root bridge's subordinate bus number\r
//\r
\r
//\r
// See if the PCI Device is a PCI - ISA or PCI - EISA\r
- // or ISA_POSITIVIE_DECODE Bridge device\r
+ // or ISA_POSITIVE_DECODE Bridge device\r
//\r
if (Pci.Hdr.ClassCode[2] == PCI_CLASS_BRIDGE) {\r
if (Pci.Hdr.ClassCode[1] == PCI_CLASS_BRIDGE_ISA ||\r