From owner-svn-src-user@FreeBSD.ORG Tue Oct 14 02:22:26 2008 Return-Path: Delivered-To: svn-src-user@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F7F710656A2; Tue, 14 Oct 2008 02:22:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 4B46E8FC2B; Tue, 14 Oct 2008 02:22:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m9E2JdM1049130; Mon, 13 Oct 2008 20:19:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 13 Oct 2008 20:20:41 -0600 (MDT) Message-Id: <20081013.202041.1492581255.imp@bsdimp.com> To: stas@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <20081014032137.13da1212.stas@FreeBSD.org> References: <200810101753.m9AHrQJU097333@svn.freebsd.org> <20081014032137.13da1212.stas@FreeBSD.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: src-committers@FreeBSD.org, rpaulo@FreeBSD.org, svn-src-user@FreeBSD.org Subject: Re: svn commit: r183751 - user/rpaulo/eeemon X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2008 02:22:26 -0000 In message: <20081014032137.13da1212.stas@FreeBSD.org> Stanislav Sedov writes: : On Fri, 10 Oct 2008 17:53:26 +0000 (UTC) : Rui Paulo mentioned: : : > Author: rpaulo : > Date: Fri Oct 10 17:53:26 2008 : > New Revision: 183751 : > URL: http://svn.freebsd.org/changeset/base/183751 : > : > Log: : > eeemon is a kernel module for Asus Eee notebooks that allows you to : > control the fan speed, high/low voltage and it shows the cpu : > temperature. : > : > Includes fan control code by "harrow@yandex.ru". : > Imported from my peronal repo. : > : : > + : > +static void : > +eeemon_identify(driver_t *driver, device_t parent) : > +{ : > + device_t child; : > + : > + if (device_find_child(parent, "eeemon", -1) != NULL) : > + return; : > + : > + if (eeemon_match() == 0) : > + return; : > + : > + child = BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, "eeemon", -1); : > + if (child == NULL) : > + device_printf(parent, "add eeemon child failed\n"); : > + : : Do we need to attach to a 'real' bus here? In the kernel allows the kernel to control it. The isa bus is as good or a bad place as any... Warner