From owner-svn-src-user@FreeBSD.ORG Mon Oct 13 23:21:03 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 D7FD21065686; Mon, 13 Oct 2008 23:21:03 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 85C228FC14; Mon, 13 Oct 2008 23:21:03 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from [85.21.245.235] (helo=orion.SpringDaemons.com) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1KpWik-0002O9-Bc; Tue, 14 Oct 2008 03:21:02 +0400 Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id D387B39952; Tue, 14 Oct 2008 03:21:37 +0400 (MSD) Date: Tue, 14 Oct 2008 03:21:37 +0400 From: Stanislav Sedov To: Rui Paulo Message-Id: <20081014032137.13da1212.stas@FreeBSD.org> In-Reply-To: <200810101753.m9AHrQJU097333@svn.freebsd.org> References: <200810101753.m9AHrQJU097333@svn.freebsd.org> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Tue__14_Oct_2008_03_21_37_+0400_e=7YVXyG+GolOhSa" Cc: src-committers@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: Mon, 13 Oct 2008 23:21:03 -0000 --Signature=_Tue__14_Oct_2008_03_21_37_+0400_e=7YVXyG+GolOhSa Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > 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. > =20 > Includes fan control code by "harrow@yandex.ru". > Imported from my peronal repo. >=20 > + > +static void > +eeemon_identify(driver_t *driver, device_t parent) > +{ > + device_t child; > + > + if (device_find_child(parent, "eeemon", -1) !=3D NULL) > + return; > + > + if (eeemon_match() =3D=3D 0) > + return; > + > + child =3D BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, "eeemon", -1); > + if (child =3D=3D NULL) > + device_printf(parent, "add eeemon child failed\n"); > + Do we need to attach to a 'real' bus here? Btw, should it really belong to the kernel code? As all operations are performed via inb/out it's a clear fit for a userland program. --=20 Stanislav Sedov ST4096-RIPE --Signature=_Tue__14_Oct_2008_03_21_37_+0400_e=7YVXyG+GolOhSa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjz2AEACgkQK/VZk+smlYEz8gCePlaNAkDCwRPLtIzb8qwuYW49 Ib0AoILpnt8pCcWDpJSgjxzGl1Y76FJh =5QZI -----END PGP SIGNATURE----- --Signature=_Tue__14_Oct_2008_03_21_37_+0400_e=7YVXyG+GolOhSa--