patch-2.1.90 linux/arch/i386/kernel/irq.h

Next file: linux/arch/i386/kernel/process.c
Previous file: linux/arch/i386/kernel/irq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.89/linux/arch/i386/kernel/irq.h linux/arch/i386/kernel/irq.h
@@ -2,13 +2,12 @@
 #define __irq_h
 
 /*
- * Various low-level irq details needed by irq.c and smp.c
+ * Various low-level irq details needed by irq.c, process.c,
+ * time.c, io_apic.c and smp.c
  *
  * Interrupt entry/exit code at both C and assembly level
  */
 
-#define IO_APIC_GATE_OFFSET 0x51
-
 void mask_irq(unsigned int irq);
 void unmask_irq(unsigned int irq);
 void enable_IO_APIC_irq (unsigned int irq);
@@ -19,9 +18,16 @@
 void init_IO_APIC_traps(void);
 int IO_APIC_get_PCI_irq_vector (int bus, int slot, int fn);
 void make_8259A_irq (unsigned int irq);
+void send_IPI (int dest, int vector);
+void init_pic_mode (void);
 
 extern unsigned int io_apic_irqs;
 
+extern inline int IO_APIC_VECTOR (int irq)
+{
+	return (0x51+(irq<<3));
+}
+
 #define MAX_IRQ_SOURCES 128
 #define MAX_MP_BUSSES 32
 enum mp_bustype {
@@ -37,6 +43,7 @@
 					* Protects both the 8259 and the
 					* IO-APIC
 					*/
+
 
 #ifdef __SMP__
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov