parisc: lay groundwork for killing __do_IRQ
[deliverable/linux.git] / arch / parisc / include / asm / irq.h
CommitLineData
1da177e4
LT
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
c2ab64d0 10#include <linux/cpumask.h>
1da177e4
LT
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
29static __inline__ int irq_canonicalize(int irq)
30{
31 return (irq == 2) ? 9 : irq;
32}
33
5cfe87d3 34struct irq_chip;
ba20085c
KM
35struct irq_desc;
36
37extern void parisc_do_IRQ(unsigned int irq, struct irq_desc *desc);
1da177e4
LT
38
39/*
40 * Some useful "we don't have to do anything here" handlers. Should
41 * probably be provided by the generic code.
42 */
43void no_ack_irq(unsigned int irq);
44void no_end_irq(unsigned int irq);
7085689e
JB
45void cpu_ack_irq(unsigned int irq);
46void cpu_end_irq(unsigned int irq);
1da177e4
LT
47
48extern int txn_alloc_irq(unsigned int nbits);
49extern int txn_claim_irq(int);
50extern unsigned int txn_alloc_data(unsigned int);
51extern unsigned long txn_alloc_addr(unsigned int);
c2ab64d0 52extern unsigned long txn_affinity_addr(unsigned int irq, int cpu);
1da177e4 53
5cfe87d3 54extern int cpu_claim_irq(unsigned int irq, struct irq_chip *, void *);
8b6649c5 55extern int cpu_check_affinity(unsigned int irq, const struct cpumask *dest);
1da177e4
LT
56
57/* soft power switch support (power.c) */
58extern struct tasklet_struct power_tasklet;
59
60#endif /* _ASM_PARISC_IRQ_H */
This page took 0.476793 seconds and 5 git commands to generate.