From owner-freebsd-hackers Sun Apr 1 22:15:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id B6AFE37B71B for ; Sun, 1 Apr 2001 22:15:51 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id WAA78818; Sun, 1 Apr 2001 22:13:19 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.1/8.11.1) id f325CQl62547; Sun, 1 Apr 2001 22:12:26 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200104020512.f325CQl62547@arch20m.dellroad.org> Subject: Re: Programming the WinBond W83781D In-Reply-To: "from Torbjorn Kristoffersen at Apr 1, 2001 08:41:43 pm" To: Torbjorn Kristoffersen Date: Sun, 1 Apr 2001 22:12:26 -0700 (PDT) Cc: FreeBSD-Hackers X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Torbjorn Kristoffersen writes: > I'm porting a Linux module that reads system health information (such as > voltages and temperatures) from a WinBond W83781D chip. > > What's the best way of extracting such info from the chip? In the Linux > module it uses the regular inb(), outb(), set() etc. to read > the raw data, and then making it look nice and dandy using > a readable file in the proc filesystem. > I'm not sure how to do this in FreeBSD.. Check out the "healthd" port which shows how to do it via /dev/io or /dev/smb0. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message