#ifndef _ALPHA_IRQ_H #define _ALPHA_IRQ_H /* * linux/include/alpha/irq.h * * (C) 1994 Linus Torvalds */ #include <linux/linkage.h> #if defined([31mCONFIG_ALPHA_GENERIC[0m) /* Here NR_IRQS is not exact, but rather an upper bound. This is used many places throughout the kernel to size static arrays. That's ok, we'll use alpha_mv.nr_irqs when we want the real thing. */ /* When LEGACY_START_ADDRESS is selected, we leave out: TITAN WILDFIRE MARVEL This helps keep the kernel object size reasonable for the majority of machines. */ # if defined([31mCONFIG_ALPHA_LEGACY_START_ADDRESS[0m) # define NR_IRQS (128) /* max is RAWHIDE/TAKARA */ # else # define NR_IRQS (32768 + 16) /* marvel - 32 pids */ # endif #elif defined([31mCONFIG_ALPHA_CABRIOLET[0m) || \ defined([31mCONFIG_ALPHA_EB66P[0m) || \ defined([31mCONFIG_ALPHA_EB164[0m) || \ defined([31mCONFIG_ALPHA_PC164[0m) || \ defined([31mCONFIG_ALPHA_LX164[0m) # define NR_IRQS 35 #elif defined([31mCONFIG_ALPHA_EB66[0m) || \ defined([31mCONFIG_ALPHA_EB64P[0m) || \ defined([31mCONFIG_ALPHA_MIKASA[0m) # define NR_IRQS 32 #elif defined([31mCONFIG_ALPHA_ALCOR[0m) || \ defined([31mCONFIG_ALPHA_MIATA[0m) || \ defined([31mCONFIG_ALPHA_RUFFIAN[0m) || \ defined([31mCONFIG_ALPHA_RX164[0m) || \ defined([31mCONFIG_ALPHA_NORITAKE[0m) # define NR_IRQS 48 #elif defined([31mCONFIG_ALPHA_SABLE[0m) || \ defined([31mCONFIG_ALPHA_SX164[0m) # define NR_IRQS 40 #elif defined([31mCONFIG_ALPHA_DP264[0m) || \ defined([31mCONFIG_ALPHA_LYNX[0m) || \ defined([31mCONFIG_ALPHA_SHARK[0m) || \ defined([31mCONFIG_ALPHA_EIGER[0m) # define NR_IRQS 64 #elif defined([31mCONFIG_ALPHA_TITAN[0m) #define NR_IRQS 80 #elif defined([31mCONFIG_ALPHA_RAWHIDE[0m) || \ defined([31mCONFIG_ALPHA_TAKARA[0m) # define NR_IRQS 128 #elif defined([31mCONFIG_ALPHA_WILDFIRE[0m) # define NR_IRQS 2048 /* enuff for 8 QBBs */ #elif defined([31mCONFIG_ALPHA_MARVEL[0m) # define NR_IRQS (32768 + 16) /* marvel - 32 pids*/ #else /* everyone else */ # define NR_IRQS 16 #endif static __inline__ int irq_canonicalize(int irq) { /* * XXX is this true for all Alpha's? The old serial driver * did it this way for years without any complaints, so.... */ return ((irq == 2) ? 9 : irq); } struct pt_regs; extern void (*perf_irq)(unsigned long, struct pt_regs *); #endif /* _ALPHA_IRQ_H */ |