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:
parent
d20b621b11
commit
89bc97311a
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user