Date: Thu, 5 Dec 2002 11:14:19 -0500 From: Jake Burkholder <jake@locore.ca> To: Maxim Mazurok <maxim@km.ua> Cc: freebsd-sparc@FreeBSD.ORG Subject: Re: freebsd-sparc and pci ethernets Message-ID: <20021205111419.A52352@locore.ca> In-Reply-To: <20021205140252.V54486@km.ua>; from maxim@km.ua on Thu, Dec 05, 2002 at 02:02:53PM %2B0200 References: <20021205140252.V54486@km.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/param.h> +#include <sys/endian.h> #include <sys/systm.h> #include <sys/sockio.h> #include <sys/mbuf.h> @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021205111419.A52352>