From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 20 18:26:25 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08B741065679; Mon, 20 Jul 2009 18:26:25 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8E9398FC22; Mon, 20 Jul 2009 18:26:24 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from mail3.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id n6KIQLYD028912; Mon, 20 Jul 2009 20:26:21 +0200 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail3.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id n6KIQLsL017428; Mon, 20 Jul 2009 20:26:21 +0200 Received: (from localhost) by curry.mchp.siemens.de (8.14.3/8.14.3) id n6KIQKAW094489; Date: Mon, 20 Jul 2009 20:26:20 +0200 From: Andre Albsmeier To: Andriy Gapon Message-ID: <20090720182620.GA90731@curry.mchp.siemens.de> References: <20090717190450.GA4697@curry.mchp.siemens.de> <4A60D6D1.3050703@elischer.org> <20090718081011.GA6920@curry.mchp.siemens.de> <4A61D6FB.2090904@elischer.org> <4A644F7E.2000107@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A644F7E.2000107@icyb.net.ua> X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org, Rui Paulo , Julian Elischer , Andre Albsmeier Subject: Re: Reading acpi memory from a driver attached to hostb X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2009 18:26:25 -0000 On Mon, 20-Jul-2009 at 14:05:34 +0300, Andriy Gapon wrote: > on 18/07/2009 17:06 Julian Elischer said the following: > > Andre Albsmeier wrote: > >> But in order to attach to acpi0, I need to say > >> > >> DRIVER_MODULE( eccmon, acpi, eccmon_driver, eccmon_devclass, NULL, > >> NULL ); > >> > >> instead of > >> > >> DRIVER_MODULE( eccmon, hostb, eccmon_driver, eccmon_devclass, NULL, > >> NULL ); > > > > try both with different devclass and other args. > > Just to expand on Julian's words. > You can create eccmon and e.g. eccmon_acpi such that they are different drivers > (on different buses) in newbus sense, but logically they can share data or > otherwise cooperate. Very interesting code, I still haven't understood all of it but we will see... This could be the solution -- however, if somebody knows a more simple way, please let me know. Thanks, -Andre > > /sys/dev/cpufreq/ichss.c prior to rev. 177041 used to be like that. > > -- > Andriy Gapon > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- Amateurs like Linux, but professionals prefer FreeBSD.