From owner-svn-src-all@FreeBSD.ORG Thu Feb 13 21:06:50 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CD5D5934; Thu, 13 Feb 2014 21:06:50 +0000 (UTC) Received: from i3mail.icecube.wisc.edu (i3mail.icecube.wisc.edu [128.104.255.23]) by mx1.freebsd.org (Postfix) with ESMTP id 84BBD1423; Thu, 13 Feb 2014 21:06:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by i3mail.icecube.wisc.edu (Postfix) with ESMTP id 43F4D38065; Thu, 13 Feb 2014 14:59:09 -0600 (CST) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from i3mail.icecube.wisc.edu ([127.0.0.1]) by localhost (i3mail.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id exM5hl64LBjO; Thu, 13 Feb 2014 14:59:09 -0600 (CST) Received: from terminus.icecube.wisc.edu (terminus.icecube.wisc.edu [172.16.223.97]) by i3mail.icecube.wisc.edu (Postfix) with ESMTPSA id 3381F38040; Thu, 13 Feb 2014 14:59:09 -0600 (CST) Message-ID: <52FD321D.7010105@freebsd.org> Date: Thu, 13 Feb 2014 14:59:09 -0600 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Luiz Otavio O Souza , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r261842 - in head/sys: conf dev/gpio References: <201402131708.s1DH8UJ7063297@svn.freebsd.org> In-Reply-To: <201402131708.s1DH8UJ7063297@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 21:06:51 -0000 On 02/13/14 11:08, Luiz Otavio O Souza wrote: > Author: loos > Date: Thu Feb 13 17:08:29 2014 > New Revision: 261842 > URL: http://svnweb.freebsd.org/changeset/base/261842 > > Log: > Add an OFW GPIO compatible bus. This allows the use of the DTS files to > describe GPIO bindings in the system. > > Move the GPIOBUS lock macros to gpiobusvar.h as they are now shared between > the OFW and the non OFW versions of GPIO bus. > > Export gpiobus_print_pins() so it can also be used on the OFW GPIO bus. > > Approved by: adrian (mentor, implicit) > > Added: > head/sys/dev/gpio/ofw_gpiobus.c (contents, props changed) > Modified: > head/sys/conf/files > head/sys/dev/gpio/gpiobus.c > head/sys/dev/gpio/gpiobusvar.h > > > > Added: head/sys/dev/gpio/ofw_gpiobus.c > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/sys/dev/gpio/ofw_gpiobus.c Thu Feb 13 17:08:29 2014 (r261842) > @@ -0,0 +1,338 @@ > +/*- > + * Copyright (c) 2009, Nathan Whitehorn > + * Copyright (c) 2013, Luiz Otavio O Souza > + * Copyright (c) 2013 The FreeBSD Foundation > + * All rights reserved. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * 1. Redistributions of source code must retain the above copyright > + * notice unmodified, this list of conditions, and the following > + * disclaimer. > + * 2. Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the distribution. > + * > + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR > + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES > + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. > + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, > + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT > + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, > + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY > + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF > + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + */ > + > +#include > +__FBSDID("$FreeBSD$"); > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > + > is there a reason you include fdt_common.h here? Nothing here seems to be FDT specific, rather than for Open Firmware generally. -Nathan