~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/alpha/include/asm/irq.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _ALPHA_IRQ_H
  3 #define _ALPHA_IRQ_H
  4 
  5 /*
  6  *      linux/include/alpha/irq.h
  7  *
  8  *      (C) 1994 Linus Torvalds
  9  */
 10 
 11 #include <linux/linkage.h>
 12 
 13 #if   defined(CONFIG_ALPHA_GENERIC)
 14 
 15 /* Here NR_IRQS is not exact, but rather an upper bound.  This is used
 16    many places throughout the kernel to size static arrays.  That's ok,
 17    we'll use alpha_mv.nr_irqs when we want the real thing.  */
 18 
 19 /* When LEGACY_START_ADDRESS is selected, we leave out:
 20      TITAN
 21      WILDFIRE
 22      MARVEL
 23 
 24    This helps keep the kernel object size reasonable for the majority
 25    of machines.
 26 */
 27 
 28 # if defined(CONFIG_ALPHA_LEGACY_START_ADDRESS)
 29 #  define NR_IRQS      (128)           /* max is RAWHIDE/TAKARA */
 30 # else
 31 #  define NR_IRQS      (32768 + 16)    /* marvel - 32 pids */
 32 # endif
 33 
 34 #elif defined(CONFIG_ALPHA_PC164)     || \
 35       defined(CONFIG_ALPHA_LX164)
 36 # define NR_IRQS        35
 37 
 38 #elif defined(CONFIG_ALPHA_MIKASA)
 39 # define NR_IRQS        32
 40 
 41 #elif defined(CONFIG_ALPHA_ALCOR)     || \
 42       defined(CONFIG_ALPHA_MIATA)     || \
 43       defined(CONFIG_ALPHA_RUFFIAN)   || \
 44       defined(CONFIG_ALPHA_RX164)     || \
 45       defined(CONFIG_ALPHA_NORITAKE)
 46 # define NR_IRQS        48
 47 
 48 #elif defined(CONFIG_ALPHA_SABLE)     || \
 49       defined(CONFIG_ALPHA_SX164)
 50 # define NR_IRQS        40
 51 
 52 #elif defined(CONFIG_ALPHA_DP264) || \
 53       defined(CONFIG_ALPHA_SHARK)
 54 # define NR_IRQS        64
 55 
 56 #elif defined(CONFIG_ALPHA_TITAN)
 57 #define NR_IRQS         80
 58 
 59 #elif defined(CONFIG_ALPHA_RAWHIDE) || \
 60       defined(CONFIG_ALPHA_TAKARA) || \
 61       defined(CONFIG_ALPHA_EIGER)
 62 # define NR_IRQS        128
 63 
 64 #elif defined(CONFIG_ALPHA_WILDFIRE)
 65 # define NR_IRQS        2048 /* enuff for 8 QBBs */
 66 
 67 #elif defined(CONFIG_ALPHA_MARVEL)
 68 # define NR_IRQS        (32768 + 16)    /* marvel - 32 pids*/
 69 
 70 #else /* everyone else */
 71 # define NR_IRQS        16
 72 #endif
 73 
 74 static __inline__ int irq_canonicalize(int irq)
 75 {
 76         /*
 77          * XXX is this true for all Alpha's?  The old serial driver
 78          * did it this way for years without any complaints, so....
 79          */
 80         return ((irq == 2) ? 9 : irq);
 81 }
 82 
 83 struct pt_regs;
 84 extern void (*perf_irq)(unsigned long, struct pt_regs *);
 85 
 86 #endif /* _ALPHA_IRQ_H */
 87 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php