Date: Mon, 10 Oct 2011 12:22:38 -0700 From: YongHyeon PYUN <pyunyh@gmail.com> To: Marius Strobl <marius@alchemy.franken.de> Cc: freebsd-net@freebsd.org, dave jones <s.dave.jones@gmail.com> Subject: Re: Question about GPIO bitbang MII Message-ID: <20111010192238.GC1781@michelle.cdnetworks.com> In-Reply-To: <20111009165838.GA19886@alchemy.franken.de> References: <CANf5e8bcAfrXX%2BuqzVRoZJPmsvyPegx%2BFOYHSt-GHwEigUCoeg@mail.gmail.com> <20111009165838.GA19886@alchemy.franken.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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))? > You can also hook up that generic MII bitbang'ing code up to GPIO. > > Marius
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111010192238.GC1781>