From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 7 02:35:49 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F089106564A for ; Sat, 7 Feb 2009 02:35:49 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 76ED78FC13 for ; Sat, 7 Feb 2009 02:35:49 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n172Zh9l002631 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Feb 2009 18:35:44 -0800 (PST) (envelope-from sam@freebsd.org) Message-ID: <498CF37F.2060704@freebsd.org> Date: Fri, 06 Feb 2009 18:35:43 -0800 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Andriy Gapon References: <498C2EA0.6080604@icyb.net.ua> In-Reply-To: <498C2EA0.6080604@icyb.net.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-hackers@freebsd.org Subject: Re: Super I/O driver [generic gpio driver] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2009 02:35:49 -0000 Andriy Gapon wrote: > Do we have any drivers for special functions provided by ISA/LPC Super > I/Os. I mean many of them have watchdog capabilities, GPIO, etc. I do > not meant fdc, lpt, sio/uart and hwm which are 9or can be) handled as > the devices of their own. > > I have some quite hairy code for Winbond W83977EF that provides watchdog > and led interfaces (the latter is for power led). > I'd like to understand what is the best/canonical way to access > superio's ports, enter configuration mode, etc. > Also, it would be interesting to see how various configurations/wirings > of the same superio could be handled. > > I looked at some Linux drivers but their coding ways are quite different > and they typically handle only one wiring type (probably the one that > was found on author's motherboard). > > I also would be interested in a general discussion on this topic (superios). > > BTW, do we have some interface to userland or GPIO? Something similar to > led(4), but more generic (and supporting 'I' as well 'O'). > There's been some discussion amongst embedded folks but nothing yet. I noticed openbsd commit something recently but don't know if we can reuse anything they've done. Sam