mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Don't report CmResourceTypeNull resources for unused PCI descriptor resource entries.
svn path=/trunk/; revision=11688
This commit is contained in:
parent
9a7c335263
commit
4d21897222
1 changed files with 9 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: pdo.c,v 1.11 2004/10/24 09:14:03 navaraf Exp $
|
/* $Id: pdo.c,v 1.12 2004/11/17 20:39:27 navaraf Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS PCI bus driver
|
* PROJECT: ReactOS PCI bus driver
|
||||||
* FILE: pdo.c
|
* FILE: pdo.c
|
||||||
|
@ -351,7 +351,8 @@ PdoQueryResourceRequirements(
|
||||||
&Flags))
|
&Flags))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ResCount += 2;
|
if (Length != 0)
|
||||||
|
ResCount += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: Check ROM address */
|
/* FIXME: Check ROM address */
|
||||||
|
@ -370,7 +371,8 @@ PdoQueryResourceRequirements(
|
||||||
&Flags))
|
&Flags))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ResCount += 2;
|
if (Length != 0)
|
||||||
|
ResCount += 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (PCI_CONFIGURATION_TYPE(&PciConfig) == PCI_CARDBUS_BRIDGE_TYPE)
|
else if (PCI_CONFIGURATION_TYPE(&PciConfig) == PCI_CARDBUS_BRIDGE_TYPE)
|
||||||
|
@ -642,7 +644,8 @@ PdoQueryResources(
|
||||||
&Flags))
|
&Flags))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ResCount++;
|
if (Length)
|
||||||
|
ResCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((PciConfig.u.type0.InterruptPin != 0) &&
|
if ((PciConfig.u.type0.InterruptPin != 0) &&
|
||||||
|
@ -660,7 +663,8 @@ PdoQueryResources(
|
||||||
&Flags))
|
&Flags))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ResCount++;
|
if (Length != 0)
|
||||||
|
ResCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (PCI_CONFIGURATION_TYPE(&PciConfig) == 2)
|
else if (PCI_CONFIGURATION_TYPE(&PciConfig) == 2)
|
||||||
|
|
Loading…
Reference in a new issue