From owner-freebsd-ppc@FreeBSD.ORG Sat Jan 29 19:22:09 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E0C6106564A for ; Sat, 29 Jan 2011 19:22:09 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 42B268FC19 for ; Sat, 29 Jan 2011 19:22:08 +0000 (UTC) Received: by qwj9 with SMTP id 9so4260143qwj.13 for ; Sat, 29 Jan 2011 11:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:from:to:content-type :mime-version:subject:date:x-mailer; bh=LUKbBGa+jInzWRLIAYXiArKMvRQFwL1sthPfb0hDFaw=; b=vo+Dk0h/kaLVdUVZcwOZbC6IPvpnzeHHVnPnzLDrrYqGScLPkGg7f41B7GVzKhpHCC QEZGBpBW9rUptvVUSqSFaOna8eSNxRrNdzWiOdvi2cTKOD4Nd+2Q2KDdc4/sC0+b1f6T AMF2NjDEIHi4IdpAVmrFiwO7Z+Xt1kM9ocIq8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:from:to:content-type:mime-version:subject:date :x-mailer; b=vytmPVGezvaDsYgQiK/KfgmF0H/KEOOMljXsX5O+s4r5n597CfTWxtxL3zmVn9Y7// 1kaA++7Au0lpAf97GOC77XCo1NelYJuttnbSF8R1fsRSEiop5TZf2hzVcFVepoRXAEnq vZBNxMG5+LlSyt6W9WfZnkp8wzVwO7i4XH14A= Received: by 10.224.11.20 with SMTP id r20mr4524086qar.51.1296328928260; Sat, 29 Jan 2011 11:22:08 -0800 (PST) Received: from triad.knownspace (216-164-48-50.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com [216.164.48.50]) by mx.google.com with ESMTPS id y17sm13559513qci.21.2011.01.29.11.22.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Jan 2011 11:22:07 -0800 (PST) Sender: Justin Hibbits Message-Id: From: Justin Hibbits To: FreeBSD PowerPC ML Content-Type: multipart/mixed; boundary=Apple-Mail-2-194145544 Mime-Version: 1.0 (Apple Message framework v936) Date: Sat, 29 Jan 2011 14:22:05 -0500 X-Mailer: Apple Mail (2.936) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: CFT (and comments, changes, etc): G4 Windtunnel fan driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2011 19:22:09 -0000 --Apple-Mail-2-194145544 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Attached is a driver for the G4 MDD (windtunnel) fan controller. It seems to work for me, but it does make certain assumptions that may make it non-portable: - It assumes that the sensor device is already attached when it starts the management kproc (it should be attached, it's not started until interrupts are enabled, so all devices should have been scanned by then). I gutted it from Andreas Tobler's FCU driver, so some comments may not be completely correct. It probably also violates style(9) in several places, which I can address later. To compile, you need the following: apply the enclosed patch, put the driver in ...sys/powerpc/powermac/windtunnel.c, and add 'device windtunnel' to your kernel config. - Justin --Apple-Mail-2-194145544 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-2-194145544--