summaryrefslogtreecommitdiffstats
path: root/sys/amd64/isa/isa.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-02-25 18:29:10 +0000
committerphk <phk@FreeBSD.org>1995-02-25 18:29:10 +0000
commitdaa114fa6132f09fa19ae7af3124305585c402f7 (patch)
tree1b410ef08867db93d12a24661cf9ab00728816c4 /sys/amd64/isa/isa.c
parentcc94453d734a6e0f1194966eab77615993aa5480 (diff)
downloadFreeBSD-src-daa114fa6132f09fa19ae7af3124305585c402f7.zip
FreeBSD-src-daa114fa6132f09fa19ae7af3124305585c402f7.tar.gz
I belive I finally got the "on eisa" right.
| if (!(isdp->id_iobase & 0xf300)) { | printf(" on motherboard\n"); | } else if (isdp->id_iobase >= 0x1000 && | !(isdp->id_opbase & 0x300)) { | printf (" on eisa slot %d\n", | isdp->id_iobase >> 12); | } else { | printf (" on isa\n"); | } | } Based on info in "The undocumented PC" p.165
Diffstat (limited to 'sys/amd64/isa/isa.c')
-rw-r--r--sys/amd64/isa/isa.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/amd64/isa/isa.c b/sys/amd64/isa/isa.c
index 3b4aa1f..0d7cec4 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: isa.c,v 1.36 1994/11/03 04:15:03 jkh Exp $
+ * $Id: isa.c,v 1.37 1995/02/17 02:22:54 phk Exp $
*/
/*
@@ -453,11 +453,12 @@ config_isadev_c(isdp, mp, reconfig)
if (isdp->id_flags)
printf(" flags 0x%x", isdp->id_flags);
if (isdp->id_iobase) {
- if (isdp->id_iobase < 0x100) {
+ if (!(isdp->id_iobase & 0xf300)) {
printf(" on motherboard\n");
- } else {
- if (isdp->id_iobase >= 0x1000) {
- printf (" on eisa\n");
+ } else if (isdp->id_iobase >= 0x1000 &&
+ !(isdp->id_opbase & 0x300)) {
+ printf (" on eisa slot %d\n",
+ isdp->id_iobase >> 12);
} else {
printf (" on isa\n");
}
OpenPOWER on IntegriCloud