From owner-freebsd-hackers Thu Mar 18 8:48: 4 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (Postfix) with ESMTP id 4BCC714E34 for ; Thu, 18 Mar 1999 08:47:52 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.2/8.8.8) with ESMTP id QAA58692; Thu, 18 Mar 1999 16:47:31 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id QAA01588; Thu, 18 Mar 1999 16:35:34 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199903181635.QAA01588@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: holm@freibergnet.de Cc: Brian Somers , freebsd-hackers@FreeBSD.ORG Subject: Re: dgm (Digiboard PC/Xem) - candidate for removal ? In-reply-to: Your message of "Thu, 18 Mar 1999 14:56:52 +0100." <19990318145652.B35553@pegasus.freibergnet.de> Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_-10506572080" Date: Thu, 18 Mar 1999 16:35:34 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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