Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 1999 16:35:34 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        holm@freibergnet.de
Cc:        Brian Somers <brian@Awfulhak.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: dgm (Digiboard PC/Xem) - candidate for removal ? 
Message-ID:  <199903181635.QAA01588@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Thu, 18 Mar 1999 14:56:52 %2B0100." <19990318145652.B35553@pegasus.freibergnet.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multipart MIME message.

--==_Exmh_-10506572080
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

> Brian Somers wrote:
> =

> > Hi,
> > =

> > Is there anyone out there that's willing to run some probe code for =

> > me with an installed digiboard that currently uses the dgm driver in =

> > -current or -stable ?
> =

> I have an Digiboard PC/Xe if this makes sense here.

Great.  Is it currently identified by the dgm driver (rather than the =

dgb driver) ?  If so, can you apply this patch and tell me what the =

boot messages say ?

TIA.

> Holm
> -- =

> FreibergNet Systemhaus GbR      Holm Tiffe  * Administration, Developme=
nt
> Systemhaus f=FCr Daten- und Netzwerktechnik           phone +49 3731 78=
1279
> Unternehmensgruppe Liebscher & Partner                fax +49 3731 7813=
77
> D-09599 Freiberg * Am St. Niclas Schacht 13    http://www.freibergnet.d=
e/

-- =

Brian <brian@Awfulhak.org> <brian@FreeBSD.org> <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour !


--==_Exmh_-10506572080
Content-Type: application/x-patch ; name="dgm.patch"
Content-Description: dgm.patch
Content-Disposition: attachment; filename="dgm.patch"

Index: dgm.c
===================================================================
RCS file: /home/ncvs/src/sys/gnu/i386/isa/dgm.c,v
retrieving revision 1.7
diff -u -r1.7 dgm.c
--- dgm.c	1999/01/30 12:17:32	1.7
+++ dgm.c	1999/02/13 21:37:14
@@ -239,25 +239,25 @@
 static	speed_t	dgmdefaultrate = TTYDEF_SPEED;
 
 static	struct speedtab dgmspeedtab[] = {
-	0,	FEP_B0, /* old (sysV-like) Bx codes */
-	50,	FEP_B50,
-	75,	FEP_B75,
-	110,	FEP_B110,
-	134,	FEP_B134,
-	150,	FEP_B150,
-	200,	FEP_B200,
-	300,	FEP_B300,
-	600,	FEP_B600,
-	1200,	FEP_B1200,
-	1800,	FEP_B1800,
-	2400,	FEP_B2400,
-	4800,	FEP_B4800,
-	9600,	FEP_B9600,
-	19200,	FEP_B19200,
-	38400,	FEP_B38400,
-	57600,	(FEP_FASTBAUD|FEP_B50),	/* B50 & fast baud table */
-	115200, (FEP_FASTBAUD|FEP_B110), /* B100 & fast baud table */
-	-1,	-1
+	{ 0,	FEP_B0 }, /* old (sysV-like) Bx codes */
+	{ 50,	FEP_B50 },
+	{ 75,	FEP_B75 },
+	{ 110,	FEP_B110 },
+	{ 134,	FEP_B134 },
+	{ 150,	FEP_B150 },
+	{ 200,	FEP_B200 },
+	{ 300,	FEP_B300 },
+	{ 600,	FEP_B600 },
+	{ 1200,	FEP_B1200 },
+	{ 1800,	FEP_B1800 },
+	{ 2400,	FEP_B2400 },
+	{ 4800,	FEP_B4800 },
+	{ 9600,	FEP_B9600 },
+	{ 19200, FEP_B19200 },
+	{ 38400, FEP_B38400 },
+	{ 57600, (FEP_FASTBAUD|FEP_B50) },	/* B50 & fast baud table */
+	{ 115200, (FEP_FASTBAUD|FEP_B110) },	/* B100 & fast baud table */
+	{ -1,	-1 }
 };
 
 static struct dbgflagtbl
@@ -382,7 +382,9 @@
 {
 	struct dgm_softc *sc= &dgm_softc[dev->id_unit];
 	int i, v;
+#ifdef DGB_DEBUG
 	int unit=dev->id_unit;
+#endif
 
 	sc->unit=dev->id_unit;
 	sc->port=dev->id_iobase;
@@ -417,8 +419,15 @@
 	/* check type of card and get internal memory characteristics */
 
 	v=inb(sc->port);
+
+	if (!(v & 0x1)) {
+		int second;
 
-	printf("dgm%d: PC/Xem\n",dev->id_unit);
+		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 +668,6 @@
 			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 +1893,6 @@
 		setwin(sc,0);
 
 		head=bc->tin & wmask;
-/*HERE*/
 
 		do { tail=bc->tout; } while (tail != bc->tout);
 		tail=bc->tout & wmask;
@@ -2105,7 +2111,4 @@
 
 SYSINIT(dgmdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,dgm_drvinit,NULL)
 
-int fi(){
-	return 0;
-}
 #endif /* NDGM > 0 */

--==_Exmh_-10506572080--




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903181635.QAA01588>