2002-11-13 Rick Gaiser <[email protected]>

* drivers/bus/isapnp/isapnp.c (FindNextReadPort): Increment Port before
	checking wether port address is in NE2000 address space range and returning
	port address value.

svn path=/trunk/; revision=3754
This commit is contained in:
Casper Hornstrup
2002-11-13 21:57:47 +00:00
parent 58cbfb764a
commit d9e3082d1f
2 changed files with 27 additions and 16 deletions
+6
View File
@@ -1,3 +1,9 @@
2002-11-13 Rick Gaiser <[email protected]>
* drivers/bus/isapnp/isapnp.c (FindNextReadPort): Increment Port before
checking wether port address is in NE2000 address space range and returning
port address value.
2002-11-10 Casper S. Hornstrup <[email protected]>
* drivers/bus/acpi/include/acpi.h: Include platform/types.h.
+21 -16
View File
@@ -1,4 +1,4 @@
/* $Id: isapnp.c,v 1.4 2002/09/08 10:22:03 chorns Exp $
/* $Id: isapnp.c,v 1.5 2002/11/13 21:57:47 chorns Exp $
*
* PROJECT: ReactOS ISA PnP Bus driver
* FILE: isapnp.c
@@ -215,21 +215,26 @@ VOID DeactivateLogicalDevice(UCHAR LogicalDevice)
static ULONG FindNextReadPort(VOID)
{
ULONG Port;
Port = (ULONG)IsaPnPReadPort;
while (Port <= ISAPNP_MAX_READ_PORT) {
/*
* We cannot use NE2000 probe spaces for
* ISAPnP or we will lock up machines
*/
if ((Port < 0x280) || (Port > 0x380))
{
return Port;
}
Port += READ_DATA_PORT_STEP;
}
return 0;
ULONG Port;
Port = (ULONG)IsaPnPReadPort;
while (TRUE) {
Port += READ_DATA_PORT_STEP;
if (Port > ISAPNP_MAX_READ_PORT)
{
return 0;
}
/*
* We cannot use NE2000 probe spaces for
* ISAPnP or we will lock up machines
*/
if ((Port < 0x280) || (Port > 0x380))
{
return Port;
}
}
}
static BOOLEAN IsolateReadDataPortSelect(VOID)