summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-03-25 03:13:05 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-03-25 03:13:05 +0000
commit70b57d05df93db3c9411194d5956a0be40a68b54 (patch)
tree4b60843b98cc3f53f64a3491bfbdb0c62d83a007
parent38abfbea7d793ea752e3ab81e4bee51ecff15809 (diff)
Notes
-rw-r--r--sys/amd64/isa/isa.c21
-rw-r--r--sys/i386/isa/isa.c21
2 files changed, 26 insertions, 16 deletions
diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c
index 0b49bba47e70..a563b89b653d 100644
--- a/sys/amd64/isa/isa.c
+++ b/sys/amd64/isa/isa.c
@@ -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");
}
}
diff --git a/sys/i386/isa/isa.c b/sys/i386/isa/isa.c
index 0b49bba47e70..a563b89b653d 100644
--- a/sys/i386/isa/isa.c
+++ b/sys/i386/isa/isa.c
@@ -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");
}
}