#ifndef _ASM_IRQ_H #define _ASM_IRQ_H #include #include #include #include /* * linux/include/asm/irq.h * * (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar, * Copyright 1999 SuSE GmbH * * IRQ/IPI changes taken from work by Thomas Radke * */ #define CPU_IRQ_REGION 1 #define TIMER_IRQ (IRQ_FROM_REGION(CPU_IRQ_REGION) | 0) #define IPI_IRQ (IRQ_FROM_REGION(CPU_IRQ_REGION) | 1) /* This should be 31 for PA1.1 binaries and 63 for PA-2.0 wide mode) */ #define MAX_CPU_IRQ (BITS_PER_LONG - 1) #if 1 /* set to 1 to get the new irq offsets, or ... */ # if BITS_PER_LONG == 32 # define IRQ_REGION_SHIFT 5 # else # define IRQ_REGION_SHIFT 6 # endif #else /* 256 irq-entries per region (wastes memory, maybe gains speed? :-))*/ # define IRQ_REGION_SHIFT 8 #endif #define IRQ_PER_REGION (1 << IRQ_REGION_SHIFT) #define NR_IRQ_REGS 8 #define NR_IRQS (NR_IRQ_REGS * IRQ_PER_REGION) #define IRQ_REGION(irq) ((irq) >> IRQ_REGION_SHIFT) #define IRQ_OFFSET(irq) ((irq) & ((1<