Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2009 20:26:20 +0200
From:      Andre Albsmeier <Andre.Albsmeier@siemens.com>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-hackers@freebsd.org, Rui Paulo <rpaulo@freebsd.org>, Julian Elischer <julian@elischer.org>, Andre Albsmeier <Andre.Albsmeier@siemens.com>
Subject:   Re: Reading acpi memory from a driver attached to hostb
Message-ID:  <20090720182620.GA90731@curry.mchp.siemens.de>
In-Reply-To: <4A644F7E.2000107@icyb.net.ua>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090720182620.GA90731>