summaryrefslogtreecommitdiffstats
path: root/sys/gnu
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-05-03 09:32:31 +0000
committerbrian <brian@FreeBSD.org>1999-05-03 09:32:31 +0000
commit29a7fdd934f8d66f6d7f1a99338b23a5783cd3ce (patch)
tree3750f53bac76e2e657a210c02aaf5156ddd220e5 /sys/gnu
parent3e587269bb5ac05042224b71265ce97f6411e0a5 (diff)
downloadFreeBSD-src-29a7fdd934f8d66f6d7f1a99338b23a5783cd3ce.zip
FreeBSD-src-29a7fdd934f8d66f6d7f1a99338b23a5783cd3ce.tar.gz
Add an additional probe, hopefully allowing me to distinguish
between the PC/Xi and PC/Xem boards. Now all I need is for someone with a PC/Xem to tell me what the probe says....
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/i386/isa/dgm.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/gnu/i386/isa/dgm.c b/sys/gnu/i386/isa/dgm.c
index c9d9cab..e274ea7 100644
--- a/sys/gnu/i386/isa/dgm.c
+++ b/sys/gnu/i386/isa/dgm.c
@@ -1,5 +1,5 @@
/*-
- * $Id: dgm.c,v 1.10 1999/04/28 10:51:58 dt Exp $
+ * $Id: dgm.c,v 1.11 1999/05/02 21:39:52 peter Exp $
*
* This driver and the associated header files support the ISA PC/Xem
* Digiboards. Its evolutionary roots are described below.
@@ -416,9 +416,16 @@ dgmprobe(dev)
/* check type of card and get internal memory characteristics */
- v=inb(sc->port);
+ v = inb(sc->port);
- printf("dgm%d: PC/Xem\n",dev->id_unit);
+ if (!(v & 0x1)) {
+ int second;
+
+ outb(sc->port, 1);
+ second = inb(sc->port);
+ printf("dgm%d: PC/Xem (type %d, %d)\n", dev->id_unit, v, second);
+ } else
+ printf("dgm%d: PC/Xem (type %d)\n", dev->id_unit, v);
sc->type=PCXEM;
sc->mem_seg=0x8000;
@@ -659,8 +666,6 @@ dgmattach(dev)
shrinkmem=0;
}
-/* HERE */
-
port->txptr=mem+( ((bc->tseg)<<4) & 0x7FFF );
port->rxptr=mem+( ((bc->rseg)<<4) & 0x7FFF );
port->txwin=FEPWIN | ((bc->tseg)>>11);
@@ -1886,7 +1891,6 @@ dgmstart(tp)
setwin(sc,0);
head=bc->tin & wmask;
-/*HERE*/
do { tail=bc->tout; } while (tail != bc->tout);
tail=bc->tout & wmask;
OpenPOWER on IntegriCloud