From owner-freebsd-net@FreeBSD.ORG Tue Nov 1 16:17:51 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 963C01065673 for ; Tue, 1 Nov 2011 16:17:51 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 2EB598FC0C for ; Tue, 1 Nov 2011 16:17:50 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id pA1GHnvL039497; Tue, 1 Nov 2011 17:17:50 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id pA1GHn0g039496; Tue, 1 Nov 2011 17:17:49 +0100 (CET) (envelope-from marius) Date: Tue, 1 Nov 2011 17:17:49 +0100 From: Marius Strobl To: dave jones Message-ID: <20111101161749.GA38912@alchemy.franken.de> References: <20111009165838.GA19886@alchemy.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: Question about GPIO bitbang MII X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 16:17:51 -0000 On Mon, Oct 10, 2011 at 03:56:32PM +0800, dave jones wrote: > On Mon, Oct 10, 2011 at 12:58 AM, 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 > > You can also hook up that generic MII bitbang'ing code up to GPIO. > > Awesome! This is what I want, thank you very much, Marius. > FYI, I've committed the patch to head in r226995. I'll probably try to get it into 9.0 due to the bus barrier additions done as part of it. Marius