From owner-cvs-src@FreeBSD.ORG Wed Nov 7 20:05:14 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0232C16A418; Wed, 7 Nov 2007 20:05:14 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E9AEA13C4A7; Wed, 7 Nov 2007 20:05:13 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lA7K5DLY032771; Wed, 7 Nov 2007 20:05:13 GMT (envelope-from rpaulo@repoman.freebsd.org) Received: (from rpaulo@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lA7K5DES032770; Wed, 7 Nov 2007 20:05:13 GMT (envelope-from rpaulo) Message-Id: <200711072005.lA7K5DES032770@repoman.freebsd.org> From: Rui Paulo Date: Wed, 7 Nov 2007 20:05:13 +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/asmc asmc.c asmcvar.h 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: Wed, 07 Nov 2007 20:05:14 -0000 rpaulo 2007-11-07 20:05:13 UTC FreeBSD src repository Added files: sys/dev/asmc asmc.c asmcvar.h Log: Driver for the Apple System Management Console (SMC). This hardware is present on the MacBook, MacBook Pro, and Intel MacMini. This driver exports information via sysctl in its private sysctl tree dev.asmc.*. You can get information about temperatures, fan speeds, the keyboard light sensor and the Sudden Motion Sensor (SMS). The SMS is very useful to park the disk heads when the laptop is moved. Basically, the SMS is setup so that, under movement, we get an interrupt on irq 6 and a devd notification is sent. Sponsored by: Google Summer of Code 2007 Approved by: njl (mentor) Reviewed by: attilio (previous version, but very similar), jhb (interrupt specific review) Revision Changes Path 1.1 +981 -0 src/sys/dev/asmc/asmc.c (new) 1.1 +160 -0 src/sys/dev/asmc/asmcvar.h (new)