X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-parisc%2Firq.h;h=4e5fad213c395d39a4013c1425a2c99b20ef467d;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=b7acca7de670af73caf96c0e23c644875efe0726;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-parisc/irq.h b/include/asm-parisc/irq.h index b7acca7de..4e5fad213 100644 --- a/include/asm-parisc/irq.h +++ b/include/asm-parisc/irq.h @@ -1,102 +1,53 @@ /* - * linux/include/asm-parisc/irq.h + * 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 - * + * Copyright 2005 Matthew Wilcox */ #ifndef _ASM_PARISC_IRQ_H #define _ASM_PARISC_IRQ_H -#include -#include -#include - -#include -#include #include +#include +#define NO_IRQ (-1) -#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 +#ifdef CONFIG_GSC +#define GSC_IRQ_BASE 16 +#define GSC_IRQ_MAX 63 +#define CPU_IRQ_BASE 64 #else -# define IRQ_REGION_SHIFT 6 +#define CPU_IRQ_BASE 16 #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<