Now prints ``on eisa'' if id_iobase >= 0x1000, and made a slight code

cleanup for the other 2 cases of ``on motherboard'' and ``on isa''.
This commit is contained in:
Rodney W. Grimes 1994-01-22 21:52:04 +00:00
parent 3b15f669f7
commit ce1105630d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1002
2 changed files with 24 additions and 10 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
* $Id: isa.c,v 1.12 1994/01/16 11:25:06 ats Exp $
* $Id: isa.c,v 1.13 1994/01/17 05:49:20 rgrimes Exp $
*/
/*
@ -293,10 +293,17 @@ config_isadev(isdp, mp)
printf(" msize %d", isdp->id_msize);
if (isdp->id_flags)
printf(" flags 0x%x", isdp->id_flags);
if (isdp->id_iobase && (isdp->id_iobase < 0x100))
printf(" on motherboard\n");
else
printf(" on isa\n");
if (isdp->id_iobase) {
if (isdp->id_iobase < 0x100) {
printf(" on motherboard\n");
} else {
if (isdp->id_iobase >= 0x1000) {
printf (" on eisa\n");
} else {
printf (" on isa\n");
}
}
}
(*dp->attach)(isdp);

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
* $Id: isa.c,v 1.12 1994/01/16 11:25:06 ats Exp $
* $Id: isa.c,v 1.13 1994/01/17 05:49:20 rgrimes Exp $
*/
/*
@ -293,10 +293,17 @@ config_isadev(isdp, mp)
printf(" msize %d", isdp->id_msize);
if (isdp->id_flags)
printf(" flags 0x%x", isdp->id_flags);
if (isdp->id_iobase && (isdp->id_iobase < 0x100))
printf(" on motherboard\n");
else
printf(" on isa\n");
if (isdp->id_iobase) {
if (isdp->id_iobase < 0x100) {
printf(" on motherboard\n");
} else {
if (isdp->id_iobase >= 0x1000) {
printf (" on eisa\n");
} else {
printf (" on isa\n");
}
}
}
(*dp->attach)(isdp);