On Wed, Oct 12, 2011 at 10:42:22PM +0200, Marius Strobl wrote: > On Tue, Oct 11, 2011 at 03:55:31PM -0700, YongHyeon PYUN wrote: > > On Tue, Oct 11, 2011 at 11:23:18PM +0200, Marius Strobl wrote: > > > On Mon, Oct 10, 2011 at 12:22:38PM -0700, YongHyeon PYUN wrote: > > > > On Sun, Oct 09, 2011 at 06:58:38PM +0200, Marius Strobl wrote: > > > > > On Fri, Oct 07, 2011 at 10:34:58AM +0800, dave jones wrote: > > > > > > Hi, > > > > > > > > > > > > Does FreeBSD have gpio bitbang api for MII? If not, any driver in > > > > > > tree using > > > > > > gpio-bitbang mii that I can refer to? Thanks. > > > > > > It seems like OpenBSD, NetBSD and Linux have added support to gpio > > > > > > bitbang mii, > > > > > > and it's useful for porting embedded devices. > > > > > > > > > > > > > > > > If what you are referring to is their mii_bitbang.[c,h] then I've a > > > > > patch > > > > > which (im)ports these and converts drivers to take advantage of it > > > > > here: > > > > > http://people.freebsd.org/~marius/mii_bitbang.diff > > > > > > > > Patch looks good to me. > > > > What about other drivers(rl(4), bm(4), lge(4), tl(4), nge(4), wb(4) > > > > and xe(4))? > > > > > > > > > > Meanwhile I've also converted bm(4), just re-fetch the patch. Generally > > > I've started with the drivers were the corresponding NetBSD one also > > > uses the common MII bitbang'ing code. As for nge(4), tl(4), wb(4) I'm > > > aware that these should also be convertible to the common code, I just > > > didn't get around to it so far. As for lge(4) that driver has some > > > remnants of MII bitbang'ing but doesn't actually use it AFAICT. I've > > > > Ah, I just blindly grepped the string, sorry. > > > > > previously missed rl(4) as I was only grepping beneath sys/dev and I > > > currently can't explain why I missed xe(4), so thanks for mentioning > > > these. > > > In my experience MII bitbang'ing is very fragile though and subtle > > > changes may break it so I don't want to commit these without testing > > > or in the case of smc(4) where at least the corresponding NetBSD > > > driver already uses the common code. Unfortunately, I only have > > > hardware for dc(4), stge(4), xl(4) and somewhere also for rl(4) and > > > tl(4) and I guess I can nwhitehorn@ regarding testing bm(4). Do you > > > happen to have hardware to test the remaining drivers, i.e. nge(4), > > > sis(4), ste(4), wb(4) and xe(4)? > > > > > > > I have access to sis(4) and ste(4). I also have a nge(4) but I'm > > not able to access to the hardware, at least in US. > > > > It would be great if you could test sis(4) and ste(4). >
Ok, will do in this week. > Marius > _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"