patch-2.4.20 linux-2.4.20/include/asm-ia64/hw_irq.h
Next file: linux-2.4.20/include/asm-ia64/ide.h
Previous file: linux-2.4.20/include/asm-ia64/errno.h
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/asm-ia64/hw_irq.h
- Orig date:
Tue Jul 31 10:30:09 2001
diff -urN linux-2.4.19/include/asm-ia64/hw_irq.h linux-2.4.20/include/asm-ia64/hw_irq.h
@@ -2,8 +2,8 @@
#define _ASM_IA64_HW_IRQ_H
/*
- * Copyright (C) 2001 Hewlett-Packard Co
- * Copyright (C) 2001 David Mosberger-Tang <davidm@hpl.hp.com>
+ * Copyright (C) 2001, 2002 Hewlett-Packard Co
+ * David Mosberger-Tang <davidm@hpl.hp.com>
*/
#include <linux/sched.h>
@@ -52,6 +52,10 @@
#define IA64_IPI_RESCHEDULE 0xfd /* SMP reschedule */
#define IA64_IPI_VECTOR 0xfe /* inter-processor interrupt vector */
+/* Used for encoding redirected irqs */
+
+#define IA64_IRQ_REDIRECTED (1 << 31)
+
/* IA64 inter-cpu interrupt related definitions */
#define IA64_IPI_DEFAULT_BASE_ADDR 0xfee00000
@@ -72,7 +76,7 @@
extern struct hw_interrupt_type irq_type_ia64_lsapic; /* CPU-internal interrupt controller */
-extern int ia64_alloc_irq (void); /* allocate a free irq */
+extern int ia64_alloc_vector (void); /* allocate a free vector */
extern void ia64_send_ipi (int cpu, int vector, int delivery_mode, int redirect);
extern void register_percpu_irq (ia64_vector vec, struct irqaction *action);
@@ -88,6 +92,7 @@
extern struct irq_desc _irq_desc[NR_IRQS];
+#ifndef CONFIG_IA64_GENERIC
static inline struct irq_desc *
__ia64_irq_desc (unsigned int irq)
{
@@ -105,6 +110,7 @@
{
return (unsigned int) vec;
}
+#endif
/*
* Next follows the irq descriptor interface. On IA-64, each CPU supports 256 interrupt
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)