mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 00:02:44 +00:00
Follow config intention for iobase:
print "at <not configured>" for iobase == -1 (autodetect not happens) and not print anything for iobase == -2 (none) Old code treat this two special config numbers as big port numbers.
This commit is contained in:
parent
38abfbea7d
commit
70b57d05df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24236
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
|
||||
* $Id$
|
||||
* $Id: isa.c,v 1.77 1997/02/22 09:36:40 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -393,11 +393,15 @@ config_isadev_c(isdp, mp, reconfig)
|
||||
if (!isdp->id_reconfig) {
|
||||
printf("%s%d", dp->name, isdp->id_unit);
|
||||
if (id_alive != -1) {
|
||||
printf(" at 0x%x", isdp->id_iobase);
|
||||
if (isdp->id_iobase + id_alive - 1 !=
|
||||
isdp->id_iobase) {
|
||||
printf("-0x%x",
|
||||
isdp->id_iobase + id_alive - 1);
|
||||
if (isdp->id_iobase == -1)
|
||||
printf(" at <not configured>");
|
||||
else if (isdp->id_iobase != -2) {
|
||||
printf(" at 0x%x", isdp->id_iobase);
|
||||
if (isdp->id_iobase + id_alive - 1 !=
|
||||
isdp->id_iobase) {
|
||||
printf("-0x%x",
|
||||
isdp->id_iobase + id_alive - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isdp->id_irq)
|
||||
@ -450,9 +454,10 @@ config_isadev_c(isdp, mp, reconfig)
|
||||
if (!isdp->id_reconfig) {
|
||||
printf("%s%d not found",
|
||||
dp->name, isdp->id_unit);
|
||||
if (isdp->id_iobase) {
|
||||
if (isdp->id_iobase == -1)
|
||||
printf(" at <not configured>");
|
||||
else if (isdp->id_iobase != -2)
|
||||
printf(" at 0x%x", isdp->id_iobase);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
|
||||
* $Id$
|
||||
* $Id: isa.c,v 1.77 1997/02/22 09:36:40 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -393,11 +393,15 @@ config_isadev_c(isdp, mp, reconfig)
|
||||
if (!isdp->id_reconfig) {
|
||||
printf("%s%d", dp->name, isdp->id_unit);
|
||||
if (id_alive != -1) {
|
||||
printf(" at 0x%x", isdp->id_iobase);
|
||||
if (isdp->id_iobase + id_alive - 1 !=
|
||||
isdp->id_iobase) {
|
||||
printf("-0x%x",
|
||||
isdp->id_iobase + id_alive - 1);
|
||||
if (isdp->id_iobase == -1)
|
||||
printf(" at <not configured>");
|
||||
else if (isdp->id_iobase != -2) {
|
||||
printf(" at 0x%x", isdp->id_iobase);
|
||||
if (isdp->id_iobase + id_alive - 1 !=
|
||||
isdp->id_iobase) {
|
||||
printf("-0x%x",
|
||||
isdp->id_iobase + id_alive - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isdp->id_irq)
|
||||
@ -450,9 +454,10 @@ config_isadev_c(isdp, mp, reconfig)
|
||||
if (!isdp->id_reconfig) {
|
||||
printf("%s%d not found",
|
||||
dp->name, isdp->id_unit);
|
||||
if (isdp->id_iobase) {
|
||||
if (isdp->id_iobase == -1)
|
||||
printf(" at <not configured>");
|
||||
else if (isdp->id_iobase != -2)
|
||||
printf(" at 0x%x", isdp->id_iobase);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user