xxxprobe now returns the correct number of I/O registers used so that

the probe output during boot gives the I/O range instead of just the
starting address
This commit is contained in:
Rodney W. Grimes 1993-08-28 03:02:52 +00:00
parent d20b621b11
commit 89bc97311a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341
4 changed files with 8 additions and 7 deletions

View File

@ -41,7 +41,7 @@
* into the patch kit. Added in sioselect
* from com.c. Added port 4 support.
*/
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/isa/sio.c,v 1.4 1993/07/20 00:22:30 jkh Exp $";
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.5 1993/07/20 02:06:49 jkh Exp $";
#include "sio.h"
#if NSIO > 0
@ -352,7 +352,7 @@ sioprobe(dev)
already_init = TRUE;
}
iobase = dev->id_iobase;
result = 1;
result = IO_COMSIZE;
/*
* We don't want to get actual interrupts, just masked ones.

View File

@ -41,7 +41,7 @@
* into the patch kit. Added in sioselect
* from com.c. Added port 4 support.
*/
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/isa/sio.c,v 1.4 1993/07/20 00:22:30 jkh Exp $";
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.5 1993/07/20 02:06:49 jkh Exp $";
#include "sio.h"
#if NSIO > 0
@ -352,7 +352,7 @@ sioprobe(dev)
already_init = TRUE;
}
iobase = dev->id_iobase;
result = 1;
result = IO_COMSIZE;
/*
* We don't want to get actual interrupts, just masked ones.

View File

@ -76,6 +76,7 @@
#include "uio.h"
#include "malloc.h"
#include "machine/cpu.h"
#include "i386/isa/isa.h"
#include "i386/isa/isa_device.h"
#include "i386/isa/icu.h"
#include "i386/isa/wdreg.h"
@ -200,7 +201,7 @@ wdprobe(struct isa_device *dvp)
(void) inb(wdc+wd_error); /* XXX! */
outb(wdc+wd_ctlr, WDCTL_4BIT);
return (1);
return (IO_WDCSIZE);
nodevice:
free(du, M_TEMP);

View File

@ -41,7 +41,7 @@
* into the patch kit. Added in sioselect
* from com.c. Added port 4 support.
*/
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/isa/sio.c,v 1.4 1993/07/20 00:22:30 jkh Exp $";
static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys/i386/isa/sio.c,v 1.5 1993/07/20 02:06:49 jkh Exp $";
#include "sio.h"
#if NSIO > 0
@ -352,7 +352,7 @@ sioprobe(dev)
already_init = TRUE;
}
iobase = dev->id_iobase;
result = 1;
result = IO_COMSIZE;
/*
* We don't want to get actual interrupts, just masked ones.