From owner-FreeBSD-users-jp@jp.freebsd.org  Wed Apr  2 10:02:57 1997
Received: by jaz.jp.freebsd.org (8.8.5+2.7Wbeta5/8.7.3) id KAA27091
	Wed, 2 Apr 1997 10:02:57 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.5+2.7Wbeta5/8.7.3) with ESMTP id KAA27086
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 2 Apr 1997 10:02:56 +0900 (JST)
From: yamagata@nwgpc.kek.jp
Received: from localhost by nwgpc.kek.jp (8.8.5/X-95.11.12/nwgpc)
	id KAA10284; Wed, 2 Apr 1997 10:02:54 +0900 (JST)
To: FreeBSD-users-jp@jp.freebsd.org
Cc: yokota@nova.fuji-ric.co.jp
In-Reply-To: Your message of "Wed, 19 Mar 1997 15:56:55 +0900"
References: <199703190656.PAA25506@sun6.nova.fuji-ric.co.jp>
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <19970402100253I.yamagata@nwgpc.kek.jp>
Date: Wed, 02 Apr 1997 10:02:53 +0900
X-Dispatcher: impost version 0.99h (Apr. 2, 1997)
Lines: 97
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 11351
Subject: [FreeBSD-users-jp 11351] Re: DEC PCI Ethernet DC21142
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$B;37A$G$9!#(B

In message <199703190656.PAA25506@sun6.nova.fuji-ric.co.jp>,
Hideaki Yokota wrote

> >> $B$H$J$?$+(B FreeBSD $B$G(BDC21142 $B$r$4MxMQ$NJ}$O$*$j$^$9$G$7$g$&$+(B ?
> 
> >$B8=:_$O$b$&0l2s$jF|IU$,?7$7$/$J$C$F$$$k$h$&$G$9$1$l$I$b(B
> >GL6200$B$,$b$&<j5v$K$J$$$?$a%F%9%H$G$-$F$$$^$;$s!#(B
> >
> >10M$B$G$b$$$$$N$G;H$($kJ}K!$,$"$C$?$i;d$bCN$j$?$$$G$9!#(B
> 
> $BK\Ev$K$=$&$G$9$M!#(B
> freebsd-questions@freebsd.org $B$K$b<ALd$7$F$$$k$N$G$9$,!"(B
> $B$^$@2sEz$O$"$j$^$;$s!#(B

$B:F$S%*%s%\!<%I(B21142$B$N$"$k(B($B$^$?JL$N(B)PC$B$,$d$C$F$-$?$N$G(B
$BFsF|4V$[$I$4$A$c$4$A$c$d$C$F$_$?$N$G$9$,!"(B
$B$I$&$b$&$^$/$"$j$^$;$s!#(B

$BF1$8(BPC$B$K:9$7$?(B21040$B$N%+!<%I$OLdBj$J$/F0$$$F$$$k$N$K!A!#(B

$B%I%i%$%P$O(BNetBSD-current$B$+$i(B4/1$B$N;~E@$G;}$C$F$-$?$b$N$K$J$N$G$9$,!"(B
$B$"$i$f$k%Q%1%C%H$N=PNO$,(BOerrs$B$K%+%&%s%H$5$l$F$7$^$$$^$9!#(B

$B$h$=$G(Btcpdump$B$7$F$_$F$$$k$H(B3$B2s$K0l2s$/$i$$=P$F$$$k$h$&$J$N$G$9$,!"(B
TX$B$N%(%i!<$H;W$7$-H=Dj$,2<$5$l$F$$$k$N$G(Bdc21040.h$B$H>H$i$79g$o$;$F$_$k$H(B

#define TULIP_DSTS_TxCARRLOSS   0x00000800      /* Carrier Loss */
#define TULIP_DSTS_TxNOCARR     0x00000400      /* No Carrier */
#define TULIP_DSTS_TxNOHRTBT    0x00000080      /* No Heartbeat */

$B$N(B3$B$D$N%S%C%H$,$$$D$b$?$C$F$$$F!"$5$i$K$H$-$I$-(B

#define TULIP_DSTS_TxDEFERRED   0x00000001      /* Initially Deferred */

$B$bN)$C$F$$$k$H$$$&>uBV$G$7$?!#(B
10BaseT$B$N(BHUB$B$K$D$J$$$G$$$F(BHUB$B$O%i%s%W$O$D$/$N$G$9$,$M$(!D!#(B

$B$A$J$_$K8=:_$NHG$O"-$H$$$&$3$H$J$s$G(B
$B:#$^$G$h$j$$$l$k:n6H$,$A$g$C$HLLE]$K$J$C$F$$$^$9!#(B

Subject: New de driver released ...
From: Matt Thomas <matt@lkg.dec.com>
To: hackers@FreeBSD.ORG
Date: Fri, 21 Mar 1997 18:23:34 +0000


[I've sent it to dg and will be uploading it to freefall later tonight.
Read this message completely.  For those people who have cards that
just don't work, I'd really like you to try this driver and send me 
the results.] 

This is a new, very different, de driver.  It's the one in NetBSD and
most of the bugs seem to have been shaken out.

I've tested with

21040, 21041, SMC9332DST, DE500-AA, DE500-XA, DE500-BA (21143!).

This driver requires the if_media support recently added to NetBSD.
It is not optional.

It took me less that 15 minutes to get a FreeBSD 2.1.0 system with
ifmedia running.

You need:

	sys/net/if_media.[ch] (small tweak needed to if_media.h
			NetBSD uses _KERNEL instead of KERNEL).

	Add SIOC[GS]IFMEDIA to sys/sys/sockio.h

	Add struct ifmediareq and ifr_media to ifres in sys/net/if.h

	Add entry for net/if_media.c to sys/conf/files

% uname -a
FreeBSD whydos.lkg.dec.com 2.1.0-RELEASE FreeBSD 2.1.0-RELEASE #2: Fri Mar 21 
17:14:15  1997     root@:/usr/src/sys/compile/DECFDDI  i386
% ifconfig de0
de0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
        media: autoselect (100baseTX) status: active
        inet 10.0.0.3 netmask 0xff000000 broadcast 10.255.255.255

This was done by using the ifconfig from NetBSD.  No changes where made,
just compiled it.

Cheers,

-- 
Matt Thomas               Internet:   matt@3am-software.com
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt.html
Westford, MA              Disclaimer: I disavow all knowledge of this message



