* [Linux-ia64] entry->irq = entry->link.index (problem 2 of thread [ Re: patch for updating IA64 ACPI
@ 2003-06-23 7:13 Yu, Luming
2003-06-23 18:27 ` [Linux-ia64] entry->irq = entry->link.index (problem 2 of thread [ Re: patch for updating IA64 A David Mosberger
0 siblings, 1 reply; 2+ messages in thread
From: Yu, Luming @ 2003-06-23 7:13 UTC (permalink / raw)
To: linux-ia64
> @@ -248,6 +253,8 @@
> return_VALUE(0);
> }
>
> + entry->irq = entry->link.index;
> +
> if (!entry->irq && entry->link.handle) {
> entry->irq = acpi_pci_link_get_irq(entry->link.handle, entry->link.index);
> if (!entry->irq) {
> I don't quite understand what this is for. Anyone know?
To understand the meaning of entry->link.index, please reference acpi_get_prt which is in arch/ia64/kernel/acpi.c.
There is vector[i].irq = entry->link.index , entry is acpi_prt_entry. And you can look into mp_parse_prt
which is in arch/i386/kernel/mpparse.c. There is irq = entry->link.index.
Here, "entry->irq = entry->link.index" just make sure that a default initial irq value is assigned according to prt entry.
Thanks,
Luming
_______________________________________________
Linux-IA64 mailing list
Linux-IA64@linuxia64.org
http://lists.linuxia64.org/lists/listinfo/linux-ia64
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Linux-ia64] entry->irq = entry->link.index (problem 2 of thread [ Re: patch for updating IA64 A
2003-06-23 7:13 [Linux-ia64] entry->irq = entry->link.index (problem 2 of thread [ Re: patch for updating IA64 ACPI Yu, Luming
@ 2003-06-23 18:27 ` David Mosberger
0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2003-06-23 18:27 UTC (permalink / raw)
To: linux-ia64
>>>>> On Mon, 23 Jun 2003 15:13:18 +0800, "Yu, Luming" <luming.yu@intel.com> said:
>> @@ -248,6 +253,8 @@
>> return_VALUE(0);
>> }
>> + entry->irq = entry->link.index;
>> +
>> if (!entry->irq && entry->link.handle) {
entry-> irq = acpi_pci_link_get_irq(entry->link.handle, entry->link.index);
>> if (!entry->irq) {
>> I don't quite understand what this is for. Anyone know?
Luming> To understand the meaning of entry->link.index, please
Luming> reference acpi_get_prt which is in arch/ia64/kernel/acpi.c.
Luming> There is vector[i].irq = entry->link.index , entry is
Luming> acpi_prt_entry. And you can look into mp_parse_prt which is
Luming> in arch/i386/kernel/mpparse.c. There is irq Luming> entry->link.index.
Ah, that's where x86 is doing the transformation. Thanks for finding
that. I didn't understand how the old code worked on x86.
Can we do the transformation at the same time on both platforms?
Obviously there is no mpparse.c but perhaps arch/ia64/kernel/acpi.c
could do it. I wonder though if this scheme would work with hotplug
devices.
In any case, whatever the solution, we clearly should use the same
approach on both platforms.
--david
_______________________________________________
Linux-IA64 mailing list
Linux-IA64@linuxia64.org
http://lists.linuxia64.org/lists/listinfo/linux-ia64
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-23 18:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-23 7:13 [Linux-ia64] entry->irq = entry->link.index (problem 2 of thread [ Re: patch for updating IA64 ACPI Yu, Luming
2003-06-23 18:27 ` [Linux-ia64] entry->irq = entry->link.index (problem 2 of thread [ Re: patch for updating IA64 A David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox