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
accordingly.

HTH,

--
Marcel Moolenaar
[EMAIL PROTECTED]


_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to