Reading acpi memory from a driver attached to hostb
Andriy Gapon
avg at icyb.net.ua
Mon Jul 20 11:17:49 UTC 2009
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.
/sys/dev/cpufreq/ichss.c prior to rev. 177041 used to be like that.
--
Andriy Gapon
More information about the freebsd-hackers
mailing list