From owner-freebsd-current@freebsd.org Tue Dec 11 14:10:21 2018 Return-Path: Delivered-To: freebsd-current@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 4AFEA1332153; Tue, 11 Dec 2018 14:10:21 +0000 (UTC) (envelope-from coolvibe@hackerheaven.org) Received: from mx.hackerheaven.org (mx.hackerheaven.org [188.166.66.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ECD036FB1A; Tue, 11 Dec 2018 14:10:19 +0000 (UTC) (envelope-from coolvibe@hackerheaven.org) Received: from mx.hackerheaven.org (localhost [127.0.0.1]) by mx.hackerheaven.org (Postfix) with ESMTP id 581F157175; Tue, 11 Dec 2018 14:02:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at hackerheaven.org Received: from mx.hackerheaven.org ([127.0.0.1]) by mx.hackerheaven.org (mx.hackerheaven.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7p5V4CjNe9a8; Tue, 11 Dec 2018 14:02:52 +0000 (UTC) Received: from webmail.hackerheaven.org (unknown [10.133.48.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ekollof) by mx.hackerheaven.org (Postfix) with ESMTPSA id 6B08F57172; Tue, 11 Dec 2018 14:02:52 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 11 Dec 2018 15:02:52 +0100 From: Emiel Kollof To: Anthony Jenkins Cc: FreeBSD CURRENT , owner-freebsd-current@freebsd.org Subject: Re: Composite PCI devices in FreeBSD (mfd in Linux) In-Reply-To: References: Message-ID: X-Sender: coolvibe@hackerheaven.org User-Agent: Roundcube Webmail/1.3.7 X-Rspamd-Queue-Id: ECD036FB1A X-Spamd-Result: default: False [-4.20 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[hackerheaven.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-0.33)[ipnet: 188.166.64.0/18(-4.82), asn: 14061(3.26), country: US(-0.09)]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hackerheaven.org:+]; MX_GOOD(-0.01)[mx.hackerheaven.org]; DMARC_POLICY_ALLOW(-0.50)[hackerheaven.org,reject]; NEURAL_HAM_SHORT(-0.76)[-0.764,0]; FREEMAIL_TO(0.00)[yahoo.com]; RCVD_IN_DNSWL_LOW(-0.10)[131.66.166.188.list.dnswl.org : 127.0.6.1]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:14061, ipnet:188.166.64.0/18, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2018 14:10:21 -0000 Anthony Jenkins schreef op 2018-12-10 18:00: > Hi all, > > I'm trying to port an Intel PCI I2C controller from Linux to FreeBSD. > Linux represents this device as an MFD (multi-function device), meaning > it has these "sub-devices" that can be handed off to other drivers to > actually attach devices to the system. The Linux "super" PCI device is > the intel-lpss-pci.c, and the "sub" device is i2c-designware-platdrv.c, > which represents the DesignWare driver's "platform" attachment to the > Linux system. FreeBSD also has a DesignWare I2C controller driver, > ig4(4), but it only has PCI and ACPI bus attachment implementations. Might this also be relevant for i2c-hid devices, like some touchpads (Elantech for example)? Cheers, Emiel