/* * linux/include/asm-parisc/irq.h * * (C) 1992, 1993 Linus Torvalds, (C) 1997 Ingo Molnar, * Copyright 1999 SuSE GmbH * * IRQ/IPI changes taken from work by Thomas Radke * */ #ifndef _ASM_PARISC_IRQ_H #define _ASM_PARISC_IRQ_H #include #include #include #include #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 BITS_PER_LONG == 32 # define IRQ_REGION_SHIFT 5 #else # define IRQ_REGION_SHIFT 6 #endif #define IRQ_PER_REGION (1 << IRQ_REGION_SHIFT) #define NR_IRQ_REGS 16 #define NR_IRQS (NR_IRQ_REGS * IRQ_PER_REGION) #define IRQ_REGION(irq) ((irq) >> IRQ_REGION_SHIFT) #define IRQ_OFFSET(irq) ((irq) & ((1<