From owner-freebsd-acpi@FreeBSD.ORG Thu Oct 12 16:28:21 2006 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 B164016A4A0 for ; Thu, 12 Oct 2006 16:28:21 +0000 (UTC) (envelope-from john@utzweb.net) Received: from marley.grokthis.net (marley.grokthis.net [69.93.78.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 086F443D73 for ; Thu, 12 Oct 2006 16:28:06 +0000 (GMT) (envelope-from john@utzweb.net) Received: from [192.168.1.6] (c-71-197-214-178.hsd1.or.comcast.net [71.197.214.178]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by marley.grokthis.net (Postfix) with ESMTP id 74384F1019; Thu, 12 Oct 2006 12:28:04 -0400 (EDT) In-Reply-To: <20061012155902.GX4945@poupinou.org> References: <26332441-4BC5-4392-806A-0179464E8D59@utzweb.net> <452D161A.5040509@root.org> <35862.69.93.78.27.1160586077.squirrel@69.93.78.27> <20061012155902.GX4945@poupinou.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9C9E50D2-66A9-49AD-B0F8-1A242126DF4B@utzweb.net> Content-Transfer-Encoding: 7bit From: John Utz Date: Thu, 12 Oct 2006 09:27:58 -0700 To: Bruno Ducrot X-Mailer: Apple Mail (2.752.2) Cc: freebsd-acpi@freebsd.org Subject: Re: if i was porting a linux kernel module that wrote out to /proc, where should i point it at in freebsd? 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: Thu, 12 Oct 2006 16:28:21 -0000 On Oct 12, 2006, at 8:59 AM, Bruno Ducrot wrote: > On Wed, Oct 11, 2006 at 01:01:17PM -0400, john@utzweb.net wrote: >>> John Utz wrote: >>>> i've been working on i8k utils off and on for several months. >>>> >>>> (lately it's been what i've been doing whilst i sit at my >>>> daughter's >>>> gymnastics class) >>>> >>>> so several of the api's work, ie turning the fans on and off, etc. >>>> >>>> buttons *still* dont work. :-( >>>> >>>> at this point, i want to start working on hXRing the kernel module. >>>> >>>> as currently coded, it writes to /proc. >>>> >>>> i would prefer to not have to require the proc lkm for this to >>>> work, i'd >>>> rather do it the bsd way. >>>> >>>> so, umm, what *is* the bsd way ? :-) >>> >>> It looks like "i8k" is the Dell hotkeys/PM driver. >> >> yah, i forgot to mention that. sorry. >> >>> Use sysctl as the interface. >> >> hokydoky! >> >>> See the other drivers in /sys/dev/acpi_support for a good >>> template (i.e., acpi_toshiba.c). >> >> i shall look again at that, tnx! >> > > > Well... Read carrefully: > http://lists.freebsd.org/pipermail/freebsd-chat/2006-October/ > 004315.html > gyahh! > if you want your driver to be added to the tree.. > wow. this is a very interesting grey area, because i have made some very trivial formatting changes to said function. so were i to contribute the code, it would not violate the 'law' of gpl (because the code is textually different now) but i think it would violate the 'spirit' and that counts for just as much in my book. > Maybe you should consider to write a port, that's should resolve the > legal issue. that's an interesting idea. it might also be a reasonable exercise to genuinely rearchitect the asm and use a rewritten version; recall that 'study' is a blessed use of gpl code. but, let's be clear, the political issues are irrelevant until i have something that works in a meaningful way. right now all i can do is call a crappy little command line utility that requires me to know the adressess to poke into eax. :-) in any case, Bruno, i am *deeply* appreciative of you taking the time to point this out! > > -- > Bruno Ducrot > > -- Which is worse: ignorance or apathy? > -- Don't know. Don't care. >