From owner-freebsd-questions Tue Nov 6 5: 1:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pandora.cs.kun.nl (pandora.cs.kun.nl [131.174.33.4]) by hub.freebsd.org (Postfix) with ESMTP id 279A337B417 for ; Tue, 6 Nov 2001 05:01:16 -0800 (PST) Received: from odin.cs.kun.nl by pandora.cs.kun.nl via odin.cs.kun.nl [131.174.33.33] with ESMTP id fA6D1Ck25407 (8.11.3/3.19); Tue, 6 Nov 2001 14:01:12 +0100 (MET) Date: Tue, 6 Nov 2001 14:01:12 +0100 (MET) From: Adriaan de Groot Reply-To: To: Ted Mittelstaedt Cc: Subject: RE: Myson NIC / fet driver for 4.4? In-Reply-To: <002a01c166b8$f6e98800$1401a8c0@tedm.placo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Ted, On Tue, 6 Nov 2001, Ted Mittelstaedt wrote: > Are you sure that this isn't the 8139C+ chip? Yyves posted a driver for > this Fri 11/2/01 12:23 AM on the freebsd-questions list. Do a search on > a subject headig of "How to update driver?" Thanks for your speedy reply. However, I don't think that the chip I'm dealing with is one of these 8139C+ chips. Reasons being: 1) The Myson has a separate driver from the rtl 8129 / 39 / 39C+ driver under linux. 2) The PCI id of this card is 1536:0803 (dern, i forget which constant it is, but the 0803 is right for sure) which isn't listed in the if_rlreg.h file. This may be an oversight on the part of specific vendors, though. 3) Let's take a look at some register offsets. From Yves' if_rlreg.h: #define RL_COMMAND 0x0037 /* command register */ #define RL_CURRXADDR 0x0038 /* current address of packet read */ #define RL_CURRXBUF 0x003A /* current RX buffer address */ #define RL_IMR 0x003C /* interrupt mask register */ and from the stuff I posted: #define FET_TXLBA 0x2C /* transmit list base address */ #define FET_RXLBA 0x30 /* receive list base address */ #define FET_ISR 0x34 /* interrupt status */ #define FET_IMR 0x38 /* interrupt mask */ #define FET_FTH 0x3C /* flow control high/low threshold */ #define FET_MANAGEMENT 0x40 /* bootrom/eeprom and mii management */ It seems to me that we're dealing with two definitely different programming interfaces here. But since I've never done kernel hacking before I'm not the best judge of this. [ade] PS. The Myson driver I posted has a RCS tag with "wpaul" in it, so I guess Bill Paul should recognize that code somehow. Bill, can you comment on this directly? PPS. I think it's pretty cool that Yves left in all the disparaging remarks about the RTL chipset, too. -- +------------------------------+--------------------------------------------+ + Adriaan de Groot + Project: FRESCoS + + adridg@cs.kun.nl + Private: adridg@sci.kun.nl + + Kamer A6020 tel. 024 3652272 + http://www.cs.kun.nl/~adridg/frescos/ + To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message