From owner-soc-status@freebsd.org Thu Jul 12 16:54:20 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 664251025E80 for ; Thu, 12 Jul 2018 16:54:20 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [IPv6:2a00:1398:9:f712::810d:e752]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EFF7A72D10; Thu, 12 Jul 2018 16:54:19 +0000 (UTC) (envelope-from uddka@student.kit.edu) Received: from tr-v1239-fse.scc.kit.edu ([2a00:1398:e:28::2] helo=server-01.fs-etec.kit.edu) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1fder9-00063m-Cf; Thu, 12 Jul 2018 18:54:17 +0200 Received: from Chris-TP (unknown [IPv6:2a00:1398:9:fb03:1ce1:aee5:584f:44e4]) by server-01.fs-etec.kit.edu (Postfix) with ESMTPSA id 5BDACF91; Thu, 12 Jul 2018 18:54:14 +0200 (CEST) Date: Thu, 12 Jul 2018 18:53:07 +0200 From: Christian =?ISO-8859-1?Q?Kr=E4mer?= To: soc-status@freebsd.org Cc: Chuck Tuffli , Luiz Otavio O Souza Subject: User space interface for GPIO interrupts / Status Report Week 8 Message-Id: <20180712185307.b88853daad8a30b329ad5543@student.kit.edu> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 16:54:20 -0000 Hi all, in the course of last week I implemented pin distinction using per file descriptor configuration. This is one of the two possibilities to implement this feature. The second one (having one character device for each mapped pin) was discarded. This week I started to investigate the migration of the code into the gpioc driver as suggested by one of my mentors. As advantage there is no more need to maintain redundant data structures. Moreover the already existing functions and flags in libgpio can be used to handle the interrupt functionality. Special attention hereby is needed in order to not break support for any device that do not support INTRNG. The source code of the driver can be found in my fork of the FreeBSD src tree on GitHub [1]. The utilities for configuration and testing are located in a separate repository [2]. Regards, Chris [1] [2]