Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 1997 18:23:34 +0000
From:      Matt Thomas <matt@lkg.dec.com>
To:        hackers@freebsd.org
Subject:   New de driver released ...
Message-ID:  <199703211823.SAA01355@whydos.lkg.dec.com>

next in thread | raw e-mail | index | archive | help

[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





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