From owner-freebsd-arm@FreeBSD.ORG Wed Mar 11 17:15:11 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0475531F for ; Wed, 11 Mar 2015 17:15:11 +0000 (UTC) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B0F9D8D for ; Wed, 11 Mar 2015 17:15:10 +0000 (UTC) Received: by wevk48 with SMTP id k48so10744526wev.7 for ; Wed, 11 Mar 2015 10:15:09 -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 :cc:content-type:content-transfer-encoding; bh=8orURwnJC9om5YkqHHUXPLC1628d6KwGgVho0RAOQ4o=; b=Xb0WXZ9cisBwbzZMSoaBl7QCoeqfp/xTEJDPjwfpSmkupNOMorGwrZOAEl89anqKaS JiP0mtp7Kv44piRMi+N9AHueZpqB00KTYnN4bBMBvmEp1HQdRQGPG/TEPDT6iJGlpHir nmsHJ+x25izu/90Noq8C5WrSmOLIiWB6pIq/CvpEM6M3I+1lTMIWDY+zO+CV/D7XhGQ+ PoZLsi9tv5AkkLiAQYQpwIl5xcc7IfyGMOKJv+BkDQgT0mbTxVMjSmmqWBcw20FeTC7h Da7hLeIo0VSuvY1zIfviTCab8QnJcOg2onH60wFHYCBWpLWxC9Kl1Yh7/wCogCsskOmi 1Lrw== MIME-Version: 1.0 X-Received: by 10.194.121.10 with SMTP id lg10mr81198974wjb.71.1426094109014; Wed, 11 Mar 2015 10:15:09 -0700 (PDT) Received: by 10.180.195.99 with HTTP; Wed, 11 Mar 2015 10:15:08 -0700 (PDT) In-Reply-To: <54FDDBB6.8000101@freenet.de> References: <54FDDBB6.8000101@freenet.de> Date: Wed, 11 Mar 2015 14:15:08 -0300 Message-ID: Subject: Re: GPIO-INTR From: Luiz Otavio O Souza To: =?UTF-8?Q?Manuel_St=C3=BChn?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2015 17:15:11 -0000 On 9 March 2015 at 14:43, Manuel St=C3=BChn wrote: > Hi, > i'm trying to get gpio-events signalled into userspace-applications on a > RPi-B. I found some pieces about gpio-interrupts in conjunction with kque= ue > in the web, but nothing that makes me able to get some notification from > gpio. There is an example "gpio-intr-kqueue.c", which compiles smoothly, = but > gives me only something like: > > ./gpio-intr-kqueue 23 > Awaiting interrupts on pin: 23 > error: Operation not supported by device > > How do i configure a gpio-pin as an interrupt? Hi Manuel, I changed the way the GPIO events are passed to userland and gpio-intr-kqueue won't work anymore. I'm working in its replacement and I will soon post the patches and (hopefully) a comprehensive guide to get it working. There is also an ongoing work to change interrupt support on ARM which I need to catch up. Regards, Luiz