Author: cgutman Date: Wed Apr 8 23:10:06 2009 New Revision: 40421
URL: http://svn.reactos.org/svn/reactos?rev=40421&view=rev Log: - 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 ;)
Modified: trunk/reactos/drivers/bus/isapnp/isapnp.c
Modified: trunk/reactos/drivers/bus/isapnp/isapnp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/isapnp/isapnp.c... ============================================================================== --- trunk/reactos/drivers/bus/isapnp/isapnp.c [iso-8859-1] (original) +++ trunk/reactos/drivers/bus/isapnp/isapnp.c [iso-8859-1] Wed Apr 8 23:10:06 2009 @@ -301,7 +301,7 @@
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 @@ goto next; } if (iteration == 1) { - IsaPnPReadPort += READ_DATA_PORT_STEP; if (!IsolateReadDataPortSelect()) { DPRINT("Could not set read data port\n"); return 0;