Resources and ACPI

Marcel Moolenaar xcllnt at
Wed Apr 11 16:38:26 UTC 2007

On Apr 11, 2007, at 4:49 AM, Alan Garfield wrote:

>>> are these resources automagically allocated for me? Or do I have to
>>> allocate them myself?
>> You have to allocate the resource.
> Ok cool, but how do I get the resource list from acpi to allocated  
> them then? Other than having an array of ioports and irqs, is there  
> a way to get this information from acpi?

The device driver knows about the hardware and as such knows what
resources it needs and/or what resources the hardware makes
available. You allocate what you need. Use the resource ID in
combination with resource type to get what you want. If you
try to allocate something that's not there, then you have a new
situation that the driver needs to know about and you code


Marcel Moolenaar
xcllnt at

More information about the freebsd-hackers mailing list