Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 1997 21:27:15 +0200
From:      Stefan Esser <se@FreeBSD.ORG>
To:        "Lu, Mark" <LuMark@navcanada.ca>
Cc:        Bill Douglass <bill@tcada.state.tx.us>, freebsd-hardware@FreeBSD.ORG
Subject:   Re: Compaq Neflex ethernet drivers for TI ThunderLAN chip;was RE:Integrated ethernet on Compaq Deskpro 6000
Message-ID:  <19970722212715.17259@mi.uni-koeln.de>
In-Reply-To: <c=CA%a=_%p=NAVCANADA%l=NAVCANADA/NCR/00087AAC@gatewaysrv.navcanada.ca>; from Lu, Mark on Tue, Jul 22, 1997 at 09:47:25AM -0400
References:  <c=CA%a=_%p=NAVCANADA%l=NAVCANADA/NCR/00087AAC@gatewaysrv.navcanada.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jul 22, "Lu, Mark" <LuMark@NAVCANADA.CA> wrote:
> Is anyone interested in writing or porting a device driver for Texas
> Instruments TLAN-based ethernet controllers (eg. Compaq Netflex),
> because TI has now released info on the chip on their website.
> There is also an Alpha driver available for it on Linux at
> ftp://ftp.caldera.com/pub/stuff/tlan-0.24.tar.gz

I'm not sure how special that Compaq Ethernet chip actually is, 
after all it still could be some variant of the Lance ...

> How much work is involved in porting a device driver from Linux?  Is
> this easier than starting from scratch?

You can at least look what's required to initialize the chip,
what the interrupt handler got to check for, and how to read
and write the chip's buffer or how to initiate bus-master 
transfers.

You will have to add some BSD specific code, but you can find 
that in the other Ethernet drivers in FreeBSD :)

> ----------------------------------------------------------------
> Date:      Thu, 31 Oct 1996 21:40:31 -0500
> From:      bill@tcada.state.tx.us (Bill Douglass)
> To:        freebsd-questions@freebsd.org
> Sender:    owner-questions@freebsd.org
> Subject:   Integrated ethernet on Compaq Deskpro 6000
> 
> I am trying to install FreeBSD (either 2.1.5R or 2.2-SNAP 101496) onto a
> Compaq Deskpro 6000, Adaptec Ultra SCSI 2940, integrated ethernet.  This
> is a machine I am setting up for web service, so X11 is not an issue.
> 
> I cannot get the boot floppies to recognize the on-board ethernet card
> (Netflex-3/P, PCI).  Searching through the mailing-list archive led me
> to think
> I needed the Lnce driver (lnc0) so I set that up, using the config. that
> Win95 gave for the device's settings .  No dice.

Could you please send me a verbose boot message log (i.e.
enter "-v" at the "Boot: " prompt) ?

You will find all the required information for the config
there, and it is possible, that Win95 used different access
methods to reach the chip registers (I assume that the chip's
registers are mapped to both port I/O and memory address space,
for example). I'm not sure I can suggest better parameters
than you already tried, but we'll see ... :)

> The probes recognized the device as a Compaq network device, but has no
> driver installed -
> 
> pci0:11:  Compaq, device=0xae35, class=network (misc) int a irq 11 [no
> driver assigned]

This message will still be printed even if the "lnc0" port
and irq config is set to appropriate values, since the ISA
probe will then identify the card. You may want to try the
following (naive) patch:

Index: if_lnc_p.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/if_lnc_p.c,v
retrieving revision 1.1.2.1
diff -C2 -r1.1.2.1 if_lnc_p.c
*** if_lnc_p.c	1997/04/04 16:48:12	1.1.2.1
--- if_lnc_p.c	1997/07/22 19:23:32
***************
*** 35,38 ****
--- 35,39 ----
  
  #define PCI_DEVICE_ID_PCNet_PCI	0x20001022
+ #define PCI_DEVICE_ID_NetFlex_PCI	0xae350e11
  
  extern void *lnc_attach_ne2100_pci __P((int unit, unsigned iobase));
***************
*** 59,62 ****
--- 60,66 ----
  	case PCI_DEVICE_ID_PCNet_PCI:
  		return ("PCNet/PCI Ethernet adapter");
+ 		break;
+ 	case PCI_DEVICE_ID_NetFlex_PCI:
+ 		return ("NetFlex/PCI Ethernet adapter (experimental !!!)");
  		break;
  	default:


This may or may not work, I really don't know whether that 
Compaq NetFlex looks like a Lance at all :)

Please let me know what you find!

Regards, STefan



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