- Fix some copy/paste bugs

- ISAPNP_MIN_READ_PORT is an acceptable read port so don't skip it (We add READ_DATA_PORT_STEP in FindNextReadPort)
 - Don't add READ_DATA_PORT_STEP before calling IsolateReadDataPortSelect (We add READ_DATA_PORT_STEP in FindNextReadPort) because then we skip a read data port
 - Thanks to the linux kernel source ;)

svn path=/trunk/; revision=40421
This commit is contained in:
Cameron Gutman 2009-04-08 19:10:06 +00:00
parent 60cd063c0a
commit 2c22f42f66

View file

@ -301,7 +301,7 @@ static ULONG IsolatePnPCards(VOID)
DPRINT("Called\n");
IsaPnPReadPort = (PUCHAR)ISAPNP_MIN_READ_PORT;
IsaPnPReadPort = (PUCHAR)(ISAPNP_MIN_READ_PORT - READ_DATA_PORT_STEP);
if (!IsolateReadDataPortSelect()) {
DPRINT("Could not set read data port\n");
return 0;
@ -340,7 +340,6 @@ static ULONG IsolatePnPCards(VOID)
goto next;
}
if (iteration == 1) {
IsaPnPReadPort += READ_DATA_PORT_STEP;
if (!IsolateReadDataPortSelect()) {
DPRINT("Could not set read data port\n");
return 0;