home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-parisc / irq.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  1.4 KB  |  61 lines

  1. /*
  2.  * include/asm-parisc/irq.h
  3.  *
  4.  * Copyright 2005 Matthew Wilcox <matthew@wil.cx>
  5.  */
  6.  
  7. #ifndef _ASM_PARISC_IRQ_H
  8. #define _ASM_PARISC_IRQ_H
  9.  
  10. #include <linux/cpumask.h>
  11. #include <asm/types.h>
  12.  
  13. #define NO_IRQ        (-1)
  14.  
  15. #ifdef CONFIG_GSC
  16. #define GSC_IRQ_BASE    16
  17. #define GSC_IRQ_MAX    63
  18. #define CPU_IRQ_BASE    64
  19. #else
  20. #define CPU_IRQ_BASE    16
  21. #endif
  22.  
  23. #define TIMER_IRQ    (CPU_IRQ_BASE + 0)
  24. #define    IPI_IRQ        (CPU_IRQ_BASE + 1)
  25. #define CPU_IRQ_MAX    (CPU_IRQ_BASE + (BITS_PER_LONG - 1))
  26.  
  27. #define NR_IRQS        (CPU_IRQ_MAX + 1)
  28.  
  29. /*
  30.  * IRQ line status macro IRQ_PER_CPU is used
  31.  */
  32. #define ARCH_HAS_IRQ_PER_CPU
  33.  
  34. static __inline__ int irq_canonicalize(int irq)
  35. {
  36.     return (irq == 2) ? 9 : irq;
  37. }
  38.  
  39. struct hw_interrupt_type;
  40.  
  41. /*
  42.  * Some useful "we don't have to do anything here" handlers.  Should
  43.  * probably be provided by the generic code.
  44.  */
  45. void no_ack_irq(unsigned int irq);
  46. void no_end_irq(unsigned int irq);
  47.  
  48. extern int txn_alloc_irq(unsigned int nbits);
  49. extern int txn_claim_irq(int);
  50. extern unsigned int txn_alloc_data(unsigned int);
  51. extern unsigned long txn_alloc_addr(unsigned int);
  52. extern unsigned long txn_affinity_addr(unsigned int irq, int cpu);
  53.  
  54. extern int cpu_claim_irq(unsigned int irq, struct hw_interrupt_type *, void *);
  55. extern int cpu_check_affinity(unsigned int irq, cpumask_t *dest);
  56.  
  57. /* soft power switch support (power.c) */
  58. extern struct tasklet_struct power_tasklet;
  59.  
  60. #endif    /* _ASM_PARISC_IRQ_H */
  61.