From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 6 12:35:48 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 549E51065701 for ; Fri, 6 Feb 2009 12:35:48 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 82A8A8FC1E for ; Fri, 6 Feb 2009 12:35:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA11619 for ; Fri, 06 Feb 2009 14:35:45 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <498C2EA0.6080604@icyb.net.ua> Date: Fri, 06 Feb 2009 14:35:44 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.19 (X11/20090110) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Super I/O 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: Fri, 06 Feb 2009 12:35:49 -0000 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'). -- Andriy Gapon