patch-2.4.25 linux-2.4.25/arch/ia64/kernel/acpi.c
Next file: linux-2.4.25/arch/ia64/kernel/efi.c
Previous file: linux-2.4.25/arch/ia64/ia32/sys_ia32.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
2004-02-18 05:36:30.000000000 -0800
- Orig file:
linux-2.4.24/arch/ia64/kernel/acpi.c
- Orig date:
2003-11-28 10:26:19.000000000 -0800
diff -urN linux-2.4.24/arch/ia64/kernel/acpi.c linux-2.4.25/arch/ia64/kernel/acpi.c
@@ -96,7 +96,7 @@
}
if (!strcmp(hdr->oem_id, "HP")) {
- return "hpzx1";
+ return "hp";
}
else if (!strcmp(hdr->oem_id, "SGI")) {
return "sn2";
@@ -107,7 +107,7 @@
# if defined (CONFIG_IA64_HP_SIM)
return "hpsim";
# elif defined (CONFIG_IA64_HP_ZX1)
- return "hpzx1";
+ return "hp";
# elif defined (CONFIG_IA64_SGI_SN2)
return "sn2";
# elif defined (CONFIG_IA64_DIG)
@@ -820,4 +820,22 @@
return gsi_to_vector(irq);
}
+int
+acpi_register_irq (u32 gsi, u32 polarity, u32 trigger)
+{
+ int vector = 0;
+
+ if (has_8259 && gsi < 16)
+ return isa_irq_to_vector(gsi);
+
+ if (!iosapic_register_intr)
+ return 0;
+
+ /* Turn it on */
+ vector = iosapic_register_intr(gsi,
+ (polarity == ACPI_ACTIVE_HIGH) ? IOSAPIC_POL_HIGH : IOSAPIC_POL_LOW,
+ (trigger == ACPI_EDGE_SENSITIVE) ? IOSAPIC_EDGE : IOSAPIC_LEVEL);
+ return vector;
+}
+
#endif /* CONFIG_ACPI_BOOT */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)