From owner-freebsd-hardware Tue Jul 22 12:27:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA21408 for hardware-outgoing; Tue, 22 Jul 1997 12:27:45 -0700 (PDT) Received: from Octopussy.MI.Uni-Koeln.DE (Octopussy.MI.Uni-Koeln.DE [134.95.166.20]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id MAA21399 for ; Tue, 22 Jul 1997 12:27:40 -0700 (PDT) Received: from x14.mi.uni-koeln.de (annexr2-45.slip.Uni-Koeln.DE) by Octopussy.MI.Uni-Koeln.DE with SMTP id AA13943 (5.67b/IDA-1.5 for ); Tue, 22 Jul 1997 21:27:29 +0200 Received: (from se@localhost) by x14.mi.uni-koeln.de (8.8.6/8.6.9) id VAA14778; Tue, 22 Jul 1997 21:27:16 +0200 (CEST) X-Face: " Date: Tue, 22 Jul 1997 21:27:15 +0200 From: Stefan Esser To: "Lu, Mark" Cc: Bill Douglass , freebsd-hardware@FreeBSD.ORG Subject: Re: Compaq Neflex ethernet drivers for TI ThunderLAN chip;was RE:Integrated ethernet on Compaq Deskpro 6000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.74 In-Reply-To: ; from Lu, Mark on Tue, Jul 22, 1997 at 09:47:25AM -0400 Sender: owner-freebsd-hardware@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Jul 22, "Lu, Mark" 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