From owner-freebsd-embedded@FreeBSD.ORG Thu May 15 12:59:41 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 867ABDB for ; Thu, 15 May 2014 12:59:41 +0000 (UTC) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F71C256E for ; Thu, 15 May 2014 12:59:40 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id f8so4126792wiw.16 for ; Thu, 15 May 2014 05:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kdhspRlUKpOhNuc31HyBGFG+isBpQydn+ybwJTDA81Q=; b=lzz/QqoxGoOEBgF6HHjwNWTdjGdZlRnYEElCEYMU0KjavkOpqkSlrvEzPUWNMZvVtW tw7lY5mE7HT2mEIBqhcMlWsQonQSQhm08ZTGXJ3C8E63ZBIgk1Z1GfOvmJwatr306/l/ J+zDeirDMC4sFhMNqlLqSHYLbHtQFAWnvKLYmh70nrPpKNLqNKykalVXu0O5+duJWyR2 76CLtL4PP3z0ph2iqrFwXTrsJhikC4LBjc5Cfq8h3oZ4eAH9lDDfPOHFOPuX365KNT5A WNMkg0joBuz30uf5NketzhfGR0OR9mj23qBnjP0W2iz216OstZWSXWuXARI7YddGb6dr l6Ag== MIME-Version: 1.0 X-Received: by 10.194.71.66 with SMTP id s2mr8557984wju.23.1400158779387; Thu, 15 May 2014 05:59:39 -0700 (PDT) Received: by 10.216.168.194 with HTTP; Thu, 15 May 2014 05:59:39 -0700 (PDT) In-Reply-To: References: Date: Thu, 15 May 2014 09:59:39 -0300 Message-ID: Subject: Re: [RFC] GPIO interrupt support From: Luiz Otavio O Souza To: "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2014 12:59:41 -0000 And looks like i forgot to attach the gpio-intr-kqueue.c... On Wed, May 14, 2014 at 4:30 PM, Luiz Otavio O Souza wrote: > Hi, > > I've been working on the attached patches which adds the GPIO interrupt support. > > gpio-intr.diff has the bus changes for FDT and non-FDT systems. > > ar71xx_gpio-intr.diff has the changes to AR71xx GPIO driver. > > bcm2835_gpio-intr.diff has the changes to BCM2835 (RPi) GPIO driver. > > ti_gpio-intr.diff has the changes for AM335x (Beaglebone), OMAP3 and > OMAP4 (panda board). > > The other attached file (gpio-intr-kqueue.c) is an example program > i've been using to check for interrupts from userland. > > Userland is notified about GPIO interrupts by a kqueue event. > > The changes have been tested on BBB, RPi and RSPRO. > > The manual page changes are still to be done (but it will surely be done). > > Comments ? > > Regards, > Luiz