From owner-freebsd-net@FreeBSD.ORG Mon Oct 10 19:24:28 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 05981106564A for ; Mon, 10 Oct 2011 19:24:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 896C78FC16 for ; Mon, 10 Oct 2011 19:24:27 +0000 (UTC) Received: by wyj26 with SMTP id 26so9699298wyj.13 for ; Mon, 10 Oct 2011 12:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=7gnUF7FajX3o/A11Jy4GFb6I/RfJKNE8asKAJHjfzg8=; b=ZMkYZR1T9D3BX+qDSgfR2m/ENb/6b0wWeVKOxJv/ENh+E/0ixuV4qlO5NWYfEyv7x8 sSviFjG8cxXW8w4Gs244FQdRzuNxxQ/FMF1O4ZdXqkO2/l5lHKY77wQHVaTBRcqLC8MX eHVM83nJOSTlegarke0zI0gTbt73Q0akS+4s4= Received: by 10.227.182.138 with SMTP id cc10mr6584801wbb.96.1318274666419; Mon, 10 Oct 2011 12:24:26 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id ei16sm34242804wbb.21.2011.10.10.12.24.22 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Oct 2011 12:24:25 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 10 Oct 2011 12:22:38 -0700 From: YongHyeon PYUN Date: Mon, 10 Oct 2011 12:22:38 -0700 To: Marius Strobl Message-ID: <20111010192238.GC1781@michelle.cdnetworks.com> References: <20111009165838.GA19886@alchemy.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111009165838.GA19886@alchemy.franken.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, dave jones Subject: Re: Question about GPIO bitbang MII X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2011 19:24:28 -0000 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