Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2007 08:45:10 -0700
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Alan Garfield <alan@fromorbit.com>
Cc:        hackers@freebsd.org
Subject:   Re: Resources and ACPI
Message-ID:  <FE1ACD1F-66BC-4109-82E6-372B3B8E264D@mac.com>
In-Reply-To: <461CCB3D.1090402@fromorbit.com>
References:  <200704110951.l3B9p4hT024402@sana.init-main.com> <461CCB3D.1090402@fromorbit.com>

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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FE1ACD1F-66BC-4109-82E6-372B3B8E264D>