From owner-freebsd-acpi@FreeBSD.ORG Tue May 31 17:37:17 2005 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABBC016A422; Tue, 31 May 2005 17:37:17 +0000 (GMT) (envelope-from markus@FreeBSD.org) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A95B43D54; Tue, 31 May 2005 17:37:17 +0000 (GMT) (envelope-from markus@FreeBSD.org) Received: from fwd26.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1DdAfz-0003mp-01; Tue, 31 May 2005 19:37:15 +0200 Received: from ramses.kicks-ass.net (EIrbz0ZCgem3nSYYbWnFqS+6IDNJ76pGZsa8BfxPy8TaeX1WRAdI4v@[80.143.245.16]) by fwd26.sul.t-online.de with esmtp id 1DdAfk-0GP9uK0; Tue, 31 May 2005 19:37:00 +0200 Received: from cheops.phoenix (cheops.phoenix [192.168.1.3]) by ramses.kicks-ass.net (Postfix) with ESMTP id 79967B832; Tue, 31 May 2005 19:39:43 +0200 (CEST) From: Markus Brueffer To: freebsd-acpi@freebsd.org Date: Tue, 31 May 2005 19:35:47 +0200 User-Agent: KMail/1.8 References: <200505310155.KAA00994@axe-inc.co.jp> <200505311225.40954.markus@FreeBSD.org> <429C9DB9.4070107@root.org> In-Reply-To: <429C9DB9.4070107@root.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2077939.AlkrTepLxI"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505311935.57158.markus@FreeBSD.org> X-ID: EIrbz0ZCgem3nSYYbWnFqS+6IDNJ76pGZsa8BfxPy8TaeX1WRAdI4v@t-dialin.net X-TOI-MSGID: 073fd072-bd83-4eea-b75a-698c5da124f7 Cc: freebsd-mobile@FreeBSD.org Subject: Re: Call for testers: New acpi_ibm driver X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 17:37:17 -0000 --nextPart2077939.AlkrTepLxI Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 31 May 2005 19:24, Nate Lawson wrote: > Markus Brueffer wrote: > > On Tuesday 31 May 2005 03:55, takawata@jp.freebsd.org wrote: > >>In message <200505301857.20346.markus@FreeBSD.org>, Markus Brueffer=20 wrote: [...] > >>>Support for more hotkeys by the hotkey sysctl (see manpage) > >>>Improved support of ACPI events, disabled by default. You can enable > >>> it by setting the events sysctl to 1 (on my T41p there are now 24 > >>> different keypress events that get reported) > >>>write support for: volume, mute, brightness and thinklight > >> > >>Is it ok to touch EC? I know the two way of impliment it. > >>One is modifying RTC register, another is using SMI interface > >>via ACPI control method. > > > > Writing to the EC directly is nothing more that accessing the locations > > via acpi_SetInteger. While I would highly prefer the latter method, the > > problem is, that several places of the EC in the DSDT aren't even named > > or only named on some models. > > Please do not read/write directly from EC space. A better way is to use > the EC device methods I added recently. This uses proper locking for > requests and will work concurrently with other EC users (say, cmbat): > > device_t dev; > > dev =3D devclass_get_device(devclass_find("acpi_ec"), 0); > if (dev =3D=3D NULL) > error, EC not present -- check this during probe and fail > if error > > error =3D ACPI_EC_WRITE(dev, address, buffer, len); > > or ACPI_EC_READ(). "address" is from 0-255 (8 bit addresses in EC > space) and buffer is a pointer to data to write or read. That's what I meant by "directly". The driver uses exactly that way. Markus =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart2077939.AlkrTepLxI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCnKB91I0Qcnj4qNQRAlBFAJ43YD6iNXpE/XqWrEwqQJw5Uru7mACfdTC9 AF9WdHkfLdlojhl/yIF1V7o= =Rlef -----END PGP SIGNATURE----- --nextPart2077939.AlkrTepLxI--