Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Oct 2011 02:34:28 -0700
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        dave jones <s.dave.jones@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Question about GPIO bitbang MII
Message-ID:  <CACVs6=9-nHHDw3-9Q47NRnswUbU8JmC2Kxr8fXxPWohJO%2BOGMw@mail.gmail.com>
In-Reply-To: <CANf5e8bcAfrXX%2BuqzVRoZJPmsvyPegx%2BFOYHSt-GHwEigUCoeg@mail.gmail.com>
References:  <CANf5e8bcAfrXX%2BuqzVRoZJPmsvyPegx%2BFOYHSt-GHwEigUCoeg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 6, 2011 at 19:34, dave jones <s.dave.jones@gmail.com> 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.

FreeBSD has a GPIO API and MACs can use whatever mechanism they like
to attach MII (or similar, as in the case of devices like switches
that sort of use MDIO but aren't exactly like Ethernet PHYs on an MII
bus.)

Or do you not want to do this within a driver for a particular MAC,
but just make the MII bus available for poking and prodding to
userland, backed by GPIO?

Can you give an example of an OpenBSD driver that uses the API you're
talking about?  I've worked with some drivers for FreeBSD which have
used GPIO bit-banging to expose an MII bus, but adding the abstraction
of the GPIO layer hasn't typically been worthwhile for those as
they're an SoC with dedicated GPIO for networking devices or similar.

Thanks,
Juli.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACVs6=9-nHHDw3-9Q47NRnswUbU8JmC2Kxr8fXxPWohJO%2BOGMw>