From owner-cvs-src@FreeBSD.ORG Thu Jun 9 20:17:32 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3E7416A41C; Thu, 9 Jun 2005 20:17:32 +0000 (GMT) (envelope-from markus@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A82D443D48; Thu, 9 Jun 2005 20:17:32 +0000 (GMT) (envelope-from markus@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j59KHWbE060529; Thu, 9 Jun 2005 20:17:32 GMT (envelope-from markus@repoman.freebsd.org) Received: (from markus@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j59KHWF2060528; Thu, 9 Jun 2005 20:17:32 GMT (envelope-from markus) Message-Id: <200506092017.j59KHWF2060528@repoman.freebsd.org> From: Markus Brueffer Date: Thu, 9 Jun 2005 20:17:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/acpi_support acpi_ibm.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2005 20:17:32 -0000 markus 2005-06-09 20:17:32 UTC FreeBSD src repository (ports committer) Modified files: sys/dev/acpi_support acpi_ibm.c Log: Import a mostly rewritten and extended version of acpi_ibm: - Restructured for easier extensibility and maintainability - To be more uniform with the other ACPI extras drivers and to better reflect their actual meaning, some sysctls were moved: o brightness -> lcd_brightness o keylight -> thinklight o enable -> events o misckey -> hotkey o avail_mask -> availmask o key_mask -> eventmask - New "initialmask" sysctl, which holds the initial eventmask - The "wlan" sysctl is now read-only, since writing to it didn't have any effect - The "version" sysctl was removed, since it seems to be the same (0x100) on all models I have seen - Support for more hotkeys by the "hotkey" sysctl - Improved support of ACPI events. Disabled by default, since it unexpectedly changes the behaviour of some keys. (on my T41p there are now 24 different keypress events that get reported) - write support for: volume, mute, lcd_brightness and thinklight - led(4) interface for the thinklight [1] - New sysctls "fan" and "fan_speed" to support reading of fan status and speed - New sysctl "thermal" to support reading of up to 8 thermal sensors Reviewed by: philip Approved by: philip Submitted by: simon [1] Inspired by: The Linux ibm_acpi driver by Borislav Deianov http://ibm-acpi.sourceforge.net/ The ThinkPad Button program (tpb) by Markus Braun http://www.nongnu.org/tpb/ Thanks to: brueffer, dvl, njl, philip, simon, takawata and the many testers from freebsd-acpi@ and freebsd-mobile@ Revision Changes Path 1.5 +722 -328 src/sys/dev/acpi_support/acpi_ibm.c