* minimai ACPI pci_irq.c for ia64
@ 2003-07-15 5:02 David Mosberger
0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2003-07-15 5:02 UTC (permalink / raw)
To: linux-ia64
Hi Andy,
Here is a patch for pci_irq.c. It's the minimum needed to get PCI
irqs to work on ia64. In the past, we did some irq.link -> irq
translation magic in this file as well, but since I understand that
the acpi_parse_prt() code is supposed to set the irq member instead,
I updated the ia64 code to do just that.
Would it be possible to get this to Linus asap? I'm hoping to have
the ia64 kernel be buildable from Linus' sources by the time
2.6.0-test2 is out (yeah, maybe wishful thinking... ;-)
Thanks!
--david
diff -Nru a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c
--- a/drivers/acpi/pci_irq.c Mon Jul 14 21:59:32 2003
+++ b/drivers/acpi/pci_irq.c Mon Jul 14 21:59:32 2003
@@ -24,6 +24,8 @@
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
+#include <linux/config.h>
+
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
@@ -36,6 +38,9 @@
#ifdef CONFIG_X86_IO_APIC
#include <asm/mpspec.h>
#endif
+#ifdef CONFIG_IOSAPIC
+# include <asm/iosapic.h>
+#endif
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
@@ -369,6 +374,10 @@
irq_mask |= (1 << dev->irq);
eisa_set_level_irq(dev->irq);
}
+#endif
+#ifdef CONFIG_IOSAPIC
+ if (acpi_irq_model = ACPI_IRQ_MODEL_IOSAPIC)
+ iosapic_enable_intr(dev->irq);
#endif
return_VALUE(dev->irq);
^ permalink raw reply [flat|nested] 2+ messages in thread
* minimai ACPI pci_irq.c for ia64
@ 2003-07-15 5:02 David Mosberger
0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2003-07-15 5:02 UTC (permalink / raw)
To: andrew.grover-ral2JQCrhuEAvxtiuMwx3w
Cc: luming.yu-ral2JQCrhuEAvxtiuMwx3w,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-ia64-u79uwXL29TY76Z2rM5mHXA
Hi Andy,
Here is a patch for pci_irq.c. It's the minimum needed to get PCI
irqs to work on ia64. In the past, we did some irq.link -> irq
translation magic in this file as well, but since I understand that
the acpi_parse_prt() code is supposed to set the irq member instead,
I updated the ia64 code to do just that.
Would it be possible to get this to Linus asap? I'm hoping to have
the ia64 kernel be buildable from Linus' sources by the time
2.6.0-test2 is out (yeah, maybe wishful thinking... ;-)
Thanks!
--david
diff -Nru a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c
--- a/drivers/acpi/pci_irq.c Mon Jul 14 21:59:32 2003
+++ b/drivers/acpi/pci_irq.c Mon Jul 14 21:59:32 2003
@@ -24,6 +24,8 @@
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
+#include <linux/config.h>
+
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
@@ -36,6 +38,9 @@
#ifdef CONFIG_X86_IO_APIC
#include <asm/mpspec.h>
#endif
+#ifdef CONFIG_IOSAPIC
+# include <asm/iosapic.h>
+#endif
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
@@ -369,6 +374,10 @@
irq_mask |= (1 << dev->irq);
eisa_set_level_irq(dev->irq);
}
+#endif
+#ifdef CONFIG_IOSAPIC
+ if (acpi_irq_model == ACPI_IRQ_MODEL_IOSAPIC)
+ iosapic_enable_intr(dev->irq);
#endif
return_VALUE(dev->irq);
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-15 5:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-15 5:02 minimai ACPI pci_irq.c for ia64 David Mosberger
-- strict thread matches above, loose matches on Subject: below --
2003-07-15 5:02 David Mosberger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.