summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-04-09 16:43:56 +0000
committercgd <cgd@NetBSD.org>1993-04-09 16:43:56 +0000
commitfa76d62392df217e90754db9f3b54fbb46e9da62 (patch)
treee0aa98835d84a5dbaea5ab99519a7c0c5fea8079 /sys/dev/ic
parentc2176edbac89d585d32405347da54d93e047d56c (diff)
have probe return size of io space on successful return, rather
than simply 1.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 9a809526963..1bd02bfe8f1 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -42,7 +42,7 @@
* 09 Aug 92 Christoph Robitschko Correct minor number on com ports
* 10 Feb 93 Jordan K. Hubbard Added select code
*/
-static char rcsid[] = "$Header: /cvsroot/src/sys/dev/ic/com.c,v 1.4 1993/04/08 08:26:50 deraadt Exp $";
+static char rcsid[] = "$Header: /cvsroot/src/sys/dev/ic/com.c,v 1.5 1993/04/09 16:43:56 cgd Exp $";
#include "com.h"
#if NCOM > 0
@@ -128,7 +128,7 @@ struct isa_device *dev;
outb(dev->id_iobase+com_iir, 0);
DELAY(100);
if ((inb(dev->id_iobase+com_iir) & 0x38) == 0)
- return(1);
+ return(8);
return(0);
}