From owner-freebsd-sparc Thu Dec 5 7:58:45 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C25737B401 for ; Thu, 5 Dec 2002 07:58:44 -0800 (PST) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7A6A43EBE for ; Thu, 5 Dec 2002 07:58:43 -0800 (PST) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost.locore.ca [127.0.0.1]) by k6.locore.ca (8.12.6/8.12.6) with ESMTP id gB5GEJxQ056340; Thu, 5 Dec 2002 11:14:19 -0500 (EST) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.6/8.12.6/Submit) id gB5GEJee056339; Thu, 5 Dec 2002 11:14:19 -0500 (EST) Date: Thu, 5 Dec 2002 11:14:19 -0500 From: Jake Burkholder To: Maxim Mazurok Cc: freebsd-sparc@FreeBSD.ORG Subject: Re: freebsd-sparc and pci ethernets Message-ID: <20021205111419.A52352@locore.ca> References: <20021205140252.V54486@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021205140252.V54486@km.ua>; from maxim@km.ua on Thu, Dec 05, 2002 at 02:02:53PM +0200 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Apparently, On Thu, Dec 05, 2002 at 02:02:53PM +0200, Maxim Mazurok said words to the effect of; > Can i use width my PCI motherboard Ultra-AXi any PCI Ethernet cards, like > rl0, fxp0, de0, xl0, etc? > Onboard hme0 worked perfectly, but i need many moo ethernet ports, and have > not specific SUN ethernet cards.... > O, and can i use dot1q vlans on hme0 card? In general no, the ethernet drivers for the other cards have not been modified to use busdma so they won't work; they assume too much about how dma works. The rl driver does use busdma and should work with the following patch; the card I have here works fine. I'll see about getting approval to commit this. The ethernet address may come out wierd due to other bugs in the driver, but that shouldn't matter. Jake --- //depot/vendor/freebsd/src/sys/pci/if_rl.c 2002/11/14 21:42:02 +++ //depot/user/jake/busdma/src/sys/pci/if_rl.c 2002/11/29 17:11:55 @@ -84,6 +84,7 @@ */ #include +#include #include #include #include @@ -1209,7 +1215,7 @@ } #endif /* DEVICE_POLLING */ rxbufpos = sc->rl_cdata.rl_rx_buf + cur_rx; - rxstat = *(u_int32_t *)rxbufpos; + rxstat = le32toh(*(u_int32_t *)rxbufpos); /* * Here's a totally undocumented fact for you. When the To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message